Linear Forecasting with criteria

Dr Shrimp

New Member
Joined
Mar 29, 2018
Messages
1
Hi everyone,

First time posting here, so sorry if the explanation/format of my question is unclear.

I'm trying to use the FORECAST.LINEAR function to come up with a very basic forecast for a product based off its Week 1 Sales. The sheet is set up as follows:


[TABLE="width: 500"]
<tbody>[TR]
[TD]Product Name[/TD]
[TD]Sales period (in Days)[/TD]
[TD]Week 1 Sales[/TD]
[TD]Final/Total Sales
[/TD]
[TD]Sales Forecast[/TD]
[/TR]
[TR]
[TD]Product 1[/TD]
[TD="align: center"]56[/TD]
[TD]8200[/TD]
[TD]240000[/TD]
[TD]244000[/TD]
[/TR]
[TR]
[TD]Product 2[/TD]
[TD="align: center"]49[/TD]
[TD]7100[/TD]
[TD]180000[/TD]
[TD]189000[/TD]
[/TR]
[TR]
[TD]Product 3[/TD]
[TD="align: center"]49[/TD]
[TD]5500[/TD]
[TD]166000[/TD]
[TD]165000[/TD]
[/TR]
[TR]
[TD]Product 4[/TD]
[TD="align: center"]49[/TD]
[TD]4500[/TD]
[TD]150000[/TD]
[TD]144000[/TD]
[/TR]
[TR]
[TD]Product 5[/TD]
[TD="align: center"]56[/TD]
[TD]4700[/TD]
[TD]183000[/TD]
[TD]180000[/TD]
[/TR]
[TR]
[TD]Product 6[/TD]
[TD="align: center"]49[/TD]
[TD]5000[/TD]
[TD]175000[/TD]
[TD]174000[/TD]
[/TR]
[TR]
[TD]Product 7[/TD]
[TD="align: center"]49[/TD]
[TD]4000[/TD]
[TD][/TD]
[TD]??????[/TD]
[/TR]
</tbody>[/TABLE]

For "Product 7" the Week 1 forecast formula (cell E7) is =FORECAST.LINEAR(C8,D2:D7,C2:C7). How would I modify this so that the forecast only takes into account products that were on-sale for the same period of time? (49 days in this case for Product 7)

I tried using an IF array formula that compares each product's sales period, but the end result still seems to include the two products that were on-sale for 56 days. I'm sure there is a very simple solution, I'm just not very familiar with the Forecast.linear function.

Any help would be appreciated!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Welcome to the Board

The example below shows the idea:

Ej3izqr.jpg
 
Upvote 0
If there is room for 2 helper columns you could do as follows
Excel Workbook
ABCDEFGH
1Product NameSales period (in Days)Week 1 SalesFinal/Total SalesSales ForecastFiltered week 1 salesFiltered Final/Total Sales
2Product 1568.200240.000244.000--
3Product 2497.100180.000189.0007.100180.000
4Product 3495.500166.000165.0005.500166.000
5Product 4494.500150.000144.0004.500150.000
6Product 5564.700183.000180.000--
7Product 6495.000175.000174.0005.000175.000
8Product 7494.000120.865
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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