Using LINEST function with conditions

WhichQuestions

New Member
Joined
Mar 24, 2014
Messages
2
[h=2]Using LINEST function with conditions[/h]
How would I apply conditions to data that crosses thresholds. I want to include only the cells that have satisfied condition of n>30 threshold in the LINEST formula. So after each "data sample refresh" I may have to expand or decrease the range used in the LINEST function.

Ideally, I would have one array selected for the LINEST and I would not have to manually increase/decrease the cells used for the function as my column thresholds are crossed.

n = No of vehicles (if n>=30 then the repair $ amount is displayed)
Top row = mileage band
Repair = costs to repair in that mileage band

LINEST Example: Repair
=LINEST(C7:H7,$C$2:$H$2^{1;2},,TRUE)

<tbody>
</tbody>


50000100000150000200000250000300000350000400000
50k50-100k100-150k150-200k200-250k250-300k300-350k350-400k
Repair$1,198.54$1,054.26$1,352.07$1,767.28$1,271.92$1,722.23TOO FEWTOO FEW

<tbody>
</tbody>

 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,215,125
Messages
6,123,193
Members
449,090
Latest member
bes000

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