Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Wazza
 
Posts: n/a
Default How do I create a multi formula IF function in Excel?


  #2   Report Post  
 
Posts: n/a
Default

=if(condition1,responce1,If(condition2,responce2,r esponce3)
or
=if(and(condition1,condition2),responce1,reponce2)

-----Original Message-----

.

  #3   Report Post  
Wazza
 
Posts: n/a
Default


Here's is the formula that I am trying to use, I want to get an answer
using a variable (B13) based on whether the cell is 1,2,3,4,5,6 I'm
fairly new to this so any help would be awesome.

=IF(C22=1,"=0.2",IF(C22=2,"=((B13-0.4)/5)+0.2",IF(C22=3,"=(((B13-0.4)/5)*2)+0.2",IF(C22=4,"=(((B13-0.4)/5)*3)+0.2",IF(C22=5,"=(((B13-0.4)/5)*4)+0.2",IF(C22=6,"=B13-0.2"))))))


--
Wazza
------------------------------------------------------------------------
Wazza's Profile: http://www.excelforum.com/member.php...o&userid=16225
View this thread: http://www.excelforum.com/showthread...hreadid=276384

  #4   Report Post  
Wazza
 
Posts: n/a
Default


So where is my original formula wrong? When I punch in the random number
1-6 it just puts the corresponding formula on the screen and does not
calcualte it i.e when I put it 1 D22 results in =0.2 instead of just
0.2


--
Wazza
------------------------------------------------------------------------
Wazza's Profile: http://www.excelforum.com/member.php...o&userid=16225
View this thread: http://www.excelforum.com/showthread...hreadid=276384

  #5   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try:
=IF(C22=1,0.2,IF(C22=2,(B13-0.4)/5+0.2,IF(C22=3,((B13-0.4)/5)*2+0.2,IF(
C22=4,((B13-0.4)/5)*3+0.2,IF(C22=5,((B13-0.4)/5)*4+0.2,IF(C22=6,B13-0.2
))))))

--
Regards
Frank Kabel
Frankfurt, Germany

"Wazza" schrieb im Newsbeitrag
...

Here's is the formula that I am trying to use, I want to get an

answer
using a variable (B13) based on whether the cell is 1,2,3,4,5,6 I'm
fairly new to this so any help would be awesome.


=IF(C22=1,"=0.2",IF(C22=2,"=((B13-0.4)/5)+0.2",IF(C22=3,"=(((B13-0.4)/5
)*2)+0.2",IF(C22=4,"=(((B13-0.4)/5)*3)+0.2",IF(C22=5,"=(((B13-0.4)/5)*4
)+0.2",IF(C22=6,"=B13-0.2"))))))


--
Wazza
---------------------------------------------------------------------

---
Wazza's Profile:

http://www.excelforum.com/member.php...o&userid=16225
View this thread:

http://www.excelforum.com/showthread...hreadid=276384




  #6   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

=0.2+(C22-1)*(B13-0.4)/5


Arvi Laanemets


"Wazza" wrote in message
...

Here's is the formula that I am trying to use, I want to get an answer
using a variable (B13) based on whether the cell is 1,2,3,4,5,6 I'm
fairly new to this so any help would be awesome.


=IF(C22=1,"=0.2",IF(C22=2,"=((B13-0.4)/5)+0.2",IF(C22=3,"=(((B13-0.4)/5)*2)+
0.2",IF(C22=4,"=(((B13-0.4)/5)*3)+0.2",IF(C22=5,"=(((B13-0.4)/5)*4)+0.2",IF(
C22=6,"=B13-0.2"))))))


--
Wazza
------------------------------------------------------------------------
Wazza's Profile:

http://www.excelforum.com/member.php...o&userid=16225
View this thread: http://www.excelforum.com/showthread...hreadid=276384



  #7   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
don't enclose the return values in apostrophes nor use the equation
sign

--
Regards
Frank Kabel
Frankfurt, Germany

"Wazza" schrieb im Newsbeitrag
...

So where is my original formula wrong? When I punch in the random

number
1-6 it just puts the corresponding formula on the screen and does not
calcualte it i.e when I put it 1 D22 results in =0.2 instead of just
0.2


--
Wazza
---------------------------------------------------------------------

---
Wazza's Profile:

http://www.excelforum.com/member.php...o&userid=16225
View this thread:

http://www.excelforum.com/showthread...hreadid=276384


  #8   Report Post  
Wazza
 
Posts: n/a
Default


Thanks Frank :)


--
Wazza
------------------------------------------------------------------------
Wazza's Profile: http://www.excelforum.com/member.php...o&userid=16225
View this thread: http://www.excelforum.com/showthread...hreadid=276384

  #9   Report Post  
Frank Kabel
 
Posts: n/a
Default

lol
that is a "little bit" simpler than my formula

--
Regards
Frank Kabel
Frankfurt, Germany

"Arvi Laanemets" schrieb im Newsbeitrag
...
Hi

=0.2+(C22-1)*(B13-0.4)/5


Arvi Laanemets


"Wazza" wrote in message
...

Here's is the formula that I am trying to use, I want to get an

answer
using a variable (B13) based on whether the cell is 1,2,3,4,5,6

I'm
fairly new to this so any help would be awesome.



=IF(C22=1,"=0.2",IF(C22=2,"=((B13-0.4)/5)+0.2",IF(C22=3,"=(((B13-0.4)/5
)*2)+

0.2",IF(C22=4,"=(((B13-0.4)/5)*3)+0.2",IF(C22=5,"=(((B13-0.4)/5)*4)+0.2
",IF(
C22=6,"=B13-0.2"))))))


--
Wazza


---------------------------------------------------------------------

---
Wazza's Profile:

http://www.excelforum.com/member.php...o&userid=16225
View this thread:

http://www.excelforum.com/showthread...hreadid=276384




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel function help facilities RPS Excel Discussion (Misc queries) 1 December 8th 04 02:36 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
how do i create a blank cell in excel using a formula Tosh Excel Worksheet Functions 1 November 2nd 04 04:22 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 09:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"