Combining data into a different format on a new tab

Hannah24

New Member
Joined
Jan 11, 2019
Messages
8
Hi,

I have some data which is not in a format which is useful for what I need it for

I do not want to manipulate the 'Raw' data in anyway, a I need to keep an audit trail. I do not wish to use a pivot table function, as I need to be able to drop new data into the 'Raw' data tab and an update to occur automatically.

=IFERROR(VALUE('Raw Data'!$D4:$L4,MATCH(INDEX('Raw Data'!$D$1:$L$1,MATCH(D$1,'Ra Data'!$D4:$L4,0))+1,'Raw Data'!$D$1:$L$1,0))),0)

I have been using the formula below to achieve the results I am after however, I am not happy with it, as it relies on the data being in the exact same order when new data is dropped into the 'Raw' data tab and this is not always the case. It also relies on the same number of data lines being present, when new data is dropped in and this is also not always the case.

I need a formula which has the same result as the above, but that matches against a column of unique codes and a row of unique codes (like an INDEX MATCH MATCH would). So that if the raw data shifts about. It will still populate the correct data against the correct unique codes in the reference column and row.

I know this may not make much sense, but I hope it makes sense to someone, who may be able to advise on a better formula to use.

TIA

Hannah
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]2
[/TD]
[TD]3
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD]6
[/TD]
[TD]7
[/TD]
[TD]8
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]NINO
[/TD]
[TD]Lifestyle/Lifetime/Self Select
[/TD]
[TD]Lifestyle/Lifetime Name
[/TD]
[TD]Fund 1 Name/Code
[/TD]
[TD]Fund 1 Units
[/TD]
[TD]Fund 1 Value
[/TD]
[TD]Fund 2 Name/Code
[/TD]
[TD]Fund 2 Units
[/TD]
[TD]Fund 2 Value
[/TD]
[TD]Fund 3 Name/Code
[/TD]
[TD]Fund 3 Units
[/TD]
[TD]Fund 3 Values
[/TD]
[/TR]
[TR]
[TD]TN123456A
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]Apples
[/TD]
[TD]1834.31
[/TD]
[TD]5568.97
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]40265.34835
[/TD]
[TD]95469.14
[/TD]
[/TR]
[TR]
[TD]TN123456B
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]94.956
[/TD]
[TD]225.14
[/TD]
[/TR]
[TR]
[TD]TN123456C
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]5805.48854
[/TD]
[TD]13764.81
[/TD]
[/TR]
[TR]
[TD]TN123456D
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]17611.08873
[/TD]
[TD]41755.89
[/TD]
[/TR]
[TR]
[TD]TN123456E
[/TD]
[TD]Self Select
[/TD]
[TD][/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]3221.381153
[/TD]
[TD]7637.9
[/TD]
[/TR]
[TR]
[TD]TN123456F
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]8917.814736
[/TD]
[TD]21144.14
[/TD]
[/TR]
[TR]
[TD]TN123456G
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]466.033
[/TD]
[TD]1104.96
[/TD]
[/TR]
[TR]
[TD]TN123456H
[/TD]
[TD]Self Select
[/TD]
[TD][/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]4855.697
[/TD]
[TD]11512.86
[/TD]
[/TR]
[TR]
[TD]TN123456I
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]8440.7797
[/TD]
[TD]20013.09
[/TD]
[/TR]
[TR]
[TD]TN123456J
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]Oranges
[/TD]
[TD]764.342
[/TD]
[TD]1812.26
[/TD]
[/TR]
[TR]
[TD]TN123456K
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]Apples
[/TD]
[TD]10269.3032
[/TD]
[TD]31177.61
[/TD]
[TD]Pears
[/TD]
[TD]1901.943
[/TD]
[TD]9726.54
[/TD]
[TD][/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[/TR]
</tbody>[/TABLE]

Above I my 'Raw' Data.
 
Upvote 0
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NINO
[/TD]
[TD]Lifestyle/Lifetime/Self Select
[/TD]
[TD]Lifestyle/Lifetime Name
[/TD]
[TD]Apple
[/TD]
[TD]Pears
[/TD]
[TD]Oranges
[/TD]
[/TR]
[TR]
[TD]TN123456A
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]1834.31
[/TD]
[TD]0
[/TD]
[TD]40265.34835
[/TD]
[/TR]
[TR]
[TD]TN123456B
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]94.956
[/TD]
[/TR]
[TR]
[TD]TN123456C
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]5805.48854
[/TD]
[/TR]
[TR]
[TD]TN123456D
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]1711.08873
[/TD]
[/TR]
[TR]
[TD]TN123456E
[/TD]
[TD]Self Select
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]3221.381153
[/TD]
[/TR]
[TR]
[TD]TN123456F
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]8917.814736
[/TD]
[/TR]
[TR]
[TD]TN123456G
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]466.033
[/TD]
[/TR]
[TR]
[TD]TN123456H
[/TD]
[TD]Self Select
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]4855.697
[/TD]
[/TR]
[TR]
[TD]TN123456I
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]8440.7797
[/TD]
[/TR]
[TR]
[TD]TN123456J
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]0
[/TD]
[TD]0
[/TD]
[TD]764.7797
[/TD]
[/TR]
[TR]
[TD]TN123456K
[/TD]
[TD]Lifestyle
[/TD]
[TD]IP 1234
[/TD]
[TD]10269.3032
[/TD]
[TD]1901.943
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I want the end result to look like the above.

Any help would be greatly appreciated.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top