#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Lookup

Good afternoon,

In a worksheet I have five columns.

Zip Code II Zip Code I OT Carrier Transit Date
64429 50010 1 DHRN 1 11/15/2006
64429 50010 8 DHRN 1 11/15/2006
64429 50010 7 DHRN 1 11/15/2006
64429 50010 2 DHRN 1 11/15/2006
64429 50010 4 DHRN 1 11/15/2006
64429 50014 1 DHRN 1 11/15/2006
64429 50014 8 DHRN 1 11/15/2006
64429 50014 7 DHRN 1 11/15/2006


I would like to create a second worksheet to use as a cross table of the
data in the first worksheet. I would like to have the carrier name put at
the intersection of the column (OT) and the row Zip Code I.

So if in the new table I have:
- A2 = 50010
- B1 = 1
- Then b2= DHRN

What would be the formula that would take the data from an organized list
and create a cross table. I tried Match / Index but I do not get the result.

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Lookup

Perhaps something like this:

With
Your posted table on Sheet2, cells A1:F9

Then, on Sheet1
A2: (a Zip Code I value)
B1: (an OT value)

B2:
=INDEX(Sheet2!$D$2:$D$9,SUMPRODUCT((Sheet2!$B$2:$B $9&"_"&Sheet2!$C$2:$C$9=A2&"_"&B1)*ROW(Sheet2!$B$2 :$B$9))-ROW(Sheet2!$B$1),1)

OR...this ARRAY FORMULA
B2:
=INDEX(Sheet2!D2:D9,MATCH(Sheet1!A2&"_"&Sheet1!B1, Sheet2!$B$2:$B$9&"_"&Sheet2!$C$2:$C$9,0),1)

Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"MIchel Khennafi" wrote:

Good afternoon,

In a worksheet I have five columns.

Zip Code II Zip Code I OT Carrier Transit Date
64429 50010 1 DHRN 1 11/15/2006
64429 50010 8 DHRN 1 11/15/2006
64429 50010 7 DHRN 1 11/15/2006
64429 50010 2 DHRN 1 11/15/2006
64429 50010 4 DHRN 1 11/15/2006
64429 50014 1 DHRN 1 11/15/2006
64429 50014 8 DHRN 1 11/15/2006
64429 50014 7 DHRN 1 11/15/2006


I would like to create a second worksheet to use as a cross table of the
data in the first worksheet. I would like to have the carrier name put at
the intersection of the column (OT) and the row Zip Code I.

So if in the new table I have:
- A2 = 50010
- B1 = 1
- Then b2= DHRN

What would be the formula that would take the data from an organized list
and create a cross table. I tried Match / Index but I do not get the result.

Thanks




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Lookup

Another option....using DGET()

With
Your posted table on Sheet2, cells A1:F9

Then...on Sheet1
A1: Zip Code I
A2: (Zip Code I value)
B1: OT
B2: (an OT value)

C1: Carrier
C2: =DGET(Sheet2!$A$1:$F$9,"CARRIER",A1:B2)

Example of Results:
Zip Code I OT Carrier
50010 2 DHRN

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

XL2002, WinXP


"MIchel Khennafi" wrote:

Good afternoon,

In a worksheet I have five columns.

Zip Code II Zip Code I OT Carrier Transit Date
64429 50010 1 DHRN 1 11/15/2006
64429 50010 8 DHRN 1 11/15/2006
64429 50010 7 DHRN 1 11/15/2006
64429 50010 2 DHRN 1 11/15/2006
64429 50010 4 DHRN 1 11/15/2006
64429 50014 1 DHRN 1 11/15/2006
64429 50014 8 DHRN 1 11/15/2006
64429 50014 7 DHRN 1 11/15/2006


I would like to create a second worksheet to use as a cross table of the
data in the first worksheet. I would like to have the carrier name put at
the intersection of the column (OT) and the row Zip Code I.

So if in the new table I have:
- A2 = 50010
- B1 = 1
- Then b2= DHRN

What would be the formula that would take the data from an organized list
and create a cross table. I tried Match / Index but I do not get the result.

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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 02:14 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"