find addresses of multiple rows in a range

blue333

Board Regular
Joined
Mar 19, 2009
Messages
64
Hi

I am writing a macro which needs to find the references of certain rows where the column contains a formula to determine if that row should be selected or not. If the row is to be selected then the formula displays 'yes' and displays 'no' if it should not be selected. I do can this if the data set is small. However, my data set is huge so using the conventional approach (ie, loop through all rows to find the ones that should be selected) fails. Excel 2007 running on Vista Core 2 Duo with 3GB RAM crashed with a 'small' data set of 80,000 rows by 5 columns.

Using a countif(range, "yes") yields 329 so there are only 329 (out of 80,000) rows I need addresses for. All the functions that find items only return single, not multiple, occurances of a target. If I can get those Excel formulas to return all occurances then I have what I need...but I don't know how to do that.

Does anyone have any suggestions to implement (either functions or macro) what I am looking for that works with huge data sets?

Thanks in advance for your help!!!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,202,967
Messages
6,052,850
Members
444,603
Latest member
dustinjmangum

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