Hi,
I have many rows of description but the same code for each one.
I want to have all the descriptions in one cell for each code.
SAMPLE.xlsx
Thanks
K.
Hi,
I have many rows of description but the same code for each one.
I want to have all the descriptions in one cell for each code.
SAMPLE.xlsx
Thanks
K.
1) In C2, add this formula, then copy down:
=IF(A2=A3, B2&" - "&C3, B2)
2) Copy the results from column C and click on B2, then do a Paste Special > Values
This replaces the values in column B with the values from C
3) In C2, change the formula to this and copy down:
=A2<>A1
4) Now filter column C for FALSE and delete all the visible rows
5) Turn off the filter
6) Delete column C
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
see if this helps (i have had to use some helper columns, which are hidden)...
- i.s.z -
CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
All good ideas are courtesy resources from this forum as well as others around the web.
- e.o.m -
Thank u so much for the help!!
K.
Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.
In future, to mark your thread as Solved, you can do the following -
Select Thread Tools-> Mark thread as Solved.
Incase your issue is not solved, you can undo it as follows -
Select Thread Tools-> Mark thread as Unsolved.
Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
If I have helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks