ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I display a 0 instead of FALSE (https://www.excelbanter.com/excel-programming/367850-how-do-i-display-0-instead-false.html)

Bud

How do I display a 0 instead of FALSE
 
My cell g2 may have nothing in it at times. But I need the formula cell to
display a 0 if cell g2 is blank. My formula is below. HELP!!!


=IF('Sales Forcast'!G2='Sales Forcast'!$AV$2,VLOOKUP('Sales
Forcast'!H2,'Sales Forcast'!$AL$2:$AN$9,3,IF('Sales Forcast'!G2=" ",0)))

[email protected]

How do I display a 0 instead of FALSE
 

Bud wrote:
My cell g2 may have nothing in it at times. But I need the formula cell to
display a 0 if cell g2 is blank. My formula is below. HELP!!!


=IF('Sales Forcast'!G2='Sales Forcast'!$AV$2,VLOOKUP('Sales
Forcast'!H2,'Sales Forcast'!$AL$2:$AN$9,3,IF('Sales Forcast'!G2=" ",0)))


I'd check your parentheses. Are you sure you don't mean to say:

=IF('Sales Forcast'!G2='Sales Forcast'!$AV$2,VLOOKUP('Sales
Forcast'!H2,'Sales Forcast'!$AL$2:$AN$9,3), IF('Sales Forcast'!G2="
",0))

or
=IF('Sales Forcast'!G2='Sales Forcast'!$AV$2,VLOOKUP('Sales
Forcast'!H2,'Sales Forcast'!$AL$2:$AN$9,3),0)

---
HTH,

Isaac


Bud

How do I display a 0 instead of FALSE
 
I used your 2nd example and it worked. THANKS!!!

" wrote:


Bud wrote:
My cell g2 may have nothing in it at times. But I need the formula cell to
display a 0 if cell g2 is blank. My formula is below. HELP!!!


=IF('Sales Forcast'!G2='Sales Forcast'!$AV$2,VLOOKUP('Sales
Forcast'!H2,'Sales Forcast'!$AL$2:$AN$9,3,IF('Sales Forcast'!G2=" ",0)))


I'd check your parentheses. Are you sure you don't mean to say:

=IF('Sales Forcast'!G2='Sales Forcast'!$AV$2,VLOOKUP('Sales
Forcast'!H2,'Sales Forcast'!$AL$2:$AN$9,3), IF('Sales Forcast'!G2="
",0))

or
=IF('Sales Forcast'!G2='Sales Forcast'!$AV$2,VLOOKUP('Sales
Forcast'!H2,'Sales Forcast'!$AL$2:$AN$9,3),0)

---
HTH,

Isaac




All times are GMT +1. The time now is 09:30 AM.

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