+ Reply to Thread
Results 1 to 23 of 23

LOOKUP Help

  1. #1
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    LOOKUP Help

    Hello all.

    I know that I need to use LOOKUP for this function, but Im not sure about how. I have two sheets (Sheet1 and Sheet2). Sheet1 has two columns, a blank one (B) and one with numbers in it (c). Sheet2 has 2 columns, both with numbers, (B) and (C).

    What I want is to check the columns on both sheets (C) and, if they match, enter the number in Sheet2(B) in the cell in Sheet1(B).

    Your help is greatly appreciated!

    Scott

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    Hi

    With your range B1:C13, try this, in Sheet 1!B1 and copy down.

    =INDEX(Sheet2!$B$1:$B$13,MATCH(C1,Sheet2!$C$1:$C$13,0))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    And just change C13 to whatever the last cell is? Ill try it out. Thanks!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    ..Yes, change c13 & b13 to whatever last cell, is...

  5. #5
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    Hm..well they are different amounts. One page is 29,000 rows and the other, the one with the number that needs to go to Sheet1, is only 5413.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    ..And, so? Where is the problem?

    Do you get an error, somewhere?

  7. #7
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    Sorry. I tried it with 5413, the amount of cells in Sheet2 Column B, and got Err:508.

  8. #8
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    This is what I put in: =INDEX(sheet2!$B$1:$B$5413,MATCH(C1,sheet2!$C$1:$C$5413,0))

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    ...Would you like to upload a small sample workbook??

  10. #10
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    Here is a small sample. Ive cut/pasted it right out of the workbook Im working in.

    sample.xls

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    Let's try with this

    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    I put it in the first cell and it returned a #NAME? error. Not sure if Im doing it right...

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    Did't you see the sample that uploaded for you?

  14. #14
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    I sure did. Looks like it works in the small sample, but I tried cut/pasting the code into the first cell of the actual worksheet and it returned an error. Do I need to make any adjustments to it before I paste it?

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    ...Change all the semi colons(in my formula, to comma(,)

  16. #16
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    Did that and received a Err:508 error.

    =IF(ISNA(INDEX(sheet2!$B$1:$B$25,MATCH(C1,sheet2!$C$1:$C$30,0))),"",INDEX(sheet2!$B$1:$B$25,MATCH(C1,sheet2!$C$1:$C$30,0)))

  17. #17
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    Really sorry... I want to help(Hope that you can see it), but works in my attachement and does not in your real workbook...

    Just now, i am not able to advice you something more...

  18. #18
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    What if I sent the entire workbook?

  19. #19
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    ..If you think so....For me, it's ok.

    I have no more time for tonight. I;ll see it tomorrow morning.

  20. #20
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    No worries. I appreciate your help! Here is the full workbook...

    LSC_FOLDINV MC.zip

  21. #21
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: LOOKUP Help

    Hi

    Scott, take a look at the file. I think it's ok, now.

    Hope that helps you.


    Edit: I "cut" some rows, because i couldn't post the file(was too big)
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    Looks great!!! Only questions is how do you apply the formula to the entire column without having to drag down through 29,000 rows?

    THANKS SO MUCH!!!

  23. #23
    Registered User
    Join Date
    09-03-2010
    Location
    Reno, NV
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: LOOKUP Help

    Nervermind. I figured it out. Thank you so much for all your help! A true life saver!!

+ 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