IF Formula

glerwell

Well-known Member
Joined
Jun 25, 2006
Messages
1,080
Hi

I want to create a formula for the following conditions:

IF K11 is "NO" then 1 is displayed
IF K11 is "1" then 2 is displayed
IF K11 is "2" then 3 is displayed
IF K11 is "3" then 4 is displayed

I've tried myself but it only works if "NO" is K11, if 1-3 in K11 then the 0 is returned.

Thanks
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

glerwell

Well-known Member
Joined
Jun 25, 2006
Messages
1,080
If I change 1,2,3 to ONE, TWO, THREE I can use the following formula:

=IF(K11="NO",1,0)+IF(K11="TWO",2,0)+IF(K11="THREE",3,0)+IF(K11="FOUR",4,0)

but I owuld prefer to be able to use 1,2,3.
 
Upvote 0

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Are the "1", "2" and "3" in K11 actually numbers, not text? If so you need to lose the "s in the formulas.
 
Upvote 0

glerwell

Well-known Member
Joined
Jun 25, 2006
Messages
1,080
VoG II - thats was problem and I've now sorted it.

facethegod - thanks for the formula.

cheers guys :LOL:
 
Upvote 0

Seti

Well-known Member
Joined
May 19, 2002
Messages
2,916
Maybe this?

=IF(K11="NO",1,K11+1)

assuming K11 can only be NO, 1, 2 or 3
 
Upvote 0

Forum statistics

Threads
1,191,518
Messages
5,987,066
Members
440,074
Latest member
Emmanuelian

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top