+ Reply to Thread
Results 1 to 16 of 16

Formula to match multiple cells in 2 sheets

  1. #1
    Registered User
    Join Date
    12-08-2010
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    69

    Formula to match multiple cells in 2 sheets

    Dear All,

    I need to match 3 value from sheet1 and if the same 3 value found in sheet2 than I need the next cell information, please find the attached file for more detail.



    Thanking you in advance

    Mubeen
    Attached Files Attached Files

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Formula to match multiple cells in 2 sheets

    Hello
    Greetings for the day!

    I have done what you needed....
    For this I have added two helper columns ..one in both the sheets...

    Tell me if it works right….

    Hope it helps
    Do ask for any other query you may have…

    If you are satisfied then mark then PLEASE mark this thread as “SOLVED” (by going to thread tools at the top and clicking on “mark this thread as solved”) and you can just click on ADD REPUTATION below my post to say thanks...

    Regards
    Sourabh Gupta
    Attached Files Attached Files

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,025

    Re: Formula to match multiple cells in 2 sheets

    Check the example
    Attached Files Attached Files
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    12-08-2010
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Formula to match multiple cells in 2 sheets

    No dear,

    I need to bring the sheet2 value if from sheet1 cell
    lets say in sheet1 I,J,K,L matching with sheet2 than bring m from sheet2 cell m to sheet1 in m ( just like velookup but for multiple values

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,025

    Re: Formula to match multiple cells in 2 sheets

    I bring from sheet2 column M to sheet1 column M.

  6. #6
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Formula to match multiple cells in 2 sheets

    Hello
    Yes I have done the same...
    Please test by putting some values .....if I,J,K,L columns would match in sheet 2 then value from sheet 2 will come to column m in sheet 1...
    It is working fine here...
    please check...
    Regards
    Sourabh

  7. #7
    Registered User
    Join Date
    12-08-2010
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Formula to match multiple cells in 2 sheets

    Thanks Zbor,

    this what exactly what I need

  8. #8
    Registered User
    Join Date
    12-08-2010
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    69

    Thumbs up Re: Formula to match multiple cells in 2 sheets

    Thanks Zbor,

    this what exactly what I need

  9. #9
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Formula to match multiple cells in 2 sheets

    Hello
    Is my method not working?
    Please reply..
    thanks..

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Formula to match multiple cells in 2 sheets

    M2=IFERROR(INDEX(Sheet2!$M$7:$M$2382,MATCH(1,INDEX((Sheet2!$C$7:$C$2382=$I2)*(Sheet2!$G$7:$G$2382=$J2)*(Sheet2!$F$7:$F$2382=$L2)*(Sheet2!$H$7:$H$2382=$K2),0),0)),"")

    OR

    M2=SUMIFS(Sheet2!$M$7:$M$2382,Sheet2!$C$7:$C$2382,$I2,Sheet2!$G$7:$G$2382,$J2,Sheet2!$F$7:$F$2382,$L2,Sheet2!$H$7:$H$2382,$K2)

    TRY THIS AND COPY TOWARDS DOWN
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  11. #11
    Registered User
    Join Date
    12-08-2010
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Formula to match multiple cells in 2 sheets

    Thanks Zbor,

    this what exactly what I need

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Formula to match multiple cells in 2 sheets

    M2=IFERROR(INDEX(Sheet2!$M$7:$M$2382,MATCH(1,INDEX((Sheet2!$C$7:$C$2382=$I2)*(Sheet2!$G$7:$G$2382=$J2)*(Sheet2!$F$7:$F$2382=$L2)*(Sheet2!$H$7:$H$2382=$K2),0),0)),"")

    OR

    M2=SUMIFS(Sheet2!$M$7:$M$2382,Sheet2!$C$7:$C$2382,$I2,Sheet2!$G$7:$G$2382,$J2,Sheet2!$F$7:$F$2382,$L2,Sheet2!$H$7:$H$2382,$K2)

    TRY THIS AND COPY TOWARDS DOWN

  13. #13
    Registered User
    Join Date
    12-08-2010
    Location
    uae
    MS-Off Ver
    Excel 2007
    Posts
    69

    Re: Formula to match multiple cells in 2 sheets

    Dear Sourabh Gupta ,

    Thnks for your support but what exactly I need solution given by Zbor please check his attached file , I think I failed to explain u what I need.

    Mubeen

  14. #14
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,025

    Re: Formula to match multiple cells in 2 sheets

    sourabhg98,
    your formula work too.

    However, if you want to go with helper column I would suggest to use one one (on sheet2).

    So your formula would be:

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


    Also, optionaly, it's better to use non-standard delimiters (that I didn't include in mine solution since it's unlikely to happend but it would be better).

    So instead of , or . or space etc. use something like | ~ ^ etc.

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

  15. #15
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Formula to match multiple cells in 2 sheets

    Here is my way you can consider.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I have changed the column sequence in the sheet2 to favor formula.

    I have explained this technique here. So you can learn if you want.
    Searching a whole Row in the table to return Row number or Corresponding cell


    Check the attached file:-
    Attached Files Attached Files
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  16. #16
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Formula to match multiple cells in 2 sheets

    Dear Zbor
    thanks for your suggestion..I will keep them in mind next time...

    Regards
    Sourabh

+ 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. [SOLVED] Multiple match of cells based on 2 sheets
    By Christopherdj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-18-2014, 03:37 AM
  2. Need a formula that will partial match data on multiple sheets
    By dmitch20 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2013, 08:44 PM
  3. Macro for multiFindandReplace btw sheets requiring multiple cells to match
    By jgutknecht in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-08-2013, 10:28 AM
  4. [SOLVED] Match multiple cells in seperate sheets and then insert cell
    By Jostler18 in forum Excel General
    Replies: 2
    Last Post: 05-01-2012, 04:59 PM
  5. Match cells from Multiple sheets and copy rows
    By Kilcup01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2011, 12:43 PM

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