Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default vlookup and hlookup in the same formula

Hi,
I have a spreadsheet that I would like to pull data from a pivot table on a
different sheet. The data I have would need to pull from both the rows and
the columns. It would look like this:
Labor Code x Labor Code y Labor Code z
Name
Name
Name
Name

I would like the lookup to reference the name and the labor code from the
pivot table. Is there a way to combine a Vlookup with an Hlookup? Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default vlookup and hlookup in the same formula

=INDEX(data range,MATCH("mama",A1:A100,0),MATCH("Labor Code y",A1:C1,0))

Adjust to suit


"lindsayhyle" wrote:

Hi,
I have a spreadsheet that I would like to pull data from a pivot table on a
different sheet. The data I have would need to pull from both the rows and
the columns. It would look like this:
Labor Code x Labor Code y Labor Code z
Name
Name
Name
Name

I would like the lookup to reference the name and the labor code from the
pivot table. Is there a way to combine a Vlookup with an Hlookup? Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default vlookup and hlookup in the same formula

Thank you!

"Teethless mama" wrote:

=INDEX(data range,MATCH("mama",A1:A100,0),MATCH("Labor Code y",A1:C1,0))

Adjust to suit


"lindsayhyle" wrote:

Hi,
I have a spreadsheet that I would like to pull data from a pivot table on a
different sheet. The data I have would need to pull from both the rows and
the columns. It would look like this:
Labor Code x Labor Code y Labor Code z
Name
Name
Name
Name

I would like the lookup to reference the name and the labor code from the
pivot table. Is there a way to combine a Vlookup with an Hlookup? Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default vlookup and hlookup in the same formula

Teethless mama

I have tried using a formula, based on your suggestion below, but I'm
getting the column header instead of the cell value that I need.

This is what I have entered in cell AV4:
=INDEX(1:65536,MATCH(AU4,A12:A112,0),MATCH(AU3,A1: AT1,0))

AU4 is a client code that I need to find in range A12 to A112.
AU3 is the column header that I need to find in range A1:AT1 - cell AU3 has
a formula and will therefore update when other figures are updated.
T12 contains the result that I need.

Any suggestions?

"Teethless mama" wrote:

=INDEX(data range,MATCH("mama",A1:A100,0),MATCH("Labor Code y",A1:C1,0))

Adjust to suit


"lindsayhyle" wrote:

Hi,
I have a spreadsheet that I would like to pull data from a pivot table on a
different sheet. The data I have would need to pull from both the rows and
the columns. It would look like this:
Labor Code x Labor Code y Labor Code z
Name
Name
Name
Name

I would like the lookup to reference the name and the labor code from the
pivot table. Is there a way to combine a Vlookup with an Hlookup? Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default vlookup and hlookup in the same formula

Resolved this now - referred to inaccurate data ranges.

"Sarah (OGI)" wrote:

Teethless mama

I have tried using a formula, based on your suggestion below, but I'm
getting the column header instead of the cell value that I need.

This is what I have entered in cell AV4:
=INDEX(1:65536,MATCH(AU4,A12:A112,0),MATCH(AU3,A1: AT1,0))

AU4 is a client code that I need to find in range A12 to A112.
AU3 is the column header that I need to find in range A1:AT1 - cell AU3 has
a formula and will therefore update when other figures are updated.
T12 contains the result that I need.

Any suggestions?

"Teethless mama" wrote:

=INDEX(data range,MATCH("mama",A1:A100,0),MATCH("Labor Code y",A1:C1,0))

Adjust to suit


"lindsayhyle" wrote:

Hi,
I have a spreadsheet that I would like to pull data from a pivot table on a
different sheet. The data I have would need to pull from both the rows and
the columns. It would look like this:
Labor Code x Labor Code y Labor Code z
Name
Name
Name
Name

I would like the lookup to reference the name and the labor code from the
pivot table. Is there a way to combine a Vlookup with an Hlookup? Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default vlookup and hlookup in the same formula

Try this:

=INDEX(A1:AT112,MATCH(AU4,A1:A112,0),MATCH(AU3,A1: AT1,0))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Sarah (OGI)" wrote in message
...
Teethless mama

I have tried using a formula, based on your suggestion below, but I'm
getting the column header instead of the cell value that I need.

This is what I have entered in cell AV4:
=INDEX(1:65536,MATCH(AU4,A12:A112,0),MATCH(AU3,A1: AT1,0))

AU4 is a client code that I need to find in range A12 to A112.
AU3 is the column header that I need to find in range A1:AT1 - cell AU3 has
a formula and will therefore update when other figures are updated.
T12 contains the result that I need.

Any suggestions?

"Teethless mama" wrote:

=INDEX(data range,MATCH("mama",A1:A100,0),MATCH("Labor Code y",A1:C1,0))

Adjust to suit


"lindsayhyle" wrote:

Hi,
I have a spreadsheet that I would like to pull data from a pivot table
on a
different sheet. The data I have would need to pull from both the rows
and
the columns. It would look like this:
Labor Code x Labor Code y Labor Code z
Name
Name
Name
Name

I would like the lookup to reference the name and the labor code from
the
pivot table. Is there a way to combine a Vlookup with an Hlookup?
Thanks.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default vlookup and hlookup in the same formula

Thank you for your response.

I realised it was something to do with the references - I was getting abit
confused. All sorted now.

Thanks again.

"RagDyeR" wrote:

Try this:

=INDEX(A1:AT112,MATCH(AU4,A1:A112,0),MATCH(AU3,A1: AT1,0))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Sarah (OGI)" wrote in message
...
Teethless mama

I have tried using a formula, based on your suggestion below, but I'm
getting the column header instead of the cell value that I need.

This is what I have entered in cell AV4:
=INDEX(1:65536,MATCH(AU4,A12:A112,0),MATCH(AU3,A1: AT1,0))

AU4 is a client code that I need to find in range A12 to A112.
AU3 is the column header that I need to find in range A1:AT1 - cell AU3 has
a formula and will therefore update when other figures are updated.
T12 contains the result that I need.

Any suggestions?

"Teethless mama" wrote:

=INDEX(data range,MATCH("mama",A1:A100,0),MATCH("Labor Code y",A1:C1,0))

Adjust to suit


"lindsayhyle" wrote:

Hi,
I have a spreadsheet that I would like to pull data from a pivot table
on a
different sheet. The data I have would need to pull from both the rows
and
the columns. It would look like this:
Labor Code x Labor Code y Labor Code z
Name
Name
Name
Name

I would like the lookup to reference the name and the labor code from
the
pivot table. Is there a way to combine a Vlookup with an Hlookup?
Thanks.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
hlookup & vlookup together schampiri Excel Discussion (Misc queries) 3 December 4th 06 06:06 AM
VLOOKUP/HLOOKUP MsNadi Excel Discussion (Misc queries) 1 February 10th 06 07:44 PM
can i use vlookup and hlookup together Tinman09 Excel Discussion (Misc queries) 1 November 7th 05 09:50 PM
VLOOKUP or HLOOKUP?? reno Excel Worksheet Functions 0 December 20th 04 07:03 PM
formula using both vlookup & hlookup xFreeAdvice Excel Worksheet Functions 2 November 17th 04 11:19 PM


All times are GMT +1. The time now is 09:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"