Need help with creating a complex formula -

crazy_papaya

New Member
Joined
Feb 10, 2020
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Hello all,

I have started to give up and can use some help from the experts. This is just the first part of the problem. So here is what I am trying to achieve -

VENDOR NAMEPRODUCT123456789101112FREQUENCY (f)FORECAST
Vendor1P124183635307952433730793112?

First I calculated the frequency of the times that we had an entry which was >= 1 in Months (1-12). I used COUNTIF for that and it worked fine. Now, I have a three part criteria that needs to be set in order to create a forecast for the item. Below is the three part criteria -

If f<=1 then forecast = 0
If f>=2 and f<6 then forecast formula is MAX number out of 12 months
If f>=6 then forecast formula is AVERAGE is average of 12 months

I am just wondering if it will be possible to put all of the criterias into one column. Any thoughts or suggestions?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Maybe:
Book1
ABCDEFGHIJKLMNOP
1VENDOR NAMEPRODUCT123456789101112FREQUENCY (f)FORECAST
2Vendor1P12418363530795243373079311241.167
Sheet1
Cell Formulas
RangeFormula
P2P2=IF(O2<=1,0,IF(O2<6,MAX(C2:N2),AVERAGE(C2:N2)))
 
Upvote 0
Hi AhoyNC,

I got a chance to work carefully with the formula you help create and just want to say thank you, you really simplified it. I feel stupid but I am very grateful to you :)
 
Upvote 0
You're very welcome. No need to feel stupid, Excel can be very frustrating at times.
 
Upvote 0

Forum statistics

Threads
1,214,560
Messages
6,120,217
Members
448,951
Latest member
jennlynn

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