slope formula only for cells that contain value

jebagr

New Member
Joined
Oct 14, 2014
Messages
1
Hi there

I have a huge number of rows with sales data. I want to use the slope formula to determine the trend. However the sales data is full of gaps like this example.

[TABLE="width: 500"]
<tbody>[TR]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]0[/TD]
[TD]2[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]N/A[/TD]
[TD]5[/TD]
[TD]8[/TD]
[TD]1[/TD]
[TD]9[/TD]
[TD]7[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]N/A[/TD]
[TD]8[/TD]
[TD]7[/TD]
[TD]3[/TD]
[TD]8[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8[/TD]
[TD]9[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]N/A[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]6[/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]N/A[/TD]
[/TR]
</tbody>[/TABLE]

Since the data doesn't start and end at the same columns all the time, I was wondering if anybody knows a way to solve this (for example in row 1 I want to use everything, in row 3 I only want to use 8-7-3-8-9, in row 5 I want to use 3-1-6-9-2)

Thanks!
 
Last edited:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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