View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JLatham
 
Posts: n/a
Default Have DGET return Null instead of #Value!

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

"matthoffman33" wrote:


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: http://www.excelforum.com/member.php...o&userid=32148
View this thread: http://www.excelforum.com/showthread...hreadid=539134