+ Reply to Thread
Results 1 to 4 of 4

DSUM Multiple Criteria

  1. #1
    Registered User
    Join Date
    05-22-2014
    Posts
    2

    DSUM Multiple Criteria

    Hi Everyone,

    I have attached a very simple model of a much larger BI report that we use. I have written a DSUM that returns the correct result in all cases other than when one of the criteria columns is blank. When one or more columns is blank, the result returned is 0 whereas I need it return all data (for e.g. if you remove "sains" from cell B2, I need it to still return data for person "b", "c" and "d" (i.e. 51 for Mar14))

    Does any one have ay ideas??

    Any help you can give is very much appreciated.

    Thanks

    Neil
    Attached Files Attached Files

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: DSUM Multiple Criteria

    Perhaps:

    D2: =COUNTIF(tableperson[person],data!B2)+(COUNTA(tableperson[person])=0)
    E2: =COUNTIF(tablecustomer[customer],data!A2)+(COUNTA(tablecustomer[customer])=0)
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    05-22-2014
    Posts
    2

    Re: DSUM Multiple Criteria

    Rory,

    That's awesome - thank you very much.

    Would the formula change in D2 and E2 if there was more than 2 criteria fields (my BI spreadsheet has up to 8 criteria we can filer on)

    Thanks

    Neil

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: DSUM Multiple Criteria

    Shouldn't do - they're independent of each other.

+ 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. Replies: 1
    Last Post: 06-08-2012, 01:28 PM
  2. DSUM: Multiple Criteria
    By NSTAR in forum Excel General
    Replies: 1
    Last Post: 03-31-2010, 10:16 AM
  3. DSUM Criteria
    By minkus in forum Excel General
    Replies: 5
    Last Post: 01-31-2010, 12:17 AM
  4. dsum on multiple criteria
    By myroz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2008, 09:33 AM
  5. Using DSUM with several criteria
    By matthoffman33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2006, 12:46 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