Macro to allocate line item data

vettetax

New Member
My 'Data sheet' contains a combination of values on each row. Certain rows require special allocations, the combination of which is referenced on my 'Allocations' sheet. Certain rows are fine and should not be allocated, but merely left in its virgin state and copied over to the 'Revised Data' sheet. The revised allocated data should then be appropriately referenced on the 'Revised Data' sheet.

Appreciate any help and thank you!


Data Sheet
test1Combo1Label1Label2Label3Label4Value
2Cat/Dog/HouseCatDogHouseCombo100<----value needs to be allocated and Label4 value re-labeled
Cat/Dog/BirdCatDogBirdCombo100<----control data, no impact as Combo1 value is not on the Allocations tab

<tbody>
</tbody>

Allocation Sheet
Combo1MerlinHaloMax
Cat/Dog/House25%25%50%

<tbody>
</tbody>

Revised Data sheet
Label1Label2Label3Label4Allocated Value
CatDogHouseMerlin25<----Combo1 value respectively allocated and Label4 value re-labeled
CatDogHouseHalo25<----Combo1 value respectively allocated and Label4 value re-labeled
CatDogHouseMax50<----Combo1 value respectively allocated and Label4 value re-labeled
CatDogBirdCombo100<----control data, no impact as Combo1 value is not on the Allocations tab

<tbody>
</tbody>
 
Last edited:

=ODIN=

Active Member
If you were to unpivot your allocation sheet, you could setup a sql left join of your data and allocation sheets using MS Query in excel. Then with a simple formula in the resulting table, your could manage your allocation.

This page explains how it can be accomplished. It uses an addin to simplify the ms query sql left join stuff, but the premise is there.
http://www.iwishexcel.com/authors-favorites/2table-left-join/
 

Some videos you may like

This Week's Hot Topics

Top