Return a row label for a text value in an array

pbody

New Member
Joined
Feb 23, 2007
Messages
19
So I'm not sure if I'm overthinking this or not, but if I want to a find the row label (could also be a column label) for a unique text value within an array. What would my formula be?

I have attached an hypothetical example to illustrate what I am looking to do.

Your help is appreciated...thanks!

So in this example....I want to be able to find the store that Aaron, Adam, Alyssa, Andy, and Brad visited.

Excel 2013
Row\Col
B
C
D
E
F
G
2
Week 1
Week 2
Week 3
Week 4
Week 5
3
Target
Jeff
Mike
Alyssa
Marissa
Jessica
4
Walmart
June
Elijah
Brian
Curtis
Melissa
5
Sears
John
Adam
Brad
Hank
Jason
6
Kohls
Matt
Andy
Aaron
Jeremy
Kevin
7
Kmart
Toni
Michelle
Lisa
Liz
Holly
8
Macys
Chad
Jennifer
Marie
Nathan
Christy
9
10
Name
Week
Store
11
Aaron​
12
Adam​
13
Alyssa​
14
Andy​
15
Brad​
Sheet: Sheet1
 

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.
Row\Col
A​
B​
C​
D​
E​
F​
2​
Week 1Week 2Week 3Week 4Week 5
3​
TargetJeffMikeAlyssaMarissaJessica
4​
WalmartJuneElijahBrianCurtisMelissa
5​
SearsJohnAdamBradHankJason
6​
KohlsMattAndyAaronJeremyKevin
7​
KmartToniMichelleLisaLizHolly
8​
MacysChadJenniferMarieNathanChristy
9​
10​
NameWeekStore
11​
AaronWeek 3Kohls
12​
AdamWeek 2Sears
13​
AlyssaWeek 3Target
14​
AndyWeek 2Kohls
15​
BradWeek 3Sears

In D11 control+shift+enter, not just enter, and copy down:
Rich (BB code):

=IFERROR(INDEX($B$2:$F$2,1/(1/MIN(IF($B$3:$F$8=$C11,
  COLUMN($B$2:$F$2)-COLUMN($B$2)+1)))),"NA")

In E1 control+shift+enter, not just enter, and copy down:
Rich (BB code):

=IFERROR(INDEX($A$3:$A$8,1/(1/MIN(IF($B$3:$F$8=$C11,
  ROW($B$3:$F$8)-ROW($B$3)+1)))),"NA")
<strike></strike>
 
Upvote 0
No wonder I couldn't get it....wasn't as close as I thought! :confused:

Thanks a ton Aladin....you're a rockstar!
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,861
Members
449,472
Latest member
ebc9

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