+ Reply to Thread
Results 1 to 6 of 6

Compare values in two columns and print the corresponding next call value.

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    7

    Compare values in two columns and print the corresponding next call value.

    I have a sheet which contains values in columns A, B, C and D.
    I want to compare the values in D with A and if any value in D matches with A it has to print the value of B in E.
    I need a formula to do this.
    I used if(iserror(match())), but not sure how to print the corresponding B value in E
    To say in simple ways, compare D with A and print the corresponding agent name(B) in E
    I have attached an example Excel Sheet
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Compare values in two columns and print the corresponding next call value.

    What happened if col A although have the same Ticket Number, but have different agents?

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Compare values in two columns and print the corresponding next call value.

    In E2

    Please Login or Register  to view this content.
    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Compare values in two columns and print the corresponding next call value.

    Assuming if Ticket Number in Column A always unique, you can do a quick vlookup. Put this formula on Cell E2

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-11-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Compare values in two columns and print the corresponding next call value.

    Thank you guys! This helped me. I will have to manually remove the duplicate data.

  6. #6
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Compare values in two columns and print the corresponding next call value.

    You can 'know' the duplicates through pivot table or formula function, rather than eye-balling through it

+ 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