ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   IF function...cell ref is a formula so True is retd when False sh (https://www.excelbanter.com/excel-worksheet-functions/102367-if-function-cell-ref-formula-so-true-retd-when-false-sh.html)

Alison

IF function...cell ref is a formula so True is retd when False sh
 
I have in D5:

IF(a20,c$2,"")

whe

A2 is a formula: =if(a10,vlookup(a1,ARRAY,2,false),"")
A1 is a part # (numeric)

So if A1 is left blank, A2 should remain blank (""), and D5 should return a
blank cell (""). But it doesn't work and I get C$2 in D5. Is this because
the formula is reading another formula in cell A2 rather than a value?
Should I be using a different formula altogether?

Thanks for any help!!

Alison



Alison

IF function...cell ref is a formula so True is retd when False sh
 
Never mind - I found a way around it (probably not the easiest but it works)
- I just rearranged my IF formula so that IF(A2="","",c$2) and it works!
Thanks....Alison

"Alison" wrote:

I have in D5:

IF(a20,c$2,"")

whe

A2 is a formula: =if(a10,vlookup(a1,ARRAY,2,false),"")
A1 is a part # (numeric)

So if A1 is left blank, A2 should remain blank (""), and D5 should return a
blank cell (""). But it doesn't work and I get C$2 in D5. Is this because
the formula is reading another formula in cell A2 rather than a value?
Should I be using a different formula altogether?

Thanks for any help!!

Alison




All times are GMT +1. The time now is 12:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com