Solved

Hi, I have the following mixed data in a cell that I want to separate into two. I am looking for a solution with the best degree of automation possible here. Cell content is "1,234, 56.78%".

Posted on 2015-02-11
10
36 Views
Last Modified: 2015-03-12
Button/Macro or using "=". Anything that may help automate this as much as possible. I want to split the data into two adjacent columns.

Kindly help.
0
Comment
Question by:wsom-itg
  • 3
  • 2
  • 2
  • +2
10 Comments
 

Author Comment

by:wsom-itg
ID: 40603770
Result as:
Cell 1: 1,234
Cell 2: 56.78%

Note: The length of the number in Cell 1/2 may vary.
0
 
LVL 7

Expert Comment

by:Katie Pierce
ID: 40603827
Click on the Data Ribbon, click Text to Columns, select Delimited and Next, check the box next to Comma, then Next, finish Wizard as needed.
0
 

Author Comment

by:wsom-itg
ID: 40603837
Great solution! Unfortunately, it also separates the 1,234 into 1 and 234.
0
 
LVL 7

Accepted Solution

by:
Katie Pierce earned 168 total points
ID: 40603847
OK, after doing that, can you add a column with the formula =CONCATENATE(C2,D2)

where C2 is the 1 and D2 is the 234?

Then just format that cell to be a number with a comma separator?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:wsom-itg
ID: 40604014
Yeah that helps. Thank you!
0
 
LVL 45

Assisted Solution

by:aikimark
aikimark earned 166 total points
ID: 40604235
This should parse your content:
=LEFT(A1,FIND(", ",A1)-1)
=MID(A1,FIND(", ",A1)+2,999)

Open in new window

0
 
LVL 46

Assisted Solution

by:Martin Liss
Martin Liss earned 166 total points
ID: 40604281
Select the cell and run this macro. It assumes that there is a comma and a space following 1,234.

Sub SplitIt()
ActiveCell.Offset(0, 1) = Split(ActiveCell, ", ")(0)
ActiveCell.Offset(0, 2) = Split(ActiveCell, ", ")(1)

End Sub

Open in new window

0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40605831
With text to columns, you can use the space as the separator instead of comma.
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40660519
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now