Simple question from a newbie

ckroon

Board Regular
Joined
Nov 9, 2005
Messages
60
Hey all... I am working on a spreadsheet where the number 5 needs to appear in cell C2, if there text is selected from a drop down list in cell b2.
I assume I will use the IF command, but after that I am lost.
Thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You could use;

=IF(B2="FIVE",5," ")

change "FIVE" to your text.

But, would VLOOKUP not be better, if you had more choices/options?

Colin.
 
Upvote 0
also.....

What if I wanted a diffferent value to appear, other than a five if they selected a specif option form teh drop down menu?
Example: B6 list=Math, English,Other, blank
In C6 I have =IF(B2="","",5) which generates a 5 if the cell has something selected. How can I have it generate nothing if the selection is Other.
Is this possible?
 
Upvote 0
Try:
=IF(B2="Other","",IF(B2="","",5))
 
Upvote 0

Forum statistics

Threads
1,213,561
Messages
6,114,317
Members
448,564
Latest member
ED38

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