slope #N/A in one but not other

beng986

Board Regular
Joined
Jan 10, 2012
Messages
88
I tried using the SLOPE function but got #N/A as my first 4 values in column A equal #N/A. In column B all the values are numbers. So i used

=SLOPE(IF(ISNUMBER(Monthly!$A2:$A37),Monthly!$A2:$A37),IF(ISNUMBER(Monthly!B2:B3),Monthly!B2:B3))

however i am now getting #Value !

the dataset is below:


#N/A2.30242
#N/A-5.9716
#N/A-2.87481
#N/A4.456949
13.607610.216091
-6.96379-1.37079
-3.83234-3.14611
-5.666250.297976
13.201321.474965
3.9506080.780809
3.2935860.235856
-5.277622.498126
10.504943.936338
16.176461.186693
4.4755821.572824
-4.057620.340843
-1.64835-2.01001
14.990694.897094
-9.06882-0.38624
4.4078352.466393
15.52240.925279
11.59099-0.68948
5.9634453.876102
0.063753-2.7672
-2.230011.099896
3.6819820.661862
-4.39975-0.56691
4.9801831.674116
-0.38083-2.03633
1.9433024.66007
-8.06251-1.99345
6.254244-3.77145
-16.3148-2.1961
5.5045845.996406
-4.170352.289903
-0.70204-0.47251

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
This any better?


Excel 2010
ABCDE
1
2#N/A2.302421.380907
3#N/A-5.9716
4#N/A-2.874811.380907
5#N/A4.456949
613.607610.216091
7-6.96379-1.37079
8-3.83234-3.14611
9-5.666250.297976
1013.201321.474965
113.9506080.780809
123.2935860.235856
13-5.277622.498126
1410.504943.936338
1516.176461.186693
164.4755821.572824
17-4.057620.340843
18-1.64835-2.01001
1914.990694.897094
20-9.06882-0.38624
214.4078352.466393
2215.52240.925279
2311.59099-0.68948
245.9634453.876102
250.063753-2.7672
26-2.230011.099896
273.6819820.661862
28-4.39975-0.56691
294.9801831.674116
30-0.38083-2.03633
311.9433024.66007
32-8.06251-1.99345
336.254244-3.77145
34-16.3148-2.1961
355.5045845.996406
36-4.170352.289903
37-0.70204-0.47251
Monthly
Cell Formulas
RangeFormula
E4=SLOPE($A$6:$A$37,$B$6:$B$37)
E2{=SLOPE(IF(ISNUMBER($A$2:$A$37),$A$2:$A$37),IF(ISNUMBER($A$2:$A$37),$B$2:$B$37))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,243
Members
448,555
Latest member
RobertJones1986

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