+ Reply to Thread
Results 1 to 3 of 3

Thread: comparing cells, finding matches then pick data from another cell

  1. #1
    Registered User
    Join Date
    07-14-2008
    Location
    England
    Posts
    2

    comparing cells, finding matches then pick data from another cell

    Hi

    Very new to this but in real need of help using excel 2003.

    I am trying to compare 2 worksheets and find matching data then pick another set of data from a different cell...example

    worksheet1
    a b c d
    1 north 7958 steve

    worksheet2
    a b c d e f g
    steve 6 red green 7958 brian 1000


    =lookup(c3,worksheet2!$e$3:$e562,worksheet2!$g$3:$g562) I have got this formula that works ok if I am searching one line of data and comparing to another, but when I try it on worksheets that both contain hundreds of lines it doesnt work. it seem to pick the nearest piece of data to it, but I want it to show nothing if nothing is matched.

    You can see I am trying to match the number 7958 that is present on both worksheets and when it matches I want to display the figure on the same line in column g. So the display answer should be 1000.

    please help

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    Try:

    =if(isna(vlookup(c3,worksheet2!$e$3:$g562,3,0)),"",vlookup(c3,worksheet2!$e$3:$g562,3,0))
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    07-14-2008
    Location
    England
    Posts
    2

    Thumbs up

    Whose the man......WHOSE DA MAN !!!!

    Your a star dude. Thanks


+ 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.2.0