In Column A, starting A1 :
L1
L1
L6
L6
L1
L6
I want : in B1:C1 to have L6 L1 (C1=L1, B1=L6)
In Column A, starting A1 :
L1
L1
L6
L6
L1
L6
I want : in B1:C1 to have L6 L1 (C1=L1, B1=L6)
What's the logic here? Why should L6 come before L1?
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
That is how I need it !
Or maybe more simple :
In Column A, B
A B
X L1
X L6
Y L1
Y L8
Z L2
Z L6
If C1=X then D1=L6, E1=L1
This doesn't answer my question. Why should L6 come before L1? In the original list L1 is before L6.
That is how I need it, from Right to Left !
OK - that makes sense now that you have said "from right to left" - this was the crucial bit of information you failed to give before.
A B C D E 1 X L1 X L6 L1 2 X L6 3 Y L1 4 Y L8 5 Z L2 6 Z L6
A B C D E 1 X L1 Y L8 L1 2 X L6 3 Y L1 4 Y L8 5 Z L2 6 Z L6
A B C D E 1 X L1 X =IFERROR(INDEX($B$1:$B$6,AGGREGATE(14,6,IF($A$1:$A$6=$C$1,ROW($A$1:$A$6),""),COLUMN()-3)),"") =IFERROR(INDEX($B$1:$B$6,AGGREGATE(14,6,IF($A$1:$A$6=$C$1,ROW($A$1:$A$6),""),COLUMN()-3)),"") 2 X L6 3 Y L1 4 Y L8 5 Z L2 6 Z L6
Sheet: Sheet1
into D1:
is array formula so have to be accept with Ctrl+Shift+Enter not just Enter.Please Login or Register to view this content.
Then drag it right as needed.
Last edited by KOKOSEK; 10-28-2019 at 01:14 PM.
Happy with my answer * Add Reputation.
If You are happy with solution, please use Thread tools and mark thread as SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks