Formula to Return Cell Addresses Based on Multiple Mapping Criteria

mysites

New Member
Joined
Jul 12, 2017
Messages
7
I need a formula that returns a number of cell addresses/ranges based on multiple mapping criteria.

I have the following mapping dataset whose length may vary from day to day:

ABC
1Member NameMapping 1Mapping 2
2Member1Group1Map1
3Member2Group2Map1
4Member3Group1Map1
5Member4Group2Map1
6Member5Group1Map1
7Member6Group2Map2
8Member7Group1Map2
9Member8Group2Map2
10Member9Group1Map2
11Member10Group2Map2

<tbody>
</tbody>

The member names are not numeric or alphabetical, so I need a formula that returns a series of addresses/ranges that can be used as Criteria inside of a SUMIF/SUMPRODUCT formula that I'll include below for reference. If I were to feed the formula the values "Group1" and "Map2" I'd expect the output to return the addresses A8 and A10.

These values will be passed to a SUMPRODUCT formula like the following:
=SUMPRODUCT(--(ISNUMBER(MATCH(HeaderRow,A8;A10,0))),--(ISNUMBER(MATCH(HeaderColumn,SomeRange,0))),DataRange)

Thanks!


Also it should be noted that the length of the mapping file may be shorter or longer than the length of my "HeaderRow" to which I compare it.
 
Last edited by a moderator:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I learned that the MATCH function can't take multiple addresses as input, so this wouldn't work. I've created a new thread with the new requirements of the formula. This thread can be deleted or closed.
 
Upvote 0

Forum statistics

Threads
1,215,614
Messages
6,125,848
Members
449,266
Latest member
davinroach

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