+ Reply to Thread
Results 1 to 8 of 8

Match 2 cells and total two tables

  1. #1
    Registered User
    Join Date
    11-02-2016
    Location
    Bellingham
    MS-Off Ver
    2010
    Posts
    26

    Match 2 cells and total two tables

    Hello,
    I need some help with another Datasheet I am working with.

    There is two main formula I am looking to create.
    The first one will find the matching first and last name in a different table and copy a specific cell from the row I chose.

    The second one will combine data from two different tables if the first and late names are matching.

    To help with clarity, I made an excel example for you with Notes attached to the cells I am looking to create those formulas.
    Thank you for your time and helps.

    Edit : I made a Typo in the example. Result in K5 should be green room not Aqua Room.
    Attached Files Attached Files
    Last edited by remyte; 07-15-2021 at 03:48 PM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Match 2 cells and total two tables

    Perhaps like that:

    J5 -
    =INDEX($R$1:$R$9,AGGREGATE(15,6,(ROW($R$5:$R$9)/($A5&$B5=$P$5:$P$9&$Q$5:$Q$9)),1))

    K5 =
    =INDEX($R$1:$R$22,AGGREGATE(15,6,(ROW($R$18:$R$22)/($A5&$B5=$P$18:$P$22&$Q$18:$Q$22)),1))

    L5:
    =SUMIFS(X:X,P:P,A5,Q:Q,B5,R:R,K5)
    Attached Files Attached Files
    Last edited by Limor_OP; 07-15-2021 at 06:01 AM.

  3. #3
    Registered User
    Join Date
    11-02-2016
    Location
    Bellingham
    MS-Off Ver
    2010
    Posts
    26

    Re: Match 2 cells and total two tables

    Belinda200,
    Thank you so much for your help.
    The two first formulas work perfectly.
    The third one is working on the example, but the actual file will have those two different tables in different tabs and not on the same row. (it actually may have more than 2 table in the future, but with your help on understanding the basic formula, I am hoping to figure out how to manipulate it)

    Thank you.

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Match 2 cells and total two tables

    Hi remyte
    You can use the INDIRECT function. how many tabs are you going to have? only these two?
    Each tab is added separately to the formula. the "+" is summing the information from the 2 tabs. If you have additional - you will need to add it as well.

    L5:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-02-2016
    Location
    Bellingham
    MS-Off Ver
    2010
    Posts
    26

    Re: Match 2 cells and total two tables

    Belinda200,
    I try my best to transfer your formula to my actual file but It looks like I am forgetting something.
    I think I understand the formula.
    I attached the actual file so you can see exactly all the different programs and where the cell with the formula is located.
    The formula is on N3 in Students Date Base

    Can you help me figure out what I missed?

    Merci
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Match 2 cells and total two tables

    Hi,
    you have the "=" sign within your formula...remove it (in 2 places)

    INDIRECT("'"&J$2&"'!"&"=H5:H134")

  7. #7
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Match 2 cells and total two tables

    ---Deleted----
    Last edited by Limor_OP; 07-15-2021 at 03:35 PM.

  8. #8
    Registered User
    Join Date
    11-02-2016
    Location
    Bellingham
    MS-Off Ver
    2010
    Posts
    26

    Re: Match 2 cells and total two tables

    Beautifully 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. Match Cells and Sum between two tables
    By Sultix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2018, 01:11 AM
  2. Certain words from two different cells need to match to get total
    By thanhie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2015, 08:30 PM
  3. Multiply the cells to match with the total
    By rabbar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-17-2014, 05:53 PM
  4. Match several random cells to a total cell
    By marky571 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2014, 06:48 PM
  5. Sequentially subtract range of cells to match new total.
    By jlnunes5 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2013, 04:40 PM
  6. [SOLVED] Cell Total if two cells match text
    By nubehaviour in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2013, 09:06 AM
  7. Replies: 1
    Last Post: 12-19-2005, 05:59 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