If A1 is Ultra 2GB then 800

Closed
Faisal - 20 Feb 2010 à 15:44
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 20 Feb 2010 à 16:06
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.
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
20 Feb 2010 à 16:06
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