+ Reply to Thread
Results 1 to 6 of 6

Sheet B (column A) will search for the phone number on Sheet A

  1. #1
    Registered User
    Join Date
    09-11-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    31

    Sheet B (column A) will search for the phone number on Sheet A

    Sheet B (column A) will search for the phone number on Sheet A (column C) and display the text on column B (of sheet B)
    ex

    sheet A
    A B C
    apple angela 222-3323
    banana brian 222-6621
    cat carla 666-3333
    dog denmark 222-4444
    sleep englebert 666-8888

    sheet B (SheetB-Column A will search for phone number on sheetA-column C and if found display contents on sheetA-ColumnB on sheetB-columnB )
    A B
    222-6621 brian
    222-3323 angela
    444-8888 <not found, don't display anything>
    666-8888 englebert
    667-0122
    222-4444 denmark

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sheet B (column A) will search for the phone number on Sheet A

    Try:

    =IF(ISNUMBER(MATCH(A2,'Sheet A'!C:C,0)),INDEX('Sheet A'!B:B,MATCH(A2,'Sheet A'!C:C,0)),"")

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

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

    Re: Sheet B (column A) will search for the phone number on Sheet A

    Use
    =IF(ISNA(INDEX(SheetA!$B$2:$B$6,MATCH(A1,SheetA!$C$2:$C$6,0))),"",INDEX(SheetA!$B$2:$B$6,MATCH(A1,SheetA!$C$2:$C$6,0)))

    For 2007 and later versions
    =IFERROR(INDEX(SheetA!$B$2:$B$6,MATCH(A1,SheetA!$C$2:$C$6,0)),"")
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Sheet B (column A) will search for the phone number on Sheet A

    Excel 2007+

    Please Login or Register  to view this content.
    excel 2003-
    Please Login or Register  to view this content.
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  5. #5
    Registered User
    Join Date
    09-11-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Sheet B (column A) will search for the phone number on Sheet A

    can you code it again
    compare (sheet B - column A) to (sheet A column D) for the phone number.
    Then display the value of (sheet A - column C) on (sheet B - column B)

    sheet A
    ...C......D
    anna 222-3333
    banana 777-8888
    cat 666-0101


    sheet B
    ...A..........B
    666-0101 cat <-output
    5445-8888 <blank, no match>
    222-3333 anna <-output



    Thank you

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Sheet B (column A) will search for the phone number on Sheet A

    Like so, in B2 of Sheet B...

    =IF(ISNUMBER(MATCH(A2,'Sheet A'!D:D,0)),INDEX('Sheet A'!C:C,MATCH(A2,'Sheet A'!D:D,0)),"")

    change Sheet A to actual sheetname if different.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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