Suspend calc of formula using a non-existent sheet

  • Thread starter Thread starter mikeburg
  • Start date Start date
M

mikeburg

I have the following formula in cell K6 of a sheet:

=SUMIF(DailyChargeLastMo!B$6:B$88,"="&A6,DailyChargeLastMo!D$6:D$88)

However, until I create the sheet DailyChargeLastMo I get a referenc
error for cell K6 as well as all other cells with formulas using dat
from K6.

Is there a way to make the above formula in K6 work only when the shee
DailyChargeLastMo is created?

Thanks for any & all help. mikebur
 
Here's one that I think will work, maybe not the best solution though .
.. .

=IF(ISERROR(SUMIF(DailyChargeLastMo!B$6:B$88,"="&A6,DailyChar
geLastMo!D$6:D$88)),0,SUMIF(DailyChargeLastMo!B$6:B$88,"="&A6,DailyChar
geLastMo!D$6:D$88))

Let me know if this doesn't work of if you're looking for something
different - Chad
 
Perhaps try an error trap which returns zero as the value_if_true (as there
are downstream cells pointing to K6):

Put instead in K6:

=IF(ISERROR(SUMIF(DailyChargeLastMo!B$6:B$88,"="&A6,DailyChargeLastMo!D$6:D$
88)),0,SUMIF(DailyChargeLastMo!B$6:B$88,"="&A6,DailyChargeLastMo!D$6:D$88))
 
You're welcome, and thanks for the feedback !
Chad, the other responder, and I thought alike
(But his thoughts came through first <g>)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top