+ Reply to Thread
Results 1 to 10 of 10

Sum of cells based on matched cells

Hybrid View

  1. #1
    Registered User
    Join Date
    06-17-2019
    Location
    York
    MS-Off Ver
    2016
    Posts
    5

    Sum of cells based on matched cells

    I have a list of users and their mailbox sizes listed in a table. I am also provided with a list of specific users from that list. The task is to add up the total size of those mailboxes for only the people listed. I think it's either SUMIF or SUMIFS but struggling to find a working formula!

    Column A lists the users
    Column B lists their mailbox sizes
    Column D contains a list of specific users

    I need a formula to add up the mailbox sizes from Column B but only for the users from Column D.

    Hope that makes some sense!

    Any help would be appreciated.

    Many thanks.

    DH

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Sum of cells based on matched cells

    Hi
    Your 'mailbox sizes' contains text?

  3. #3
    Registered User
    Join Date
    06-17-2019
    Location
    York
    MS-Off Ver
    2016
    Posts
    5

    Re: Sum of cells based on matched cells

    It contains numbers, as in GB or MB.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,946

    Re: Sum of cells based on matched cells

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    06-17-2019
    Location
    York
    MS-Off Ver
    2016
    Posts
    5

    Re: Sum of cells based on matched cells

    I tried to attach a file but clicking the paperclip icon just shows a small white menu with no other input on it. I can't even add a screenshot of that to show you! I'll try from another browser.
    Last edited by davehamshaw; 06-17-2019 at 12:17 PM.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,946

    Re: Sum of cells based on matched cells

    Read post #4 again … it explains what to do. The paperclip doesn't work.

  7. #7
    Registered User
    Join Date
    06-17-2019
    Location
    York
    MS-Off Ver
    2016
    Posts
    5

    Re: Sum of cells based on matched cells

    Apologies, didn't see the last bit, file attached with dumb data.
    Attached Files Attached Files

  8. #8
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,767

    Re: Sum of cells based on matched cells

    into D12:

    Formula: copy to clipboard
    =SUM(SUMIFS(B2:B10,A2:A10,D2:D6))

    accept with Ctrl+Shift+Enter (not just Enter).
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  9. #9
    Registered User
    Join Date
    06-17-2019
    Location
    York
    MS-Off Ver
    2016
    Posts
    5

    Re: Sum of cells based on matched cells

    That's great! Thank you for your help everyone, that looks to have got it.

  10. #10
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Sum of cells based on matched cells

    Or in a usual formula (not an array formula)
    Formula: copy to clipboard
    =SUM(INDEX(SUMIF(A2:A10,D2:D6,B2:B10),))

+ 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. Help me to Generate templates if cells are matched
    By bhandari in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-11-2018, 02:20 AM
  2. [SOLVED] Dynamically create sheets with similar names and copy cells on row based on matched cus#
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2016, 07:33 AM
  3. To Count the number of matched Cells
    By HB07 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-31-2015, 07:28 AM
  4. How to match cells and copy adjacent cells once matched.
    By eekbubble in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2015, 11:29 AM
  5. Replies: 19
    Last Post: 05-15-2013, 02:54 PM
  6. Change cell colour, based on matched cells in sheet 2
    By Bobbo Jones in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-14-2013, 02:27 AM
  7. [SOLVED] Copy adjacent cells based on matched cell criteria
    By asdfwqefwe3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-26-2013, 02:26 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