ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Vlookup and Hlookup (https://www.excelbanter.com/excel-discussion-misc-queries/216607-vlookup-hlookup.html)

Eric D

Vlookup and Hlookup
 
Is it possible to have a formula use both vlookup and hlookup together?

for example if i have a columns and rows that could change, but i have
labels in those that remain constant. Can i do a hlookup to find correct
column and then a vlookup to go to the right row to retrieve one value?



--
Eric

Pete_UK

Vlookup and Hlookup
 
You can use MATCH to find the column number, like this:

=MATCH("Start date",1:1,0)

if your header is in row 1, but the start date column may vary. Then
substitute this (without the = sign) as the 3rd parameter of your
VLOOKUP. This assumes that the lookup column in your table is A, so
you may need to subtract a constant from the MATCH value if it
differs.

Hope this helps.

Pete

On Jan 15, 4:17*pm, Eric D wrote:
Is it possible to have a formula use both vlookup and hlookup together?

for example if i have a columns and rows that could change, but i have
labels in those that remain constant. *Can i do a hlookup to find correct
column and then a vlookup to go to the right row to retrieve one value?

--
Eric



JBeaucaire[_90_]

Vlookup and Hlookup
 
You want an INDEX(MATCH() more than likely.

Read up on them he
http://skp.mvps.org/xl00002.htm
http://support.microsoft.com/kb/214142

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Eric D" wrote:

Is it possible to have a formula use both vlookup and hlookup together?

for example if i have a columns and rows that could change, but i have
labels in those that remain constant. Can i do a hlookup to find correct
column and then a vlookup to go to the right row to retrieve one value?



--
Eric


Eric D

Vlookup and Hlookup
 
Thanks that works well for what i needed
--
Eric


"JBeaucaire" wrote:

You want an INDEX(MATCH() more than likely.

Read up on them he
http://skp.mvps.org/xl00002.htm
http://support.microsoft.com/kb/214142

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Eric D" wrote:

Is it possible to have a formula use both vlookup and hlookup together?

for example if i have a columns and rows that could change, but i have
labels in those that remain constant. Can i do a hlookup to find correct
column and then a vlookup to go to the right row to retrieve one value?



--
Eric



All times are GMT +1. The time now is 04:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com