Formula that References a data validation list

NYEXCEL1

Board Regular
Joined
Apr 17, 2013
Messages
123
I have a text list dropbox with one blank cell included in cell A1. In B1 I have a formula that says =IF(A1<>0,1+1,""). No matter if the blank or text is chosen B1 shows as "2".

I have also tried with ISBLANK and ISTEXT but get the same results. I should be getting a blank cell in B1 to work correctly.

Please advise, thank you.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
NYEXCEL1,

Try =IF(A1<>"",1+1,"")

Hope that helps.
 
Upvote 0
thanks snakehips but I am getting the same wrong answer. In a regular blank cell (as if you were opening a new workbook), your formula and mine work. But with a blank cell in data validation dropdown list it is giving me the true value. When I use ISBLANK it says "True" so I am confused why excel is reading the cell different through data validation.
 
Upvote 0
In the example below, E is a dv list for A1:A3 with formulas in E and F is a dv list for A4:A6 with just text.

There are both our fomulas in B1:B6
A1:A6 has been populated from the dv drop list.
The only one that appears, to me, to give your 'bad' result of 2 is your formula in B1.



Excel 2007
ABCDEF
12AA
2C2BB
3 
4 CC
5 DD
6B2
Sheet3
Cell Formulas
RangeFormula
E1=IF(F1="n","",F1)
B1=IF(A1<>0,1+1,"")
B2=IF(A2<>"",1+1,"")
B3=IF(A3<>"",1+1,"")
B4=IF(A4<>"",1+1,"")
B5=IF(A5<>0,1+1,"")
B6=IF(A6<>0,1+1,"")


That's why, for me, IF(A1<>"",1+1,"") appeared ok?
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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