Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can a function return a Null (blank ) value? Maybe a custom functi | Excel Worksheet Functions | |||
Cell to return null instead of 0 | Excel Discussion (Misc queries) | |||
need Lookup table to return null or zero | Excel Worksheet Functions | |||
Huge problem with "if" formula's | Excel Discussion (Misc queries) | |||
return a " " for null values | Excel Worksheet Functions |