Dynamic List Based on 'X' Marks in Table

jimmycooker

New Member
Joined
Mar 5, 2019
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi,

Can someone help me with a formula to get this subset of letters:

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

Create Dynamic List of letters 'A to F' based on cell reference '5'

Result required (based on 'X' marks):

A
C
D
E
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Ignore the last email, the table didn't come out properly.

Can someone help me with a formula to get this subset of letters:

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

Create Dynamic List of letters 'A to F' based on cell reference '5'

Result required (based on 'X' marks):

A
C
D
 
Upvote 0
Hi,

Can someone help me with a formula to get this subset of letters:

--1 2 3 4 5 6 7
A x x x x x
B x x x x
C x x x x
D x x x x x
E x x x x
F x x x x

Create Dynamic List of letters 'A to F' based on cell reference '5'

Result required (based on 'X' marks):

A
D

or

Create Dynamic List of letters 'A to F' based on cell reference '1'

Result required (based on 'X' marks):

A
B
C
D
E
F
 
Upvote 0
Hi & welcome to MrExcel
How about


Excel 2013/2016
ABCDEFGHIJ
112345675
2AXXXXA
3BXXXXC
4CXXXXD
5DXXX
6EXXXX
7FXXX
Appendix
Cell Formulas
RangeFormula
J2=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,ROW($A$2:$A$7)-ROW($A$2)+1/(($B$1:$H$1=$J$1)*($B$2:$H$7="X")),ROWS($1:1))),"")
 
Upvote 0
Could you adapt it so instead of cells containing on 'X' to cells containing the letter X + other info e.g. X (2)
 
Upvote 0
How about
=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,ROW($A$2:$A$7)-ROW($A$2)+1/(($B$1:$H$1=$J$1)*($B$2:$H$7<>"")),ROWS($1:1))),"")

This will return a value if the cell is not blank
 
Upvote 0
How about
=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,ROW($A$2:$A$7)-ROW($A$2)+1/(($B$1:$H$1=$J$1)*($B$2:$H$7<>"")),ROWS($1:1))),"")

This will return a value if the cell is not blank

Hi, thanks for the update above........it didn't work unfortunately because the table i'm checking is full of formulas (i think).....

Would it be possible to add 'and' or 'or' checking to this formula instead?

=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,ROW($A$2:$A$7)-ROW($A$2)+1/(($B$1:$H$1=$J$1)*($B$2:$H$7<>"")and / or if ($B$2:$H$7="X(2)")),ROWS($1:1))),"")

Thanks!
 
Upvote 0
How about
=IFERROR(INDEX($A$2:$A$7,AGGREGATE(15,6,ROW($A$2:$A$7)-ROW($A$2)+1/(($B$1:$H$1=$J$1)*(LEFT($B$2:$H$7,1)="X")),ROWS($1:1))),"")
This will return anything that starts with X
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

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