+ Reply to Thread
Results 1 to 8 of 8

Validation list summing query

  1. #1
    Registered User
    Join Date
    12-14-2013
    Location
    Swindon,England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Validation list summing query

    Hi everyone, I hope someone can help me with a summing query.

    I have a sales report that has two columns of sales figures recorded per customer. The third column is a validation list showing if the lead is "live" "pending" "Dead" etc.
    I'm trying to create a formula that will sum the value of the order, if the third column shows "pending". I have tried variations of "countif/Sumif" options but they all come back as 0:00.

    Any ideas?
    Thanks very much for any suggestions

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Validation list summing query

    You don't say where the value of the order is that you are trying to sum. SUMIF should very definitely work for this.

    If your order values are in column A and the validation list is in column C then the formula to sum "pending" orders is:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If that doesn't work then the next step is to attach your file.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-14-2013
    Location
    Swindon,England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Validation list summing query

    Thanks for the quick response. My apologies for my poor explanation. Your suggestion did not quite work as I have two columns that I need summing once the validation list is selected.
    As you suggested I have attached the file so you can see what I mean, and have added a (hopefully) better explanation for you.
    I appreciate your support
    Attached Files Attached Files

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Validation list summing query

    You have your ranges backwards. Try this formula:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-14-2013
    Location
    Swindon,England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Validation list summing query

    I'm really sorry, but I cant seem to get that formula to work either. The logic seems fine, but the second part of the rule relating to the actual summing function only seems to count one of the columns of data rather than both.
    I'm sure it's "user error" so I do apologise for being a poor student.
    I have attached the re-worked file with your formula in it so you see what I've done.
    Attached Files Attached Files

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Validation list summing query

    I'm sorry, my mistake.

    The first argument is the range to evaluate to determine whether to include cells in the sum. It starts evaluating in the upper left corner of that range, and matches each cell to the corresponding cell in the second argument. The shapes don't have to match for it to be a valid formula, but only the cells that correspond will be considered. Therefore you cannot sum two columns of data by providing only one column with criteria.

    So we have to do it twice. The correct formula is:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    12-14-2013
    Location
    Swindon,England
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Validation list summing query

    Happy days !
    I played with the previous suggestion and did exactly the same thing, but thought I was bodging it!
    Thanks very much for the advice and patience. Job done.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Validation list summing query

    You're very welcome, sorry about that slip. Glad you ended up in the right place! Thanks for the rep, and thanks for marking the thread Solved!

+ 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: 0
    Last Post: 01-09-2013, 11:44 AM
  2. [SOLVED] Reset dependant validation list when the previous validation list is changed.
    By Rimmu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-10-2012, 09:23 AM
  3. [SOLVED] Loop through list, perform web query and save each query on its own page
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2012, 07:50 AM
  4. Summing in excel validation box
    By luxmraj in forum Excel General
    Replies: 3
    Last Post: 07-16-2007, 04:06 PM
  5. Validation List Query
    By SamuelT in forum Excel General
    Replies: 5
    Last Post: 01-18-2006, 11:15 AM

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