+ Reply to Thread
Results 1 to 6 of 6

Returning the sum of numerous cells based on multiple look up criteria.

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    Newcastle, England
    MS-Off Ver
    2013
    Posts
    26

    Returning the sum of numerous cells based on multiple look up criteria.

    So I have attached an example of what I'm after.

    In the example I have the formula in cell G2 which is returning the sum of values in column D that match with the criteria in columns A, B & C. The specified criteria is in cells F2, F3 and H2. Whilst the data in columns A & B will only search against one criteria (F2 & F3), I want the formula to search the data in column C and return all values that match more than one criteria.

    In the current example the formula returns £77 because that is the sum of D2 & D6. What I want it to do is return £144 because it would also sum D8 as the

    Currently I am using a sumproduct formula but I suspect this may have to be changed.

    This has been killing me and any help would be greatly appreciated!

    Cheers,

    Chris
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Returning the sum of numerous cells based on multiple look up criteria.

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Returning the sum of numerous cells based on multiple look up criteria.

    The key here is this part:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    it returns an array of boolena (true/false) values for each C2:C9 cell if CX is found in H2:H3 range, then respective element is true, otherwise it is false. And True/False is in multiplication treated as 1/0 resp.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Returning the sum of numerous cells based on multiple look up criteria.

    I would suggest a different approach. I have relocated A and B to a different location

    Enter formula in G2, copy across and down

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


    v A B C D E F G H I
    1 Name Role Group Income A B
    2 Chris Manager A £10.00 Manager £10.00 £67.00
    3 Sue Coder A £4.00 Chris £67.00
    4 Chris Tester A £7.00
    5 Sue Coder B £23.00
    6 Chris Manager A £67.00
    7 Sue Coder B £4.00
    8 Chris Manager B £67.00
    9 Sue Tester A £8.00
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Returning the sum of numerous cells based on multiple look up criteria.

    But if you want just a total

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

  6. #6
    Registered User
    Join Date
    03-06-2015
    Location
    Newcastle, England
    MS-Off Ver
    2013
    Posts
    26

    Re: Returning the sum of numerous cells based on multiple look up criteria.

    Thanks a million to both of you, both of those solutions work perfectly in my original spreadsheet too

+ 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. Writing a formula for returning a text value based on multiple criteria
    By DataAnalyst215 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-27-2016, 06:55 PM
  2. [SOLVED] Returning multiple cells based on criteria of other cells
    By paulstuartbullock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-19-2016, 06:19 PM
  3. Returning multiple row based on criteria
    By MartyB99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2013, 04:56 PM
  4. Replies: 3
    Last Post: 09-06-2012, 09:07 AM
  5. Returning multiple rows of data based on certain criteria
    By ghurhu in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-19-2012, 03:54 AM
  6. Returning a lookup value based on multiple criteria.
    By ahunter488 in forum Excel General
    Replies: 3
    Last Post: 06-09-2011, 01:55 AM
  7. returning entire row based on single or multiple criteria
    By cdevericks in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2008, 09:43 AM

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