Selecting range in a column between two values

nekmat97

New Member
Joined
Jan 15, 2018
Messages
8
Hello all,

I have a spreadsheet that has values that go up by intervals of 10 that extends from 500 to 1500; however each value occurs more than once (so the value 500 might occur 150 times, and 510 might occur 285 times etc). This data is in Column A. In cell B1, I have a value (e.g. 886). I want to be able to select the points before and after that interval. So it select all cells that are contain 880 and 890 and copies them to cell C1. Also if the cell in B1 changes, the range that is selected also changes to select the appropriate range of cells.

Any help would be greatly appreciated!

Thanks!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Thank you! I wasn't allowed to edit this for 10 minutes. I'll add it on the main post when allowed.
 
Upvote 0

Forum statistics

Threads
1,214,647
Messages
6,120,722
Members
448,987
Latest member
marion_davis

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