Hi, I have 1 list in column A and need to split out the individual entries and populate another list - i have included a file to show the example, any help will be gladly received.
Thanks,
D
Hi, I have 1 list in column A and need to split out the individual entries and populate another list - i have included a file to show the example, any help will be gladly received.
Thanks,
D
How realistic is your sample?
This array formula works... but doesn't like Fruit 10. If the others had been Fruit 04, Fruit 06, etc, it would have been fine...
=IFERROR(INDEX($A$2:$A$25, MATCH(SMALL(IF((COUNTIF(C$1:C1,$A$2:$A$25)=0)*(LEFT($A$2:$A$25,SEARCH(" ",$A$2:$A$25)-1)=C$1), COUNTIF($A$2:$A$25, "<"&$A$2:$A$25), ""), 1), COUNTIF($A$2:$A$25, "<"&$A$2:$A$25), 0)),"")
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
We might need to see a better (more representative) sample.
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
One approach
Formula:
Please Login or Register to view this content.
note: given sample Fruit 10 will be listed first given A-Z
at C2 array formula (CSE)
=IFERROR(INDEX($A$1:$A$25,SMALL(IF(LEFT($A$1:$A$25,LEN(C$1))=C$1,ROW($A$1:$A$25)),ROW($A1))),"")
drag cross and down
Unfortunately, the above does not account for requirement to re-order A-Z --- it will simply return values as found (first row to last).
@GlennKennedy has provided an Array approach which does address the above requirement, and I have provided an alternative non-array equivalent (leveraging AGGREGATE).
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks