IF function using drop down choices as logical test value

hellcat83

New Member
Joined
Aug 16, 2011
Messages
44
Hi

I'm trying to try a short formula for a sheet I'm working on. I want one of various calculations to be completed based on which text string is chosen from a drop down list. I've tried the standard =IF(cell="text",....) format, but it keeps defaulting to the False condition.

For example;
Code:
=IF(C1="even weighting",1,0)
is defaulting to 0, even when C1 has the correct text string chosen.

Any ideas?

Cheers
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi

I'm trying to try a short formula for a sheet I'm working on. I want one of various calculations to be completed based on which text string is chosen from a drop down list. I've tried the standard =IF(cell="text",....) format, but it keeps defaulting to the False condition.

For example;
Code:
=IF(C1="even weighting",1,0)
is defaulting to 0, even when C1 has the correct text string chosen.

Any ideas?

Cheers
What type of drop down are you using? Is it a data validation list or a combo box?

Are you sure there are no unseen whitespace characters in the drop down selection? For example, the selction might actaully be something like even weighting_ (where the underscore represents a space character). In your formula you're testing for "even weighting" compared to "even weighting_" and these do not match.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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