#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 3
Default table data

Hello

I have three columns of data which I would like to get into a table.

I cant use a pivot table as each column is alpha none are numeric What I am
after is some kind of look up function that would look up both the column
heading in column 1 and row title in column 2 and then return the data in
column 3

Something like below....

Has any body got any ideas?

Thanks

Raw......

Column Row Data

Budget1 Code1 unique1

Budget1 Code2 unique2

Budget1 Code3 unique3

Budget2 Code1 unique4

Budget2 Code2 unique5

Budget2 Code3 unique6

Budget3 Code1 unique7

Budget3 Code2 unique8

Budget3 Code3 unique9


Table......

Budget1 Budget2 Budget3

Code1 unique1 unique4 unique7

Code2 unique2 unique5 unique8

Code3 unique3 unique6 unique9


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default table data

Assumptions:

A2:C10 contains the source/raw data

E2:E4 contains Code1, Code2, and Code 3

F1:H1 contains Budget1, Budget2, and Budget3

Formula:

F2, copied down and acorss:

=INDEX($C$2:$C$10,MATCH(1,IF($A$2:$A$10=F$1,IF($B$ 2:$B$10=$E2,1)),0))

Note that the formula needs to be confirmed with CONTROL+SHIFT+ENTER,
not just ENTER.

Hope this helps!

In article ,
"Joe" wrote:

Hello

I have three columns of data which I would like to get into a table.

I cant use a pivot table as each column is alpha none are numeric What I am
after is some kind of look up function that would look up both the column
heading in column 1 and row title in column 2 and then return the data in
column 3

Something like below....

Has any body got any ideas?

Thanks

Raw......

Column Row Data

Budget1 Code1 unique1

Budget1 Code2 unique2

Budget1 Code3 unique3

Budget2 Code1 unique4

Budget2 Code2 unique5

Budget2 Code3 unique6

Budget3 Code1 unique7

Budget3 Code2 unique8

Budget3 Code3 unique9


Table......

Budget1 Budget2 Budget3

Code1 unique1 unique4 unique7

Code2 unique2 unique5 unique8

Code3 unique3 unique6 unique9

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default table data

You can use Pivot Table, but it requires translating the results.
Create another column (Data3) with unique numbers,
maybe with =--RIGHT(Data2,1), arranged like this:

Column Row Data3 Data2
Budget1 Code1 1 unique1
Budget1 Code2 2 unique2
Budget1 Code3 3 unique3
Budget2 Code1 4 unique4
Budget2 Code2 5 unique5
Budget2 Code3 6 unique6
Budget3 Code1 7 unique7
Budget3 Code2 8 unique8
Budget3 Code3 9 unique9

Create a Pivot Table with the first 3 columns, like this:

Row Budget1 Budget2 Budget3
Code1 1 4 7
Code2 2 5 8
Code3 3 6 9

Name Data3, Data2 with the suggested names.
Name the Pivot Table data field ArrayPT.
Create a table, the same size as the data field (3x3),
with this array formula (use Ctrl+Shift+Enter):
=VLOOKUP(ArrayPT,Data3:Data2,2)
Copy column/row headers so the table looks like this:

Budget1 Budget2 Budget3
Code1 unique1 unique4 unique7
Code2 unique2 unique5 unique8
Code3 unique3 unique6 unique9

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
sorting 2 colums of numbers and incremening them down blk&wht Excel Discussion (Misc queries) 10 October 9th 06 10:12 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Sort pages? David Excel Discussion (Misc queries) 15 May 13th 05 11:33 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
changing proportion of chart and data table Dawn Parks Charts and Charting in Excel 3 January 6th 05 01:18 AM


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