Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Help with a lookup

Ok, this is driving me mad. I feel I should know the answer but I've
tried various combinations of lookups, indirects, offsets etc and I
just can't figure it out!

I have a list of data:


AAA
Jan 15
Feb 20
Mar 25

BBB
Jan 100
Feb 120
Mar 130

....and this goes on somewhat. I want to set up a new table like so:

Jan Feb Mar
AAA
BBB

....and populate it with the data from the first table. I can of course
do it with lookups but I have to change the range for each line. I
want to use one formula that I can just copy to all cells and it will
give the appropriate value. How???
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Help with a lookup

One try ..

Assume source data in Sheet1, cols A and B, from row1 down

In Sheet2,

you have this set-up:

Jan Feb Mar
AAA
BBB


where the AAA, BBB, etc are listed in A2 down

Put in B2:
=OFFSET(Sheet1!$A$1,MATCH($A2,Sheet1!$A:$A,0)+COLU MNS($A:A)-1,1)
Copy B2 across and fill down to populate
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"ajnmx" wrote in message
...
Ok, this is driving me mad. I feel I should know the answer but I've
tried various combinations of lookups, indirects, offsets etc and I
just can't figure it out!

I have a list of data:


AAA
Jan 15
Feb 20
Mar 25

BBB
Jan 100
Feb 120
Mar 130

...and this goes on somewhat. I want to set up a new table like so:

Jan Feb Mar
AAA
BBB

...and populate it with the data from the first table. I can of course
do it with lookups but I have to change the range for each line. I
want to use one formula that I can just copy to all cells and it will
give the appropriate value. How???



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Help with a lookup

Or try Pivot Table.
Move AAA and BBB above your numbers, like this:
AAA
Jan 15
Feb 20
Mar 25

BBB
Jan 100
Feb 120
Mar 130

Data Pivot Table Multiple consolidation ranges
Ranges: Enter A1:B4 , A6:B6 and so on
Layout: Drag Row into COLUMN and Column into ROW
DATA is Sum of Value
Options: Uncheck Grand Totals and AutoFormat
The result will look like this:

Column Jan Feb Mar
AAA 15 20 25
BBB 100 120 130
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
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Variable Lookup/Double Lookup Ryan[_2_] Excel Worksheet Functions 8 May 14th 07 09:44 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


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