Transform excel data from Format 1 to Format 2

karangarg05

New Member
Joined
Nov 26, 2013
Messages
1
Hi

I am working on this problem in excel. Any recommendations will be appreciated

I want to transform data from Format 1 to Format 2 in attached sheet.

Format 1

Column A: Customer Group is at 2 levels CBP and Target. One CBP can have multiple targets. One target can fall in only one CBP

Column B: Products are at one level only

Column E,F,G: Rates are divided into 3 groups - Rate Group 1, 2 and 3

Rates vary by a combination of customer group, product, date range and rate groups

1ABCDEFG
2Customer GroupProductValid FromValid ThroughRate Group 1Rate Group 2Rate Group 3
3CBP 1Product 11/1/20134/30/2013$1.00$0.30$0.50
4CBP 1Product 15/1/201312/31/2013$1.50$0.40$0.20
5CBP 2Product 21/1/201312/31/2013$2.00$0.50$0.25
6Target 1Product 35/1/201312/31/2013$2.50$0.60$0.10
7Target 2Product 41/1/201312/31/2013$3.00$0.70$0.75
8Target 3Product 55/1/201312/31/2013$3.50$0.80$1.25

<tbody>
</tbody>
Format 2

There is a unique rate for every combination of Target, Product, Valid From, Valid Thru and Rate Group

If in Format 1 customer group is CBP then rate applies to all targets within that CBP in Format 2

1ABCDEFG
2Customer Group 1Customer Group 2ProductRateValid FromValid ThroughRate Group
3CBP 1Target 1Product 1$1.001/1/20134/30/2013Rate Group 1
4CBP 1Target 1Product 1$0.301/1/20134/30/2013Rate Group 2
5CBP 1Target 1Product 1$0.501/1/20134/30/2013Rate Group 3
6CBP 1Target 1Product 1$1.505/1/201312/31/2013Rate Group 1
7CBP 1Target 1Product 1$0.405/1/201312/31/2013Rate Group 2
8CBP 1Target 1Product 1$0.205/1/201312/31/2013Rate Group 3
9CBP 1Target 2Product 1$1.001/1/20134/30/2013Rate Group 1
10CBP 1Target 2Product 1$0.301/1/20134/30/2013Rate Group 2
11CBP 1Target 2Product 1$0.501/1/20134/30/2013Rate Group 3
12CBP 1Target 2Product 1$1.505/1/201312/31/2013Rate Group 1
13CBP 1Target 2Product 1$0.405/1/201312/31/2013Rate Group 2
14CBP 1Target 2Product 1$0.205/1/201312/31/2013Rate Group 3
15CBP 2Target 3Product 2$2.001/1/201312/31/2013Rate Group 1
16CBP 2Target 3Product 2$0.501/1/201312/31/2013Rate Group 2
17CBP 2Target 3Product 2$0.251/1/201312/31/2013Rate Group 3
18CBP 1Target 1Product 3$2.505/1/201312/31/2013Rate Group 1
19CBP 1Target 1Product 3$0.605/1/201312/31/2013Rate Group 2
20CBP 1Target 1Product 3$0.105/1/201312/31/2013Rate Group 3
21CBP 1Target 2Product 4$3.001/1/201312/31/2013Rate Group 1
22CBP 1Target 2Product 4$0.701/1/201312/31/2013Rate Group 2
23CBP 1Target 2Product 4$0.751/1/201312/31/2013Rate Group 3
24CBP 2Target 3Product 5$3.505/1/201312/31/2013Rate Group 1
25CBP 2Target 3Product 5$0.805/1/201312/31/2013Rate Group 2
26CBP 2Target 3Product 5$1.255/1/201312/31/2013Rate Group 3

<tbody>
</tbody>

Thanks!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,215,443
Messages
6,124,890
Members
449,194
Latest member
JayEggleton

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