+ Reply to Thread
Results 1 to 10 of 10

Multiple rows/columns values compare and fetch data

  1. #1
    Registered User
    Join Date
    11-22-2014
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    83

    Multiple rows/columns values compare and fetch data

    Hi, I have got a data in sheet1 from which it the data needs to be fetched into a table in Sheet2 depending on the vendor name, Month and Performance (headers in row 2 of the sheet1). Is it possible to get this done by formulas? I tried a combination of vlookup, Index and Match with no luck.

    can any one please help me on this? Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Multiple rows/columns values compare and fetch data

    Administrative Note:

    Members will tailor the solutions they offer to the version of Office (Excel) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-22-2014
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    83

    Re: Multiple rows/columns values compare and fetch data

    Hi Ali, I have updated my profile and my version is for windows. Thank you!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Multiple rows/columns values compare and fetch data

    In B7 copied across and down:

    =IFNA(INDEX(Sheet1!$C$3:$N$12,MATCH(1,(Sheet1!$A$3:$A$12=$E$1)*(Sheet1!$B$3:$B$12=$E$2),0),MATCH(1,(Sheet1!$C$1:$N$1=B$6)*(Sheet1!$C$2:$N$2=$A7),0)),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-22-2014
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    83

    Re: Multiple rows/columns values compare and fetch data

    Hi Ali, That worked like Magic! Thanks a lot!
    Last edited by AliGW; 01-09-2022 at 01:22 PM. Reason: PLEASE don't quote unnecessarily!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Multiple rows/columns values compare and fetch data

    You're welcome.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  7. #7
    Registered User
    Join Date
    11-22-2014
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    83

    Re: Multiple rows/columns values compare and fetch data

    Hi Ali,

    I am sorry! to ask more questions on this. Just found that we have some colleagues still using Excel 2010 and IFNA doesn't work there as it was not introduced in that version. I tried to use IFERROR replacing IFNA but it throws up some error. Sorry again!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Multiple rows/columns values compare and fetch data

    OK - no problem. This should work instead:

    =IF(ISNA(INDEX(Sheet1!$C$3:$N$12,MATCH(1,(Sheet1!$A$3:$A$12=$E$1)*(Sheet1!$B$3:$B$12=$E$2),0),MATCH(1,(Sheet1!$C$1:$N$1=B$6)*(Sheet1!$C$2:$N$2=$A7),0))),"",INDEX(Sheet1!$C$3:$N$12,MATCH(1,(Sheet1!$A$3:$A$12=$E$1)*(Sheet1!$B$3:$B$12=$E$2),0),MATCH(1,(Sheet1!$C$1:$N$1=B$6)*(Sheet1!$C$2:$N$2=$A7),0)))

  9. #9
    Registered User
    Join Date
    11-22-2014
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    83

    Re: Multiple rows/columns values compare and fetch data

    Thanks a lot! That works perfectly for 2010.
    Last edited by AliGW; 01-10-2022 at 06:19 AM. Reason: PLEASE don't quote unnecessarily!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Multiple rows/columns values compare and fetch data

    You're welcome.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

+ 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. compare column from two sheet and fetch differ data
    By wlinksanju in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2021, 08:24 AM
  2. Fetch records from multiple columns and display in rows
    By vvenkat70 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-02-2018, 12:58 AM
  3. Replies: 1
    Last Post: 07-08-2015, 05:01 AM
  4. [SOLVED] Fetch Data: Return Multiple Rows based on Cell Content
    By pdreyest in forum Excel General
    Replies: 8
    Last Post: 09-24-2012, 12:43 AM
  5. compare values multiple columns
    By allaud in forum Excel General
    Replies: 5
    Last Post: 07-12-2011, 09:16 AM
  6. Compare 2 columns delete rows with matching values
    By mattmac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2009, 01:50 PM
  7. [SOLVED] Compare and align rows of multiple but differing columns of data
    By e abor in forum Excel General
    Replies: 0
    Last Post: 06-06-2006, 12:10 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