If A1 is Ultra 2GB then 800

Closed
Faisal - Feb 20, 2010 at 03:44 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Feb 20, 2010 at 04:06 PM
Hello,

I want to put some text on A1 cell like

Ultra 3GB
Ultra 5GB
ZOOM 2GB
ZOOM5GB

i want to put the formula on B1 cell that "If A1 is Ultra 2GB then 800, if A1 is Ultra 5GB then 3500, if a1 is Zoom 2GB then 400 like that. Please help me.

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Feb 20, 2010 at 04:06 PM
Use if statement

like

=If( condition, do this for true, do this for false)

=IF(A1="Ultra 2GB", 800, IF(A1="Ultra 5GB", 3500, IF(A1="ZOOM 2GB", 400, "none of the three")))

You get the idea. Side note you can have upto 7 nested if. If more than that is needed, you need to look at some other way
0