Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet that has the following data.
5000 10000 15000 25000 A 1 6 7 9 B 3 4 2 1 C 5 5 7 3 D 12 16 15 99 What I want to do through code is to supply 10000 and C through variables to a function and have it return to me a 5. Does anyone have any code that would accomplish this? -- M. Shipp |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Believe you are looking at the function index() =INDEX(A1:E5,4,2) which consists of the area, row number, column number If you are also looking for integrating row and column numbers, you will need to combine =MATCH(A10,A1:A5,FALSE) for row =MATCH(A11,A1:E1,FALSE) for column provided you input your variables in A10 and A11 HTH Cheers Carim |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Debra Dalgleish has some tips on how to use =index(match()) at:
http://contextures.com/xlFunctions03.html SHIPP wrote: I have a worksheet that has the following data. 5000 10000 15000 25000 A 1 6 7 9 B 3 4 2 1 C 5 5 7 3 D 12 16 15 99 What I want to do through code is to supply 10000 and C through variables to a function and have it return to me a 5. Does anyone have any code that would accomplish this? -- M. Shipp -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sounds very logical. I'll try it right away.
-- M. Shipp "Dave Peterson" wrote: Debra Dalgleish has some tips on how to use =index(match()) at: http://contextures.com/xlFunctions03.html SHIPP wrote: I have a worksheet that has the following data. 5000 10000 15000 25000 A 1 6 7 9 B 3 4 2 1 C 5 5 7 3 D 12 16 15 99 What I want to do through code is to supply 10000 and C through variables to a function and have it return to me a 5. Does anyone have any code that would accomplish this? -- M. Shipp -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Combining Lookup function and Sum function | Excel Worksheet Functions | |||
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU | Excel Discussion (Misc queries) | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
how to combine an IF Function with a lookup function to determine | Excel Worksheet Functions | |||
Pivot table doing a lookup without using the lookup function? | Excel Discussion (Misc queries) |