+ Reply to Thread
Results 1 to 11 of 11

Matching to multiple vertical columns

  1. #1
    Registered User
    Join Date
    07-29-2021
    Location
    New Jersey, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    5

    Post Matching to multiple vertical columns

    Hello,

    Hope all are doing well.

    Basically, I'm looking to get "Y" or "N" in sheet1 column B for any changes in sheet2 to in columns F and G based on Colum E. I use the formula below, but getting the same results for all other employees hasn't had state change.

    =IF(INDEX(Sheet2!E:E,MATCH(1,COUNTIF($B$1,Sheet2!E:E),0))=$B$1,IF(VLOOKUP($A2,Sheet2!B:F,5,FALSE)=VLOOKUP($A2,Sheet2!B:G,6,0),"N","Y"),"N")

    Thank you for the help
    Bhavan

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Matching to multiple vertical columns

    You should post a small example workbook with two sheets filled with small example data, with a column of Y and N values based on what you want, with some explanation of your reasoning.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Matching to multiple vertical columns

    When you copy that formula down, does your match reference change accordingly? If not then you need to make sure that your cell reference is changing based on the row.
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

  4. #4
    Registered User
    Join Date
    07-29-2021
    Location
    New Jersey, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    5

    Re: Matching to multiple vertical columns

    Thank you Bernie!
    I'm having a hard time attaching the file on my post, is any different ways to sent attachment through the forum?

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Matching to multiple vertical columns

    Instructions for attaching workbooks are at the top of every page so make sure you follow them. But if you haven't posted enough, you may not have permission - in that case, you can copy tables from the sheets and insert the tables into the message body. Just describe the layout and sheet names.

  6. #6
    Registered User
    Join Date
    07-29-2021
    Location
    New Jersey, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    5

    Re: Matching to multiple vertical columns

    Hi Bernie,

    In columns F and G in sheet2, you will see the old value and new value, which highlight changes, I would like to handpick few important changes like state or salary, etc based on column E or D which then match against employees names in Sheet1.
    Sample file attached
    Thank you for your help
    Bhavan
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-29-2021
    Location
    New Jersey, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    5

    Re: Matching to multiple vertical columns

    No, that's where I'm confused.

  8. #8
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: Matching to multiple vertical columns

    Can you provide in your sample, some rows with the expected results.. since that formula isnt returning what you want, can you manually just populate the cells with the values you expect to see

  9. #9
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,331

    Re: Matching to multiple vertical columns

    Employee A had a change of State value, but Employee B did not. So why do you have "Y" for Employee B?

  10. #10
    Registered User
    Join Date
    07-29-2021
    Location
    New Jersey, USA
    MS-Off Ver
    MS 365 MSO
    Posts
    5

    Re: Matching to multiple vertical columns

    Hi Bernie,

    That's where the problem is. I don't understand why "Y" is appearing on employee B, something I'm trying to resolve.

    Thank you
    Bhavan

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,319

    Re: Matching to multiple vertical columns

    Not sure that I totally understand, however the following yields "Y" for Employee A and "N" for Employee B in cells B2:B3 respectively:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that in my opinion the use of whole column references makes troubleshooting a formula very difficult.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Excel Vlookup to get multiple vertical columns
    By yasararafat7107 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-03-2019, 12:22 AM
  2. Replies: 3
    Last Post: 04-27-2015, 05:26 PM
  3. Searching matching vertical and horizontal criteria in multiple sheets
    By Bloozntooz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-14-2015, 04:12 PM
  4. [SOLVED] Matching multiple criteria in two books, one data is horizontal, the other is vertical.
    By udrmichelle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2015, 04:58 PM
  5. [SOLVED] Using Index & Match to search 2 vertical columns and return data to a vertical set
    By QuietLife in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-08-2013, 09:59 AM
  6. Vertical Lookups across Multiple Columns
    By Andrewma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-17-2012, 04:54 PM
  7. [SOLVED] Vertical Look Up in Multiple Columns
    By david.frame in forum Excel General
    Replies: 13
    Last Post: 10-02-2012, 01:35 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