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,
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.
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!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks