+ Reply to Thread
Results 1 to 3 of 3

Dsum "#value!"

Hybrid View

DCSwearingen Dsum "#value!" 02-04-2008, 05:25 PM
daddylonglegs You have dynacrit defined as... 02-04-2008, 06:02 PM
DCSwearingen Thank You! 02-05-2008, 10:15 AM
  1. #1
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    Dsum "#value!"

    I have been trying to follow along with Chip Pearson's DSUM Tutorial and apply it to an application here at work.

    It is located at http://www.cpearson.com/Newsletter/C...2007_10_08.htm

    I am trying to sum the production totals for item codes between two dates. I eventually want the dates to be dynamicly set by a user input, but I cannot even get the DSUM to work using hard entered values. I have tried entering actual dates, the serial numbers for the dates and everything else I can think of.

    I am enclosing a zip of a small sample of the worksheet, I have even used the same names Chip Pearson uses in his tutorial, just applying them to the ranges in this sample.

    If anyone can tell me where I am going wrong, I would be most appreciative.
    Attached Files Attached Files
    Thanks!
    Dennis

    I am using Windows 7 and Office 2007, all of my posts are based on this.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699
    You have dynacrit defined as just cell A72, it needs to be A73:A74, also your column criteria needs to be the column number (4) or the column header as text, i.e.

    "1404006"

    so if you make A87 just 4 and redefine dynacrit then you can use

    =DSUM(data,A87,dynacrit)

  3. #3
    Forum Contributor
    Join Date
    03-24-2005
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    378

    Thank You!

    I was able to leave DynaCrit as a dynamic address inside the INDIRECT function. My problem was with the use of the cell address to return the field header (part number.) When I simply substituted COLUMN() with the header cell enclosed, everything worked.

    So, if I insert
    =DSUM(Data,COLUMN(),INDIRECT(DynaCrit))
    into the same column as the part number code the DSUM works.

    Now I just need to make the Dates dynamic. I can use
    =">="&A14
    ="<="&A30
    to select a date in the table to set the upper and lower date limits and the DSUM still works, so now all I need to do is set this up in the real workbook and give the user a couple of cells to use for the date ranges to query.

    Thank you for turning me in the right direction. You guys are terrific!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1