Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve
 
Posts: n/a
Default If cell value equals zero

Hello,

I have a simple worksheet formula, "=IF(D17=0,"",(D11*1.38+D14)/D17)"
located in D22.
This works fine if D11 has a value in it, but there are a few instances
where D11 is blank, then I get "#VALUE" in D22.
How can I modify the formula to increment D11 to "1" if it is blank or equal
to "0"?

Thanks...

---
Steve


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default If cell value equals zero

Hi!

increment D11 to "1" if it is blank


If you're getting #VALUE! when D11 is "blank", it must be a formula blank.

Onr way:

=IF(D17=0,"",(IF(OR(D11={"",0}),1,D11)*1.38+D14)/D17)

Biff

"Steve" wrote in message
ink.net...
Hello,

I have a simple worksheet formula, "=IF(D17=0,"",(D11*1.38+D14)/D17)"
located in D22.
This works fine if D11 has a value in it, but there are a few instances
where D11 is blank, then I get "#VALUE" in D22.
How can I modify the formula to increment D11 to "1" if it is blank or
equal to "0"?

Thanks...

---
Steve



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default If cell value equals zero

See if this works for you:

D22: =IF(D17=0,"",(IF(N(D11)=0,1,D11)*1.38+D14)/D17)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Steve" wrote:

Hello,

I have a simple worksheet formula, "=IF(D17=0,"",(D11*1.38+D14)/D17)"
located in D22.
This works fine if D11 has a value in it, but there are a few instances
where D11 is blank, then I get "#VALUE" in D22.
How can I modify the formula to increment D11 to "1" if it is blank or equal
to "0"?

Thanks...

---
Steve



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instead of a negative number, I'd like to show zero... Dr. Darrell Excel Worksheet Functions 6 December 7th 05 08:21 PM
cell on one page equals cell on another page in excel? toswald Excel Worksheet Functions 1 September 26th 05 08:52 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM


All times are GMT +1. The time now is 06:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"