Genius Required!!!

JEB85

Board Regular
Joined
Aug 13, 2010
Messages
238
Hi Guys,

- I receive a monthly extract that details all of our contract data for that period
- Each month I upload this data into Powerpivot (copy and paste to append rows)
- I would like to be able to summarise the monthly movement in contracts (see desired result)
- If the contract existed this month and last month then it's a 'Continued' contract
- If the contract exists this month but didn't last month then it's a 'New' contract
- If the contract existed last month but doesn't this month then it's a 'Lost' contract
- One contract can be spread across multiple regions so I'd like to be able to slice by region

Example of Data Set:

ContractRegionMonth
A1Jan-12
A2Jan-12
B1Jan-12
C3Jan-12
C4Jan-12
C5Jan-12
C6Jan-12
D1Jan-12
D5Jan-12
D6Jan-12
B1Feb-12
C3Feb-12
C6Feb-12
D1Feb-12
D5Feb-12
D6Feb-12
E1Feb-12
F1Feb-12
D1Mar-12
D5Mar-12
D6Mar-12
E1Mar-12
F1Mar-12
H1Mar-12
H5Mar-12
H6Mar-12
I3Mar-12
J1Mar-12
J5Mar-12
K2Mar-12
K4Mar-12
L6Mar-12

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>

This shows which contracts exist in each month:

Region1
Month
ContractJan-12Feb-12Mar-12
A1
B11
D111
E11
F11
H1
J1
Grand Total345

This shows the status of each contract:

Region1
Jan-12Feb-12Mar-12
ANewLost
BNewContinuedLost
DNewContinuedContinued
ENewContinued
FNewContinued
HNew
JNew
Desired Result:
Region1
Jan-12Feb-12Mar-12
Opening-34
New322
Lost011
Closing345

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>

<tbody>
</tbody>


The desired result above shows how I'd like the powerpivot to look. I have no idea how to get it to that stage though.

Anyone any ideas?

Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If you need only desired result table, then countif formula would help you:

=COUNTIF(A1:A5,"NEW")

for example if there are 3 instances of "NEW" in range A1:A5, then the result of the formula would be 3

likewise for lost =COUNTIF(A1:A5,"LOST")

As I understand from your example, "CONTINUED" does not have any impact on the calculation.

Let me know if this is what you need.

Regards,
Swaran
 
Upvote 0
Javier - thank you very much, that looks to be exactly what I'm after! I will try it out at work tomorrow and let you know!

Swaran - thanks but my data set is huge and continuing to grow so definitely need a powerpivot solution.
 
Upvote 0

Forum statistics

Threads
1,214,912
Messages
6,122,204
Members
449,072
Latest member
DW Draft

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