IF Formula

glerwell

Well-known Member
Joined
Jun 25, 2006
Messages
1,082
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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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
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
VoG II - thats was problem and I've now sorted it.

facethegod - thanks for the formula.

cheers guys :LOL:
 
Upvote 0
Maybe this?

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

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

Forum statistics

Threads
1,213,552
Messages
6,114,278
Members
448,559
Latest member
MrPJ_Harper

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
Back
Top