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 |
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 |
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 |
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 |
All times are GMT +1. The time now is 12:19 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com