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:


Product NameSales period (in Days)Week 1 SalesFinal/Total Sales
Sales Forecast
Product 1568200240000244000
Product 2497100180000189000
Product 3495500166000165000
Product 4494500150000144000
Product 5564700183000180000
Product 6495000175000174000
Product 7494000??????

<tbody>
</tbody>

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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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,215,222
Messages
6,123,709
Members
449,118
Latest member
MichealRed

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