IF three conditions

mustu2

Board Regular
Joined
Sep 21, 2010
Messages
126
Hi

I have 3 conditions for IF, but dont know how to add a formula. Please advice.

Currently i have this formula

=IF(E3="0","A","B")

i have three criteria
0
1
2

so if E3 = 0 then its A
E3=1 then its B
E3=2 then its C

please advice
thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Code:
=IF(E3=0,"A",IF(E3=1,"B",IF(E3=2,"C","OTHER")))

or, if there is no possibility that E3 is something other than 0, 1 or 2
Code:
=IF(E3=0,"A",IF(E3=1,"B","C"))
 
Upvote 0
How about

=SUBSTITUTE(ADDRESS(1,E3+1,4),"1","")

That one keeps going if you need it to, 3 = D, 25 = Z, 26 = AA, 16383 =XFD
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,401
Members
448,893
Latest member
AtariBaby

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