+ Reply to Thread
Results 1 to 4 of 4

Matching columns based on another column.

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    38

    Matching columns based on another column.

    Hello,

    Look at attached file and description in the document. Anyone who knows how to do this?
    I can't do it manually since I normally have about 2000 rows.

    I hope you understand what I mean - describe something in English isn't my best side

    JohnnyWalker
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Matching columns based on another column.

    The most basic VLOOKUP will do it for you.

    =VLOOKUP(B2;$F$2:$G$8;2;0)

    B2 contains the search value.

    The first column of $F$2:$G$8 is where we expect to find the value in B2. The rest of the columns are the associated data.

    2 means that it is the data in column no 2 of $F$2:$G$8 we want to retrieve.

    0 means that you want an exact match.

    Note! Important to remember and easy to forget is the $ signs. They prevent the data range from following the formula as you copy it down 2000 rows. You can add them easy with F4 when editing the formula.



    Wrapping an IFERROR around it like this prevents you from getting N/A if the data is not found. =IFERROR(VLOOKUP(B15;$F$2:$G$8;2;0);"")
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Matching columns based on another column.

    Wow, thanks. Perfect!

  4. #4
    Registered User
    Join Date
    08-24-2012
    Location
    Schiedam, holland
    MS-Off Ver
    Excel 2003-2013
    Posts
    38

    Re: Matching columns based on another column.

    You can also use the Index-Match function

    Example formulaSH.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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