Page 1
Page 1
Started By
Message
locked post

Seemingly Simple Excel Assistance

Posted on 7/10/15 at 11:38 am
Posted by yankeeundercover
Buffalo, NY
Member since Jan 2010
36419 posts
Posted on 7/10/15 at 11:38 am
So I've got a list of about 150 or so cells in one column... I need to get 5-digit numbers out and separated by a comma. (maybe in a text/word doc?)

It seems like it would be possible and I have no idea how to do it...

HALP!!1!1!!
Posted by GetCocky11
Calgary, AB
Member since Oct 2012
53509 posts
Posted on 7/10/15 at 11:39 am to
quote:

So I've got a list of about 150 or so cells in one column... I need to get 5-digit numbers out and separated by a comma. (maybe in a text/word doc?)


So it is a list of numbers, and you need to pull 5 digits out of the list of numbers?
Posted by Loveland Tiger
Colorado
Member since Nov 2014
5259 posts
Posted on 7/10/15 at 11:41 am to
Not enough information. Is it a formatting issue? You can format the first cell and drag the formatting to the rest.
Posted by Pectus
Internet
Member since Apr 2010
67302 posts
Posted on 7/10/15 at 11:41 am to
So turn a 12345678 into 45,678?

You can use the char left or right for how many you want left or right, and then you can change number formatting for all the cells to separate those numbers by commas. You can use that same setting to pick just 5 digit numbers too...depends on what youre doing.
Posted by Skin
Member since Jun 2007
6387 posts
Posted on 7/10/15 at 11:42 am to
Mid formula

then

Concatenate formula
Posted by GetCocky11
Calgary, AB
Member since Oct 2012
53509 posts
Posted on 7/10/15 at 11:43 am to
Yeah depending on where the 5 digits are within the list, you use either the LEFT MID or RIGHT functions.
Posted by Lou Pai
Member since Dec 2014
29646 posts
Posted on 7/10/15 at 11:44 am to
Can you be more specific? Sounds like each of the 5 digits needs to be separated?
Posted by Chucktown_Badger
The banks of the Ashley River
Member since May 2013
37620 posts
Posted on 7/10/15 at 11:45 am to
The ask is confusing.
Posted by Clyde Tipton
Planet Earth
Member since Dec 2007
40908 posts
Posted on 7/10/15 at 11:45 am to
Kind of vaugue, but if I understand correctly I would.

Highlight the row and click the button to push everything left.
Save file as a .prn
Open that file back up with excel and it will prompt you to set the rows in a text to column type deal.
Set your columns to capture the digits you need and the remaining digits in an additional column.
format your new column to numbers and add the comma you desire.
Re-save as an excel file.
Posted by TH03
Mogadishu
Member since Dec 2008
172004 posts
Posted on 7/10/15 at 11:45 am to
Text to columns, concatenate
Posted by Lou Pai
Member since Dec 2014
29646 posts
Posted on 7/10/15 at 11:49 am to
If cell A1 has 56789 in it and you want it to say "5,6,7,8,9".

Select cell right next to the first one. In cell B1 type in =Mid(A1,1,1)&","&Mid(A1,2,1)... that's the first two digits, continue that sequence in the same cell for the remaining three characters. Then just drag that formula down.
Posted by foshizzle
Washington DC metro
Member since Mar 2008
40599 posts
Posted on 7/10/15 at 11:50 am to
The OP is very confusing. Does this mean:

1. Get the cells that have five digit numbers but ignore the other ones?
2. Get the rightmost 5 digits from each cell? The leftmost?
3. Something else?
Posted by yankeeundercover
Buffalo, NY
Member since Jan 2010
36419 posts
Posted on 7/10/15 at 1:15 pm to
Apologies for a vague ask...

For simplicity's sake, lets call them 'zip codes' (5-digits)

There's on 'zip' in each cell of a column and I need to add them to a boolean search separated by commas...

Basically:
______
|12345|
______
|67890|
______
|09876|

to

12345, 67890, 09876, etc
Posted by xrockfordf150x
Walker, LA
Member since Sep 2008
3996 posts
Posted on 7/10/15 at 1:20 pm to
Try saving as csv comma delimited. I use this format from time to time to turn excel sheets into comma separated text.
Posted by theunknownknight
Baton Rouge
Member since Sep 2005
61377 posts
Posted on 7/10/15 at 1:32 pm to
Assuming your 150 values are in column A

In the column (col B) to the right enter this: = A1 + ", "
Copy that and paste all the way down column B

This formula will add a second column with commas following the zips in column B

Copy column B
Paste special - select "transpose" and paste into column C

This creates a string of 150 columns in one row with commas following the values.

Now copy that row starting in column C to the last value.

Paste in notepad.

You're done
This post was edited on 7/10/15 at 1:36 pm
Posted by ForeverLSU02
Albany
Member since Jun 2007
52590 posts
Posted on 7/10/15 at 1:33 pm to
quote:

yankeeundercover
You should be ashamed of yourself for creating a Paige thread
Posted by bobaftt1212
Hills of TN
Member since Mar 2013
1420 posts
Posted on 7/10/15 at 2:04 pm to
Assuming your data is in column 1 this should work
=IF(B1="",A1&","&A2,B1&","&A2)
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookXInstagram