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"))))) |
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"))))) |
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"))))) |
All times are GMT +1. The time now is 04:43 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com