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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]Customer[/TD]
[TD="align: right"]1/31/2013[/TD]
[TD="align: right"]2/28/2013[/TD]
[TD="align: right"]3/31/2013[/TD]
[TD="align: right"]4/30/2013[/TD]
[TD="align: right"]5/31/2013[/TD]
[TD="align: right"]6/30/2013[/TD]
[TD="align: right"]7/31/2013[/TD]
[TD="align: right"]8/31/2013[/TD]
[TD="align: right"]9/30/2013[/TD]
[TD="align: right"]10/31/2013[/TD]
[TD="align: right"]11/30/2013[/TD]
[TD="align: right"]12/31/2013[/TD]
[TD="align: right"]1/31/2014[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]Q[/TD]
[TD="align: right"]97[/TD]
[TD="align: right"]98[/TD]
[TD="align: right"]41[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]78[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]88[/TD]
[TD="align: right"]94[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]25[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]W[/TD]
[TD="align: right"]66[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]99[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]24[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]95[/TD]

[TD="align: center"]4[/TD]
[TD="align: center"]E[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]77[/TD]
[TD="align: right"]48[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]55[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]98[/TD]

[TD="align: center"]5[/TD]
[TD="align: center"]R[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]14[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"]29[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]58[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]26[/TD]

[TD="align: center"]6[/TD]
[TD="align: center"]T[/TD]
[TD="align: right"]66[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]82[/TD]
[TD="align: right"]44[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]88[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]82[/TD]
[TD="align: right"]4[/TD]

[TD="align: center"]7[/TD]
[TD="align: center"]Y[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]68[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]65[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]93[/TD]

[TD="align: center"]8[/TD]
[TD="align: center"]U[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]43[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]81[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]18[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]12[/TD]
[TD="align: right"]54[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]87[/TD]

[TD="align: center"]9[/TD]
[TD="align: center"]I[/TD]
[TD="align: right"]69[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]59[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]96[/TD]
[TD="align: right"]86[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]86[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]10[/TD]
[TD="align: center"]O[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]85[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"]92[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"]47[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]79[/TD]

[TD="align: center"]11[/TD]
[TD="align: center"]P[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]29[/TD]
[TD="align: right"]37[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]82[/TD]
[TD="align: right"]33[/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]12[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]13[/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]14[/TD]
[TD="align: center"]Q[/TD]
[TD="align: right"]700[/TD]
[TD="align: right"]11/30/2013[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]15[/TD]
[TD="align: center"]W[/TD]
[TD="align: right"]900[/TD]
[TD="align: right"]4/30/2014[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]16[/TD]
[TD="align: center"]E[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]4/30/2013[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet10

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C14[/TH]
[TD="align: left"]{=INDEX($B$1:$BP$1,MATCH(TRUE,MMULT($B2:$BP2,--(TRANSPOSE(COLUMN($B2:$BP2))<=COLUMN($B2:$BP2)))>=B14,0))}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]

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,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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