+ Reply to Thread
Results 1 to 6 of 6

Not sure if vlookup correct for problem

  1. #1
    Registered User
    Join Date
    06-19-2008
    Posts
    9

    Not sure if vlookup correct for problem

    Not sure if VLOOKUP is what I need, tried and it did not work very well.

    I have 2 sheets, they both contain 2 colums.
    Sim & Modem, both these consist of a set of numbers.

    I need to compare a master sheet against another sheet, like this:

    Master
    Sim Modem
    123 345
    355 233

    Other
    Sim Modem
    123 345
    355 342

    I need to try and compare the sim number matchs the modem number next to it on the other sheet using the master as the source, and in some way mark it what matches, there are about 300 rows.

    Thanks in advance for any help.

  2. #2
    Registered User
    Join Date
    06-17-2008
    MS-Off Ver
    Excel 2003
    Posts
    30

    concat

    I think you can use a concatonation, and then do a vlookup off of that

  3. #3
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day,

    Try this,

    On the other sheet insert a new column, so the Sim info is in col B and the Modem info is in col C.

    In cell A2 insert formula

    =B2&C2

    then copy down.

    On the master sheet, if Sim info is col A and the Modem info is col B.

    In cell C2 insert formula

    Please Login or Register  to view this content.
    OTHER SHEET. Please insert the correct name sheet reference according to your workbook

    Hope that helps
    Last edited by ratcat; 07-14-2008 at 05:27 PM.
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  4. #4
    Registered User
    Join Date
    06-19-2008
    Posts
    9
    Many thanks ratcat, working just right.

    I guess I did not think of the obvious of adding the 2 together and doing a simple vlookup on the single number that way >.<

    Thanks again.

  5. #5
    Registered User
    Join Date
    06-19-2008
    Posts
    9
    Hmm ok struggling again

    I now need to do add the following:
    Instead printing "Match" I need to display the data from the other sheet on colum 5.

    So I though this would work

    Please Login or Register  to view this content.
    But just get #REF

    Thanks again for any more help

  6. #6
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    Quote Originally Posted by Martin.R
    Hmm ok struggling again

    I now need to do add the following:
    Instead printing "Match" I need to display the data from the other sheet on colum 5.

    So I though this would work

    Please Login or Register  to view this content.
    But just get #REF

    Thanks again for any more help
    Ok, you need to change your table array in the formula.

    )),"No Match",VLOOKUP(A2&B2,OTHER SHEET$A$2:$A$1000,5,FALSE)

    From $A$2:$A$1000

    to $A$2:$E$1000

    Because from Col A to Col E is 5 step across.

    eg A=1,B=2,C=3,D=4,E=5,F=6,G=7, etc, etc,

    But in saying that if your table range starts at col D.

    Col D becomes 1, col E=2 etc, etc.

    Cheers

+ 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