I want to make a list from A value to D. A value separated by ";" or new row. So, the result on D is separated by row. Please, look at the pic.
make a list.png
I want to make a list from A value to D. A value separated by ";" or new row. So, the result on D is separated by row. Please, look at the pic.
make a list.png
Last edited by putritersenyum; 02-15-2017 at 06:41 AM.
Hi,
So I will restate the problem how I interpret it, and then suggest a solution that solves it.
Problem: You have various cells populated in column A, each containing a list of items separated by semi-colons. You require in column D a new list, either in traditional spreadsheet format (one item per row) or separated by semi-colons, which is an amalgamated list with duplicates removed.
Solution: Step by step
- In cell B1 (or wherever else you may find appropriate), insert the formula:
Formula:Please Login or Register to view this content.- Copy B1 and Paste Values into B2
- With cell B2 selected, go to Data --> Data Tools --> Text to Columns
- Going through the wizard pages ([N] = Next): select Delimited[N]; then Other and type a semi-colon ensuring the rest are unticked[N]; then make the destination $F$1; and click Finish
- Select F1:?1 (wherever the list ends), copy it and Paste Transpose into D1, then delete F1:?1
- Select D1:D?? (wherever the list ends) and go to Data --> Data Tools --> Remove Duplicates and click OK
- If you need it in a semi-colon-separated format, find a cell and recreate the formula in step 1 for every cell in the new list
I hope that solution makes sense, but I'm happy to give further clarification if it doesn't. If you require a solution that works purely on formulae, let me know and I will give it a go, but be warned, it will be complex because removing duplicates with formulae is particularly awkward.
---
Bernieburnham
you can try:
1.
Copy code to code window of your sheet (copy code, right click on tab and select View Code, paste code, close MS VBA)
2.Please Login or Register to view this content.
Select your cell with the string
use Alt+F8 (it will open macro window)
select Vertical and click Run
hope it will help
Last edited by sandy666; 02-15-2017 at 08:52 AM. Reason: typo
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks