Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
matthoffman33
 
Posts: n/a
Default Have DGET return Null instead of #Value!


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

  #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


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


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

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

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,A 55:B56)),0,DGET(RawData!$A$7:$E$6503,RawData!$E$7, A55:B56))

"matthoffman33" wrote:


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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a function return a Null (blank ) value? Maybe a custom functi colin_e Excel Worksheet Functions 2 March 16th 06 02:36 PM
Cell to return null instead of 0 dford Excel Discussion (Misc queries) 7 November 28th 05 06:37 PM
need Lookup table to return null or zero simbob Excel Worksheet Functions 5 September 24th 05 01:55 PM
Huge problem with "if" formula's [email protected] Excel Discussion (Misc queries) 16 July 20th 05 07:20 PM
return a " " for null values David# Excel Worksheet Functions 2 January 21st 05 06:47 PM


All times are GMT +1. The time now is 06:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"