I am trying to extract and list data from a range if a string is found in an adjacent column. A sample workbook is attached.
Any help much appreciated.
I am trying to extract and list data from a range if a string is found in an adjacent column. A sample workbook is attached.
Any help much appreciated.
In H30, copied across and down :
=IFERROR(INDEX($H$7:$H$25,AGGREGATE(15,6,ROW($H$7:$H$25)-ROW($H$6)/ISNUMBER(FIND(L$29,TEXT($E$7:$E$25,"mm-dd-yy"))),ROWS($1:1))),"")
Regards
Bosco
If Bosco's suggestion is not giving the results thagt you require, then a more detailed explaination of your expected results will be needed.
Bosco's formula will not return the same results as you provided, but it returns those that your explaination implies (with the discrepancies being under the '7' column heading in row 29).
It could be caused by a formatting issue based on regional settings, when I open your sample file, E7 defaults to date format dd/mm/yyyy while the rest of column E retains the appearance of a text format, 0-0-#0.
Thanks, Jason. You are 100% correct - an unfortunate (or careless) selection of sample numbers by me has generated dates in USA but not in Australia!
I've clarified (I hope) the solution sought in the workbook attached.
This looks good with your sample, Bob.
=IF(H29="","",IFERROR(INDEX($H$7:$H$25,SMALL(IF(ISNUMBER(SEARCH("-"&H$29&"-",$E$7:$E$25)),ROW($E$7:$E$25)-ROW($E$7)+1),ROWS(H$30:H30))),""))
Array confirmed with Shift Ctrl Enter.
Or, using Bosco's AGGREGATE method (non-array)
=IF(H29="","",IFERROR(INDEX($H$7:$H$25,AGGREGATE(15,6,ROW($E$7:$E$25)-ROW($E$7)+1/ISNUMBER(SEARCH("-"&H$29&"-",$E$7:$E$25)),ROWS(H$30:H30))),""))
Not sure if there are any advantages or disadvantages with either method.
Try this
Enter in H30 and drag formula across and down
Formula:
Please Login or Register to view this content.
Or this
Formula:
Please Login or Register to view this content.
Both are regular formulas.
Last edited by AlKey; 08-05-2018 at 11:26 AM.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Please can you tell me what part the '15'and '6' play in the formula as in AGGREGATE(15,6?
Thanks
Ah! Something more to learn.
Thanks - worked perfectly
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
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. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks