+ Reply to Thread
Results 1 to 5 of 5

dsum and ignoring empty cells

  1. #1
    Registered User
    Join Date
    01-24-2008
    Posts
    3

    dsum and ignoring empty cells

    Ok here goes.

    I have a large database (30k+ rows) with about 10 columns. Lets say the first 3 columns are suburb_code, income, households.

    Each project will have a different list of suburb_codes. I want to sum all the incomes from this selected list of suburb_codes. So I am trying to use the list as the dsum - criteria. The list could range from 5 rows to 5000.

    Problem: I am trying to use dsum to sum all the incomes from the selected list. =dsum(database,incomes,D1:D5000). However, this criteria will include empty cells and therefore it sums all incomes from the database.

    Is there an efficient solution for this (apart from entering blanks cells in the criteria, or changing the range of the criteria everytime i run a new project)?

    Happy for all non-dsum solutions as well.

    I have attached a spreadsheet (updated) as an example.

    Thanks for any assistance.
    Attached Files Attached Files
    Last edited by robbiep_hall; 01-24-2008 at 05:51 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The sample sheet didn't attach...

    make sure you click Upload before closing the Attachment dialogue.

    attach a zipped XL2003 copy please.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-24-2008
    Posts
    3

    upload

    Spreadsheet now uploaded. Cheers.

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    See the attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-24-2008
    Posts
    3
    Perfect. Thanks!

+ 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