Create a non-contiguous range

MrPez

Board Regular
Joined
Jan 28, 2010
Messages
128
I am trying to create a range to use linest. My data is not continuous and some entries may be errors/zeros. So I need some way to interrogate the data and only include the actual numbers in the range.

For example, say my potential data is in M33:M42,M47:M52,M56:M60 but only M33,M34,M35,M47,M48 actually contain values. The rest are #DIV/0 or #VALUE! errors due to other data being missing.

Any idea how I can accomplish this?
 
@shg

Impressive that you're remaining faithful to Excel for such higher applications!

Regards
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I'm not clear on using the CloseRows macro. As I read it the data has to be in adjacent columns.

I have years 2001 to 2018 in column A, data in columns B:G and Data in Column H with half the cell blank. I want a linest for year 2020 using Column A and H.
 
Upvote 0

Forum statistics

Threads
1,216,335
Messages
6,130,096
Members
449,557
Latest member
SarahGiles

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