#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Formating help

I have been send a spreadsheet that is set up like the example below

A
1 60112,"1"
2
3 60113,"1"
4
5 60114,"1"
6
7 60121,"1"
i need to remove the blank cells(e,.g A2,A4 etc) and get rid of the
punctuation then in Cell B2 i need the otther number so it would look like
A B
1 60112 1

the spreadsheet has about a thousand rows can this be done or will it have
to be done manually which would take a considerable amount of time as i have
about 20 of these to do a day

I posted this question yesterday but it appears to have dissapeared so if
this is a duplicate apologies


Thanx for any help



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Formating help

DatText to ColumnsDelimited by Comma and Finish.

Does it for me with your example data.


Gord Dibben MS Excel MVP

On Wed, 16 Dec 2009 14:56:01 -0800, cufc1210
wrote:

I have been send a spreadsheet that is set up like the example below

A
1 60112,"1"
2
3 60113,"1"
4
5 60114,"1"
6
7 60121,"1"
i need to remove the blank cells(e,.g A2,A4 etc) and get rid of the
punctuation then in Cell B2 i need the otther number so it would look like
A B
1 60112 1

the spreadsheet has about a thousand rows can this be done or will it have
to be done manually which would take a considerable amount of time as i have
about 20 of these to do a day

I posted this question yesterday but it appears to have dissapeared so if
this is a duplicate apologies


Thanx for any help



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Formating help

hi
are all of the data layed out like your example? is there any other data
next to the data in question? do you know how to use macros?
you can get rid of the blank row simply by sorting the data. blank rows will
sort to the bottom.
if all of your data is layed out like your examples then this macro might do
it for you.
Sub cufc1210()
Dim r As Range
Dim lr As Long
lr = Cells(Rows.Count, "A").End(xlUp).Row
Set r = Range("A2:A" & lr)
For Each cell In r
cell.Offset(0, 1).Value = Mid(cell, 8, 1)
cell.Value = Left(cell, 5)
Next cell
End Sub

post back if problems

Regards
FSt1

"cufc1210" wrote:

I have been send a spreadsheet that is set up like the example below

A
1 60112,"1"
2
3 60113,"1"
4
5 60114,"1"
6
7 60121,"1"
i need to remove the blank cells(e,.g A2,A4 etc) and get rid of the
punctuation then in Cell B2 i need the otther number so it would look like
A B
1 60112 1

the spreadsheet has about a thousand rows can this be done or will it have
to be done manually which would take a considerable amount of time as i have
about 20 of these to do a day

I posted this question yesterday but it appears to have dissapeared so if
this is a duplicate apologies


Thanx for any help



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Formating help

Thanx a lot guys both of them worked fantastic and will save me hours of work
my assistant will be most grateful as well

Cheers again guys

"Gord Dibben" wrote:

DatText to ColumnsDelimited by Comma and Finish.

Does it for me with your example data.


Gord Dibben MS Excel MVP

On Wed, 16 Dec 2009 14:56:01 -0800, cufc1210
wrote:

I have been send a spreadsheet that is set up like the example below

A
1 60112,"1"
2
3 60113,"1"
4
5 60114,"1"
6
7 60121,"1"
i need to remove the blank cells(e,.g A2,A4 etc) and get rid of the
punctuation then in Cell B2 i need the otther number so it would look like
A B
1 60112 1

the spreadsheet has about a thousand rows can this be done or will it have
to be done manually which would take a considerable amount of time as i have
about 20 of these to do a day

I posted this question yesterday but it appears to have dissapeared so if
this is a duplicate apologies


Thanx for any help



.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formating Ling Excel Discussion (Misc queries) 3 May 30th 08 10:03 AM
Formating First Name and Last Name Chico Excel Discussion (Misc queries) 2 May 9th 08 03:05 PM
If, Then, Or formating Scott Excel Discussion (Misc queries) 1 June 21st 07 02:16 AM
Tab formating Brisbane Rob Excel Discussion (Misc queries) 4 January 27th 06 12:21 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM


All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"