Combining the SLOPE function with IF function (for filtered slope)

Robin92

New Member
Joined
Jan 27, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I am trying to use the slope function to calculate the slope for a range of measurement data (example in table below). While using the Slope function and selecting data by hand everything works perfectly. However, I have to analyse many of these datasets and i don't know exactly which measurement value the upper and lower limit is for the slope. Therefore I would like to connect an IF function that is connected to two cells in which i specify the upper and lower limit (for example 0.5 and 0.3).

I have tried the following :

Excel Formula:
=SLOPE(IF(AP4:AP243<BC47,AP4:AP243),IF(AP4:AP243<BC47,AO4:AO243))

Here AP contains the measured parameter and AO contains the Temperature. This function returns #value. Would anyone know how to tackle this problem?


Temperaturemeasured parameter
48.8​
0.577999​
48.9​
0.56894​
49​
0.557452​
49.1​
0.53973​
49.2​
0.517899​
49.2​
0.498636​
49.3​
0.48388​
49.4​
0.464687​
49.5​
0.441245​
49.6​
0.413483​
49.7​
0.383434​
49.7​
0.355835​
49.8​
0.327443​
49.9​
0.297744​
50​
0.263981​
50.1​
0.231059​
 
Last edited by a moderator:

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I managed using the following equation:
Excel Formula:
=SLOPE(IF(G4:G244<$BE$71, IF(G4:G244>$BE$72, D4:D244)),IF(G4:G244<$BE$71, IF(G4:G244>$BE$72, G4:G244)))
 
Last edited by a moderator:
Upvote 0
Solution

Forum statistics

Threads
1,216,087
Messages
6,128,740
Members
449,466
Latest member
Peter Juhnke

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