Find out which month purchases are 1st forecast

Rhodda

New Member
Joined
Jun 11, 2011
Messages
14
Hi,

I’m trying to work out which month a forecast is first made.

Probably need to explain a bit more. I have a list of purchases along the left, 12 months along the top and then the various cost in the middle followed with a total at the end.

I’m trying to work out which is first month the forecast is made.

I.e. I’m purchasing hardware A costing $1000 in Mar, Jul, Sept. I need a formula which tells me automatically which is the first month of that forecast line. I then know the commitment month for the purchase of hardware A will be made in Mar. (Although I'm forecasting payments in 3 different months, its actually one purchase).

I imagine I’ll have a column next to the totals column which tells me the month of first forecast for each purchase.

Hopefully that makes sense, and can be done in Excel.

Thanks.:)
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Enter as Cont+Shift+Enter, not just enter...
C1 is first Month Header; Row 2 (c2:K2 (this example only thru Sept)) is your 1st dat row

=OFFSET(C1, ,MATCH(FALSE,ISBLANK(C2:K2),0)-1)
 
Upvote 0
<br /><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th><th>I</th><th>J</th><th>K</th><th>L</th><th>M</th><th>N</th><th>O</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: center;;"></td><td style="text-align: center;;">Jan</td><td style="text-align: center;;">Feb</td><td style="text-align: center;;">Mar</td><td style="text-align: center;;">Apr</td><td style="text-align: center;;">May</td><td style="text-align: center;;">Jun</td><td style="text-align: center;;">Jul</td><td style="text-align: center;;">Aug</td><td style="text-align: center;;">Sep</td><td style="text-align: center;;">Oct</td><td style="text-align: center;;">Nov</td><td style="text-align: center;;">Dec</td><td style="text-align: center;;">Total</td><td style="text-align: center;;">1st Month</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: center;;">Hardware A</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;">$1,000.00</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;">$1,000.00</td><td style="text-align: center;;"></td><td style="text-align: center;;">$1,000.00</td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;"></td><td style="text-align: center;;">$3,000.00</td><td style="text-align: center;background-color: #FFFF99;;">Mar</td></tr></tbody></table><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">O2</th><td style="text-align:left">{=IF(<font color="Blue">COUNT(<font color="Red">B2:M2</font>)=0,"",INDEX(<font color="Red">$B$1:$M$1,1,MATCH(<font color="Green">TRUE,B2:M2>0,0</font>)</font>)</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.
<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />
 
Upvote 0
Hi,

Edit:
Beaten to it, but here's my attempt anyway....

Excel Workbook
ABCDEFGHIJKLMNO
1*JanFebMarAprMayJunJulAugSepOctNovDecTotalFirst Month
2Product1*1,000**********1,000Feb
3Product2***1,000********1,000Apr
4Product3**1,000*********1,000Mar
5Product4*****1,000******1,000Jun
6Product5*500**********500Feb
7Product6***500********500Apr
8Product7****1,000*******1,000May
9Product8*1,000**********1,000Feb
Sheet2


The formulas in N2 & O2 need to be copied down.

Ak
 
Upvote 0
Thanks guys, very helpful.

One last thing I need to do is take 2 months off that initial month. I.e. the order will be made on average 2 months before the first forecast date. Could you help me expand the formula to take this into account?
 
Upvote 0
Do you have actual dates in row 1 (the forecast dates)?

If not, and the 1st forecast is in say Jan, then 2 months previous would be Nov. Do you want to return Nov 2010 to distinguished it from Nov of this year?
 
Upvote 0
The months along the top currently use mmm-yy. So if first forecast was Jan-11, I'd hope to track that the order would have been made in in Nov-10.

Thanks.
 
Upvote 0
Hi,

does this work for you?...


Excel Workbook
ABCDEFGHIJKLMNOP
1*Jan-11Feb-11Mar-11Apr-11May-11Jun-11Jul-11Aug-11Sep-11Oct-11Nov-11Dec-11TotalForecast DateOrder Date
2Product1*1,000**********1,000Feb-11Nov-10
3Product2***1,000********1,000Apr-11Jan-11
4Product3**1,000*********1,000Mar-11Dec-10
5Product4*****1,000******1,000Jun-11Mar-11
6Product5*500**********500Feb-11Nov-10
7Product6***500********500Apr-11Jan-11
8Product7****1,000*******1,000May-11Mar-11
9Product8*1,000**********1,000Feb-11Nov-10
Sheet2



Ak
 
Upvote 0
Fantastic, thats what I've been after.

Should I want just one output for the order date, is there a way to combine the two?
 
Upvote 0
If you're not concerned about the day of month (only mmm-yy) a simple method would be to use the EOMONTH function. It returns the date that is last day of the month for a given date. But it also can offset from a given date n months.

O2
{=IF(COUNT(B2:M2)=0,"",EOMONTH(INDEX($B$1:$M$1,1,MATCH(TRUE,B2:M2>0,0)),-2))}

The above returns the last day of the month. Below returns 1st day of the month.

O2
{=IF(COUNT(B2:M2)=0,"",EOMONTH(INDEX($B$1:$M$1,1,MATCH(TRUE,B2:M2>0,0)),-3)+1)}
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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