Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default How do I make a cell blank if Error OR 0 Result

Currently Cell 'B4' in my worksheet contains the following formula. Now this
formula WORKS. I just want to refine it a tad more. Currently, if cells
AE4,AF4,and AG4 contain and error, then B4 is blank. BUT, if AE4, AF4, and
AG4 are blank, then B$ shows a "0". Which is correct. I would prefer that B$
also be blank in the second senario. How can I modify this formula for that
behavior?

=IF(ISERROR(SUM(SUM(INDIRECT("AE"&ROW())),(INDIREC T("AF"&ROW())),(INDIRECT("AG"&ROW())))/(SUM(COLUMNS((INDIRECT("D"&ROW()):(INDIRECT("AA"&R OW()))))-(COUNTIF(INDIRECT("D"&ROW()):(INDIRECT("AA"&ROW()) ),"N/A"))))),"",SUM(SUM(INDIRECT("AE"&ROW())),(INDIRECT ("AF"&ROW())),(INDIRECT("AG"&ROW())))/(SUM(COLUMNS((INDIRECT("D"&ROW()):(INDIRECT("AA"&R OW()))))-(COUNTIF(INDIRECT("D"&ROW()):(INDIRECT("AA"&ROW()) ),"N/A")))))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default How do I make a cell blank if Error OR 0 Result

You could cheat by putting conditional formatting on the cell that if the
value is 0 then change the font to white so that it remains as a 0 but simply
can't be seen.

"Gregory Day" wrote:

Currently Cell 'B4' in my worksheet contains the following formula. Now this
formula WORKS. I just want to refine it a tad more. Currently, if cells
AE4,AF4,and AG4 contain and error, then B4 is blank. BUT, if AE4, AF4, and
AG4 are blank, then B$ shows a "0". Which is correct. I would prefer that B$
also be blank in the second senario. How can I modify this formula for that
behavior?

=IF(ISERROR(SUM(SUM(INDIRECT("AE"&ROW())),(INDIREC T("AF"&ROW())),(INDIRECT("AG"&ROW())))/(SUM(COLUMNS((INDIRECT("D"&ROW()):(INDIRECT("AA"&R OW()))))-(COUNTIF(INDIRECT("D"&ROW()):(INDIRECT("AA"&ROW()) ),"N/A"))))),"",SUM(SUM(INDIRECT("AE"&ROW())),(INDIRECT ("AF"&ROW())),(INDIRECT("AG"&ROW())))/(SUM(COLUMNS((INDIRECT("D"&ROW()):(INDIRECT("AA"&R OW()))))-(COUNTIF(INDIRECT("D"&ROW()):(INDIRECT("AA"&ROW()) ),"N/A")))))

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default How do I make a cell blank if Error OR 0 Result

Thank you for the suggestion, but wouldn't that may create issues with other
formulas that use those cells. Averaging for example.

"Dennis" wrote:

You could cheat by putting conditional formatting on the cell that if the
value is 0 then change the font to white so that it remains as a 0 but simply
can't be seen.

"Gregory Day" wrote:

Currently Cell 'B4' in my worksheet contains the following formula. Now this
formula WORKS. I just want to refine it a tad more. Currently, if cells
AE4,AF4,and AG4 contain and error, then B4 is blank. BUT, if AE4, AF4, and
AG4 are blank, then B$ shows a "0". Which is correct. I would prefer that B$
also be blank in the second senario. How can I modify this formula for that
behavior?

=IF(ISERROR(SUM(SUM(INDIRECT("AE"&ROW())),(INDIREC T("AF"&ROW())),(INDIRECT("AG"&ROW())))/(SUM(COLUMNS((INDIRECT("D"&ROW()):(INDIRECT("AA"&R OW()))))-(COUNTIF(INDIRECT("D"&ROW()):(INDIRECT("AA"&ROW()) ),"N/A"))))),"",SUM(SUM(INDIRECT("AE"&ROW())),(INDIRECT ("AF"&ROW())),(INDIRECT("AG"&ROW())))/(SUM(COLUMNS((INDIRECT("D"&ROW()):(INDIRECT("AA"&R OW()))))-(COUNTIF(INDIRECT("D"&ROW()):(INDIRECT("AA"&ROW()) ),"N/A")))))

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
Cell returns blank result... Leonard Excel Worksheet Functions 2 January 12th 07 04:54 AM
How to get Blank into a cell as a result of a formula jkb_junk Excel Worksheet Functions 2 January 10th 07 03:37 AM
How to get a formula result zero as blank cell Excelerate-nl Excel Discussion (Misc queries) 4 November 22nd 05 04:32 PM
Why Am I getting a blank in the result cell? salulu Excel Discussion (Misc queries) 4 September 7th 05 03:15 AM
How do I make a blank cell with a date format blank? Pivot Table/Query Excel Worksheet Functions 6 June 14th 05 11:19 PM


All times are GMT +1. The time now is 04:13 PM.

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

About Us

"It's about Microsoft Excel"