Creating a template

sauce1979

New Member
Joined
Aug 4, 2011
Messages
9
I am currently trying to create a template for user to fill in. i have data as follows:
Code:
[B]D_AC        D_RU          D_SBU     f00[/B]
501          207         90001      34
502          208         90021      54
501          208         90001      44
501          208         90312      84
501          209         90001      54
501          209         90211      54
501          210         90021      64
501          210         90001      54


[B]D_RU        D_ENT[/B]
207            H_YJ
207            H_EY
207            H_CY
208            H_EY
208            H_EJ
209            H_EZ
209            H_OO
210            H_YY
210            H_TY
207            H_EY

these two sets of data are on 2 different worksheets. The first is called base data, the second entity. There are further worksheets which contain all the data for a given D_RU. Thus there is a worksheet called 207 which holds all the records where the D_RU = 207 and so on so forth.
The value in column f00 is split between entities which are listed in the entity worksheet depending on the RU number. I need to provide a template which will allow a user to enter the split and then add the new split lines to the base data.

For example:

In the 207 worksheet three more columns should be added to the row where the D_RU IS 2O7. The three rows should be HYJ,H_EY, H_CY as they represent the 3 entities associated with 207. A user can then split the value f00 between those columns. There should be a check which will ensure the sum of those entity colum = f00. Wherever there is a data under entity column added this data should be added to the base data work sheet as a new row. This is shown below.


Code:
[B]D_AC        D_RU          D_SBU     f00     H_YJ      H_EY     H_CY[/B]
501          207         90001      34     10           20        4


The base data should then change to:
Code:
[B]D_AC        D_RU          D_SBU     f00   D_ENT[/B]
501          207         90001      10      HYJ
501          207         90001      20      HEY
501          207         90001      4       HCY
502          208         90021      54
501          208         90001      44
501          208         90312      84
501          209         90001      54
501          209         90211      54
501          210         90021      64
501          210         90001      54

or something to that effect.
I am not that familiar with excel so any help would be much appreciated
 
your assumptions are correct.

the reason for having the separate sheets is because that is the format that is requested. A separate sheet for each d_ru is clear for users.
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,603
Messages
6,179,856
Members
452,948
Latest member
UsmanAli786

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