Dear,
I have data set like this
1 pear
3 apple
3 whatever
3 chicken
6 mc
8 fruit
8 meat
outcome Vlookup on 3 should be in one cell: (apple, whatever, chicken)
what kind of formula do I need to use?
Dear,
I have data set like this
1 pear
3 apple
3 whatever
3 chicken
6 mc
8 fruit
8 meat
outcome Vlookup on 3 should be in one cell: (apple, whatever, chicken)
what kind of formula do I need to use?
Row\Col A B 1Data outCome 2pear 3apple apple 4whatever whatever 5chicken chicken 6mc 7fruit 8meat
B2Formula:Please Login or Register to view this content.
If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Thank you,
I have added a document to explain. I would like to have in cel B16 not only "Chicken" but "kip" and "," and "haan" as well.
regards
No excel sample file is attached.
Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
Remember to desensitize the data.
Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
Try
B16Formula:Please Login or Register to view this content.
Drag down!
ok if you want to separated by comma then
C2Formula:Please Login or Register to view this content.
Copy down
B16Formula:Please Login or Register to view this content.
sorry
did not saw you last comment
wow this is almost perfect.
If I change in A10 6 into 4, the value in B16 is only "fruit"
can you help me with that as well?
Then try
C2Formula:Please Login or Register to view this content.
D2Formula:Please Login or Register to view this content.
Copy across
B16Formula:Please Login or Register to view this content.
1 apple
1 pear
2 whatever
4 chicken
3 kip
4 haan
3 hello
2 bey
4 fruit
3 meat
1 big
1 cat
4 fruit; fruit
this works better but not yet good. I guess the order is important. Can you exclude that?
make a macro under which( using advance filter option with "criteria and list" then copy filtered items and then paste it with transpose in any location then use concatenate formula to combined transposed cell.
I prefer to solve it with a formula. I do not know much about marcro's.
You will need a UDF for this... But don't panic about macros, it's run just like a formula.
How to install your new codePlease Login or Register to view this content.
Copy the Excel VBA code
Select the workbook in which you want to store the Excel VBA code
Press Alt+F11 to open the Visual Basic Editor
Choose Insert > Module
Edit > Paste the macro into the module that appeared
Close the VBEditor
Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
[B][I]
Then use this array formula:
=ConcatAll(IF(A2:$A$13=A16,$B$2:$B$13,""),", ")
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...
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
it works for me, thanks a lot
You're welcome... Thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks