+ Reply to Thread
Results 1 to 4 of 4

DSUM Problems

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    7

    DSUM Problems

    I'm confused why my datafunctions for Average Sales(DAVERAGE) and Total Sales(DSUM) appear to be correct, but I'm getting a 0 for number of sales(DCOUNT). Any suggestions what I'm doing wrong? Unless all of my dfunctions are incorrect?
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: DSUM Problems

    Hi,

    DCOUNT counts the cells containing numbers, so your field parameter needs to reference any column in the range which contains numerical entries. Try changing it to e.g. 4 or 5.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: DSUM Problems

    You may also use DCOUNTA as alternative.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: DSUM Problems

    Why not use the countif/averageif/sumif functions?

    =COUNTIF(Sheet1!$C:$C,Sheet2!B$3)
    =AVERAGEIF(Sheet1!$C:$C,Sheet2!B$3,Sheet1!$E:$E)
    =SUMIF(Sheet1!$C:$C,Sheet2!B$3,Sheet1!$E:$E)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] DSum problems
    By JBoulton in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 AM
  2. DSum problems
    By JBoulton in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] DSum problems
    By John Beccaro in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  4. DSum problems
    By John Beccaro in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. DSum problems
    By John Beccaro in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

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