Have DGET return Null instead of #Value!

M

matthoffman33

Hi,

I have a column of values that I retrieve from a database based o
dates. It will always try to retrieve an entire week (Sun - Sat) at
time. This is done for charting purposes. My problem is that if it'
only Wednesday, the chart will show 0's for thurs, fri, and sat b/c th
DGET function can't find the values for those days (because they haven'
been calculated yet). So, I either need to have the DGET functio
return those days as null values, or have the chart not graph the cell
that have #VALUE! in them. Any ideas???

Thanks for the help,

Mat
 
G

Guest

Try this - should insert a 0 when DGet would return either #Value or #Num
errors
=IF(IsErr(DGet(...),0,DGet(...)))
 
M

matthoffman33

Thanks for the help, I'm still having a problem with it though. This is
what I have for the eqation:
=If(ISERR(DGET(RawData!$A$7:$E$6503,RawData!$E$7,A55:B56),0,DGET(RawData!$A$7:$E$6503,RawData!$E$7,A55:B56))).
The problem seems to be with the ,0,. Any suggestions how this can be
fixed?

Thanks again,

Matt
 
G

Guest

Problem is with the closing parenthesis - you need 2 in front of the comma
before the 0, and only 2 at the end of the whole thing.

Should look like this:
=If(ISERR(DGET(RawData!$A$7:$E$6503,RawData!$E$7,A55:B56)),0,DGET(RawData!$A$7:$E$6503,RawData!$E$7,A55:B56))
 

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