close

Hi,

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

Thanks for the help,

Matt--
matthoffman33
------------------------------------------------------------------------
matthoffman33's Profile: www.excelforum.com/member.php...oamp;userid=32148
View this thread: www.excelforum.com/showthread...hreadid=539134Try this - should insert a 0 when DGet would return either #Value or #Num
errors
=IF(IsErr(DGet(...),0,DGet(...)))

quot;matthoffman33quot; wrote:

gt;
gt; Hi,
gt;
gt; I have a column of values that I retrieve from a database based on
gt; dates. It will always try to retrieve an entire week (Sun - Sat) at a
gt; time. This is done for charting purposes. My problem is that if it's
gt; only Wednesday, the chart will show 0's for thurs, fri, and sat b/c the
gt; DGET function can't find the values for those days (because they haven't
gt; been calculated yet). So, I either need to have the DGET function
gt; return those days as null values, or have the chart not graph the cells
gt; that have #VALUE! in them. Any ideas???
gt;
gt; Thanks for the help,
gt;
gt; Matt
gt;
gt;
gt; --
gt; matthoffman33
gt; ------------------------------------------------------------------------
gt; matthoffman33's Profile: www.excelforum.com/member.php...oamp;userid=32148
gt; View this thread: www.excelforum.com/showthread...hreadid=539134
gt;
gt;


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,A 55:B56),0,DGET(RawData!$A$7:$E$6503,RawData!$E$7,A 55:B56))).
The problem seems to be with the ,0,. Any suggestions how this can be
fixed?

Thanks again,

Matt--
matthoffman33
------------------------------------------------------------------------
matthoffman33's Profile: www.excelforum.com/member.php...oamp;userid=32148
View this thread: www.excelforum.com/showthread...hreadid=539134Problem 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,A 55:B56)),0,DGET(RawData!$A$7:$E$6503,RawData!$E$7, A55:B56))

quot;matthoffman33quot; wrote:

gt;
gt; Thanks for the help, I'm still having a problem with it though. This is
gt; what I have for the eqation:
gt; =If(ISERR(DGET(RawData!$A$7:$E$6503,RawData!$E$7,A 55:B56),0,DGET(RawData!$A$7:$E$6503,RawData!$E$7,A 55:B56))).
gt; The problem seems to be with the ,0,. Any suggestions how this can be
gt; fixed?
gt;
gt; Thanks again,
gt;
gt; Matt
gt;
gt;
gt; --
gt; matthoffman33
gt; ------------------------------------------------------------------------
gt; matthoffman33's Profile: www.excelforum.com/member.php...oamp;userid=32148
gt; View this thread: www.excelforum.com/showthread...hreadid=539134
gt;
gt;

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()