#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default table look ups

I have a table of data that I would like to use both the hlookup and vlookup
function at the same time to retrieve data. Column A is a listing of codes,
and my column headings consists of 4 sizes. How can I write a formula using
both a vlookup and hlookup at the same time? For example, in a spreadsheet,
if someone enters a code in one cell and a size in the adjouning cell, how
can the formula return correct value from the table of data?

Thank you


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default table look ups

See this screencap:

http://img100.imageshack.us/img100/4141/lookuper2.jpg

Biff

"Frances" wrote in message
...
I have a table of data that I would like to use both the hlookup and
vlookup
function at the same time to retrieve data. Column A is a listing of
codes,
and my column headings consists of 4 sizes. How can I write a formula
using
both a vlookup and hlookup at the same time? For example, in a
spreadsheet,
if someone enters a code in one cell and a size in the adjouning cell, how
can the formula return correct value from the table of data?

Thank you




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default table look ups

Try something like this:

With
Data list in A1:E10
A2:A10 contains codes
B1:E1 contains sizes

F1: (a code to lookup)
G1: (a size to lookup)

This formula finds the code value of F1 in A1:A10 and returns the
corresponding value under the column headed by the size value in G1
H1: =VLOOKUP(F1,$A$1:$E$10,MATCH(G1,B1:$A$1:$E$1,0),0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Frances" wrote:

I have a table of data that I would like to use both the hlookup and vlookup
function at the same time to retrieve data. Column A is a listing of codes,
and my column headings consists of 4 sizes. How can I write a formula using
both a vlookup and hlookup at the same time? For example, in a spreadsheet,
if someone enters a code in one cell and a size in the adjouning cell, how
can the formula return correct value from the table of data?

Thank you


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default table look ups

THank you Ron. This works.

"Ron Coderre" wrote:

Try something like this:

With
Data list in A1:E10
A2:A10 contains codes
B1:E1 contains sizes

F1: (a code to lookup)
G1: (a size to lookup)

This formula finds the code value of F1 in A1:A10 and returns the
corresponding value under the column headed by the size value in G1
H1: =VLOOKUP(F1,$A$1:$E$10,MATCH(G1,B1:$A$1:$E$1,0),0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Frances" wrote:

I have a table of data that I would like to use both the hlookup and vlookup
function at the same time to retrieve data. Column A is a listing of codes,
and my column headings consists of 4 sizes. How can I write a formula using
both a vlookup and hlookup at the same time? For example, in a spreadsheet,
if someone enters a code in one cell and a size in the adjouning cell, how
can the formula return correct value from the table of data?

Thank you


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default table look ups

Thanks Biff. This works.



"Biff" wrote:

See this screencap:

http://img100.imageshack.us/img100/4141/lookuper2.jpg

Biff

"Frances" wrote in message
...
I have a table of data that I would like to use both the hlookup and
vlookup
function at the same time to retrieve data. Column A is a listing of
codes,
and my column headings consists of 4 sizes. How can I write a formula
using
both a vlookup and hlookup at the same time? For example, in a
spreadsheet,
if someone enters a code in one cell and a size in the adjouning cell, how
can the formula return correct value from the table of data?

Thank you







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default table look ups

You're welcome!

Biff

"Frances" wrote in message
...
Thanks Biff. This works.



"Biff" wrote:

See this screencap:

http://img100.imageshack.us/img100/4141/lookuper2.jpg

Biff

"Frances" wrote in message
...
I have a table of data that I would like to use both the hlookup and
vlookup
function at the same time to retrieve data. Column A is a listing of
codes,
and my column headings consists of 4 sizes. How can I write a formula
using
both a vlookup and hlookup at the same time? For example, in a
spreadsheet,
if someone enters a code in one cell and a size in the adjouning cell,
how
can the formula return correct value from the table of data?

Thank you







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
Create a Word Table from a Excel Macro Silvia Excel Discussion (Misc queries) 0 September 7th 06 12:34 AM
How do I link a cell outside a pivot table to one inside the table GPGTDRVR Excel Discussion (Misc queries) 3 August 17th 06 02:45 AM
Custom field in Pivot Table? [email protected] Excel Discussion (Misc queries) 1 August 8th 06 07:20 PM
Pivot Table external XLS file source change and GETPIVOTDATA refresh mbobro Excel Discussion (Misc queries) 0 July 8th 06 12:45 PM
Change Data In Pivot Table John Calder New Users to Excel 1 July 7th 05 10:41 PM


All times are GMT +1. The time now is 04:19 PM.

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

About Us

"It's about Microsoft Excel"