Time for IFERROR?

P

PAL

I am calculating the time between two dates. In the formula, I account for
the dates being reversed by a conditional. Sometimes the data points are
"N/A" if there shouldn't be a date. The formula below returns a "#VALUE!"
error. Is there a way using IFERROR to return a blank?

=IF((('Raw Data'!F3-'Raw Data'!E3)/$J$1)>0,('Raw Data'!F3-'Raw
Data'!E3)/$J$1,"")

Thanks.
 
T

Tyro

=IFERROR(IF((('Raw Data'!F3-'Raw Data'!E3)/$J$1)>0,('Raw Data'!F3-'Raw
Data'!E3)/$J$1,""),"")

Tyro
 
B

Bob Phillips

Do you mean a missing date

=IF(OR('Raw Data'!E3="",'Raw Data'!F3=""),"",N(ABS('Raw Data'!F3-'Raw
Data'!E3))/$J$1)

or a date of #NA()

=IF(OR(ISNA('Raw Data'!E3),ISNA('Raw Data'!F3)),"",N(ABS('Raw Data'!F3-'Raw
Data'!E3))/$J$1)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
D

David Biddulph

Which version of Excel do you have? Tyro had presumably assumed from your
reference to IFERROR that you were using Excel 2007.
If not, the nearest equivalent you'll get is ISERROR, which needs the longer
construct of =IF(ISERROR(your_formula),"",your_formula).
 
T

T. Valko

Maybe this:

=IF(COUNT('Raw Data'!E3:F3,$J$1)<3,"",('Raw Data'!F3-'Raw Data'!E3)/$J$1)
 
P

PAL

Hi Bob,

I did mean "N/A", but not the excel error version(#N/A). Users will not
understand the "#" symbol. In reality instead of a date, it should be
considered text and I assume therein lies the problem. It does work if I
include the "#". However, those cells with real dates get the "#REF"error.
 
B

Bob Phillips

=IF(COUNTIF('Raw Data'!E3:F3,"N/A")>0,"",('Raw Data'!F3-'Raw Data'!E3)/$J$1)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Top