How can I calculate a percentage of sales, and then output how many months it took to hit that?

IloveExcel12

New Member
Joined
Jul 19, 2018
Messages
4
Hey guys, hopefully someone can help before I get back into work tomorrow...

I have a list of ~10 customers, each of which have a target revenue. For all 10 customers I have sales data going from 2013 to date (by month), along with month-to-date sales data for each month. I need to calculate, based off the target revenue and month-to-date sales, how long it took each customer to hit a certain percentage (10%, 20%, 30%...100%) of their target revenue.

I pretty much need to calculate when then the customer hit the number, and then maybe a count function or something to get how many months it took for each percentage. But there's nothing that would act as a "when" function that I know of.

Example: When "customer x" hit 10% of revenue, count how many months from their start to when they hit it.

With only 10 customers it'd be easy to eyeball, but the plan is to blow it up into a couple hundred.
 

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.
This tells you when a goal was reached, you can change to whatever % and add a datedif() to count months:


Excel 2010
ABCDEFGHIJKLMN
1Customer1/31/20132/28/20133/31/20134/30/20135/31/20136/30/20137/31/20138/31/20139/30/201310/31/201311/30/201312/31/20131/31/2014
2Q97984112197879758894655325
3W6631277399512458577392595
4E57774838393755573727767098
5R5844114952951701258371926
6T663123228244574078813824
7Y758068792015765873281793
8U53614325812018259312542287
9I69525959539686201003957861
10O22273885403346924647533879
11P21193755028293790382331
12
13
14Q70011/30/2013
15W9004/30/2014
16E2004/30/2013
Sheet10
Cell Formulas
RangeFormula
C14{=INDEX($B$1:$BP$1,MATCH(TRUE,MMULT($B2:$BP2,--(TRANSPOSE(COLUMN($B2:$BP2))<=COLUMN($B2:$BP2)))>=B14,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
This tells you when a goal was reached, you can change to whatever % and add a datedif() to count months:

Excel 2010
ABCDEFGHIJKLMN
1Customer1/31/20132/28/20133/31/20134/30/20135/31/20136/30/20137/31/20138/31/20139/30/201310/31/201311/30/201312/31/20131/31/2014
2Q97984112197879758894655325
3W6631277399512458577392595
4E57774838393755573727767098
5R5844114952951701258371926
6T663123228244574078813824
7Y758068792015765873281793
8U53614325812018259312542287
9I69525959539686201003957861
10O22273885403346924647533879
11P21193755028293790382331
12
13
14Q70011/30/2013
15W9004/30/2014
16E2004/30/2013

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet10

Array Formulas
CellFormula
C14{=INDEX($B$1:$BP$1,MATCH(TRUE,MMULT($B2:$BP2,--(TRANSPOSE(COLUMN($B2:$BP2))<=COLUMN($B2:$BP2)))>=B14,0))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

I have no idea what's even going in there lol, I'm going to try and play around with it a bit and see if I can figure it out. Thanks!
 
Upvote 0
Actually you don't need index, the # of months is already given by:

=MATCH(TRUE,MMULT($B2:$BP2,--(TRANSPOSE(COLUMN($B2:$BP2))<=COLUMN($B2:$BP2)))>=B14,0) ctrl-shift-enter

which just searches an array of cumulative sums for the 700, 900, etc.
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,553
Members
449,038
Latest member
Guest1337

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