+ Reply to Thread
Results 1 to 3 of 3

To refer certain value from other sheet

  1. #1
    Registered User
    Join Date
    10-07-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question To refer certain value from other sheet

    Sheet 1:
    A1 = 80; B1 = 30;
    A2 = 81; B2 = 33;
    A3 = 82; B3 = 37;

    Sheet 2:
    a) When user key in 80, 30 should display. How do I display the next column value 30 in this case?

    b) What function to use to scan all A column till it hits 80?

    Thank you,
    Last edited by pastecopy; 03-19-2011 at 09:48 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: To refer certain value from other sheet

    You have created a standard lookup table. You can use LOOKUP, VLOOKUP or INDEX/MATCH.

    I would think in your sample, if a user keys in 80 on Sheet2 cell A2, this in B2:

    =IF(ISNUMBER(MATCH($B2, Sheet1!$A:$A, 0)), VLOOKUP($A2, Sheet1!$A:$B, 2, 0), "")
    Last edited by JBeaucaire; 03-20-2011 at 09:59 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-07-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: To refer certain value from other sheet

    Quote Originally Posted by JBeaucaire View Post
    You have created a standard lookup table. You can use LOOKUP, VLOOKUP or INDEX/MATCH.

    I would think in your sample, if a user keys in 80 on Sheet2 cell A2, this in B2:

    =IF(ISNUMBER(MATCH($B2, Sheet1!$A:$A, 0)), VLOOKUP($A2, Sheet1!$A:$A, 2, 0), "")
    Thank you very much, problem solved !

+ 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