Find Value in Table and Return Column Header/Row Header for Each Occurrence

jrussell19

New Member
Joined
May 16, 2013
Messages
7
Hi all,

I'll simplify the table to help, but effectively I need to return the Column Header and Row Header of each occurrence of a specific value in a table. i.e.

Value: A

A B C D E F G
1 X X X X A X X
2 X X A X X X X
3 X X X X X X X
4 X X X X X X A
5 X X X X X X X
6 X X X A X X X
7 X X X X X A X

This needs to return:
Row Header Column Header
1 E
2 C
4 G
6 D
7 F

The initial table does not have a defined amount of rows. Additional rows will be added throughout the year.

I've been pulling my hair out with match,index,offset etc but can't for the life of me work it out! Any help would be absolutely amazing!

Thanks very much.
 
Hi,

I'm facing the same problem as bell0246, but where i work, they still have excel 2007... so the version that doesn't have the function AGGREGATE yet.
I've tried to replace it with SMALL, but keep getting a refference error.

Do you have a sollution for this issue?

FYI: it's about the exact same post as from your last post (2nd of march 2018)

Thanks
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

I'm facing the same problem as bell0246, but where i work, they still have excel 2007... so the version that doesn't have the function AGGREGATE yet.
I've tried to replace it with SMALL, but keep getting a refference error.

Do you have a sollution for this issue?

FYI: it's about the exact same post as from your last post (2nd of march 2018)

Thanks

My bad, not a #REF error, but a #VALUE error is occuring
 
Upvote 0
.. still have excel 2007... so the version that doesn't have the function AGGREGATE yet.
I've tried to replace it with SMALL, but keep getting a refference error.

Do you have a sollution for this issue?

FYI: it's about the exact same post as from your last post (2nd of march 2018)
Welcome to the MrExcel board!

See how this goes.

Excel Workbook
ABCDEFGHIJK
1ABCDEFGValue:A
21XAXXAXXCount9
32XXAAAXA
43XXXXXXX
54XXXXXXA
65XXXXXXX
76XXXAXXX
87XXXXXAX
9
101B
111E
122C
132D
142E
152G
164G
176D
187F
Headers Multiple
 
Upvote 0
Hi,

I tried to use the solution you provided the April 13th post, but I'm cannot seem to get it to work.

I would like to display the column header that contains "A" in a row form.

For example: Value in A10 would be 1, B10 would equal to B, C10 would equal to E
Value in A11 would be 2, B11 would equal to C, C11 would equal to D, D11 would equal to E, E11 would equal to G
Value in A12 would be 4, B12 would equal to G
Value in A13 would be 6, B13 would equal to D
Value in A14 would be 7, B14 would equal to F

Any help will be greatly appreciate.
 
Upvote 0
Hi,

I tried to use the solution you provided the April 13th post, but I'm cannot seem to get it to work.

I would like to display the column header that contains "A" in a row form.
Welcome to the MrExcel board!

See if this would suffice.
K1 houses the value of interest.
L1 houses a zero.
L2 copied down.
A10 copied down
B10 copied across and down.

Excel Workbook
ABCDEFGHIJKL
1ABCDEFGValue:A0
21XAXXAXX1
32XXAAAXA2
43XXXXXXX
54XXXXXXA3
65XXXXXXX
76XXXAXXX4
87XXXXXAX5
9
101BE
112CDEG
124G
136D
147F
15
Headers Multiple
 
Upvote 0
Thank you Peter for the quick response.

B10 works when it's drag across but it doesn't work when it's drag downward.
 
Upvote 0
B10 works when it's drag across but it doesn't work when it's drag downward.
You can see that it has worked for me.

Did you remember to confirm it with Ctrl+Shift+Enter, not just Enter before dragging it anywhere?

Did you modify the formula in any way to suit your circumstances?
 
Upvote 0
Hi Peter,

Yes, I did use Ctrl + Shift + Enter, to ensure it's in an array form.

No, I did not modify the formula. However, the values in column A is not a numeric values. it's alphabetic. But I wouldn't think it would make a difference, would it?

For example: Values in A2:A8 is a,b,c,d,e,f,g instead of 1,2,3,4,5,6,7

Regards,
Becki
 
Upvote 0

Forum statistics

Threads
1,216,272
Messages
6,129,822
Members
449,538
Latest member
cookie2956

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