Help Returning a Cell Range Address using Mapping Criteria

mysites

New Member
Joined
Jul 12, 2017
Messages
7
I need help with a formula that returns a range of cells starting with the first cell that matches a set of criteria to the last cell that matches that criteria. My list is sorted so that cells are grouped by criteria.

A
B
C
1
Member Name
Criteria1
Criteria2
2
Member1
Group1
Map1
3
Member2
Group1
Map1
4
Member3
Group1
Map1
5
Member4
Group1
Map2
6
Member5
Group1
Map2
7
Member6
Group2
Map1
8
Member7
Group2
Map2

<tbody>
</tbody>

The formula must take the two criteria as input and return a cell range that can be used in another formula. So if I submitted the values "Group1" and "Map1", the formula would return the value A2:A4. Any help would be appreciated. Thanks!
 

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.
Assuming it is sorted this returns what you ask for:

=ADDRESS(MATCH(1,INDEX(($B$1:$B$8="Group1")*($C$1:$C$8="Map1"),0),0)+ROW($B$1)-1,1,4)&":"&ADDRESS(LOOKUP(2,1/(($B$1:$B$8="Group1")*($C$1:$C$8="Map1")),ROW($B$1:$B$8)),1,4)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

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