I wonder if anyone could give me a formula to look up the range in C and return the data in B to N & O as attached please. :-) T.I.A.
I am missing something here?
I wonder if anyone could give me a formula to look up the range in C and return the data in B to N & O as attached please. :-) T.I.A.
I am missing something here?
Last edited by And180y; 11-27-2021 at 01:50 PM.
Hi
In N1
=TRANSPOSE((UNIQUE(C2:C4,FALSE)))
In N2 copied to O2
=FILTER($B$2:$B$4,$C$2:$C$4=G2)
However this is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.
Therefore upload your real workbook (or at least a cut down copy) so that we can consider a real world question. It strikes me that a Pivot Table may be a better option.
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
with N1="bb", do you want to find "hello" in O1 or N2 ?
Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.
Hi bsalv, thanks for reply so every then with gb would appear in column N and with bb would be in column O.
Posted in error
Last edited by And180y; 11-25-2021 at 10:13 PM.
Richard, thankyou so much it works!! For future reference how would I add for example column A to the formula?
What would be in Column A? Whatever you put in Column A, change the reference in the current formula of where it is to Column A. Maybe I'm misunderstanding your question.
How would you expect the output to look? At the moment you essentially have a 2 dimensional range which you want to transpose with unique items in a column resulting as unique items in a row, and underneath the result columns you list the column B items. IT's not clear how a 3rd column A is to be shown
I need to see the result. Please add and reupload.
Hi Richard,
sorry for delay. Using Filter wont work on my laptop.
I have tried as per the attached sheet to use Vlookup and seperately Index Match
but must be missing something.
In I2
=IFERROR(INDEX($B$2:$B$15,AGGREGATE(15,6,ROW($A$1:$A$100)/($A$2:$A$15=$I$1),ROWS($1:1))),"")
in J2
=IFERROR(INDEX($B$2:$B$15,AGGREGATE(15,6,ROW($A$1:$A$100)/($A$2:$A$15=$j$1),ROWS($1:1))),"")
copy both down
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks