Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Can cells be split ?

I have employees listed in column A
One employee in each row.
Can I split cells in B to create 3 cells in B1, etc.

Currently this:
A B
Smith B1 -one cell
Jones B2 - one cell

Want this:
Smith one cell
two cell
three cell
Jones one cell
two cell
three cell
Ok if employees end up merged so that Smith is cells A1:A3, Jones is in
cells A4:A6, etc.

Thanks,

Steve
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Can cells be split ?

Why don't you just insert 2 lines after each first name?

"Steve" wrote:

I have employees listed in column A
One employee in each row.
Can I split cells in B to create 3 cells in B1, etc.

Currently this:
A B
Smith B1 -one cell
Jones B2 - one cell

Want this:
Smith one cell
two cell
three cell
Jones one cell
two cell
three cell
Ok if employees end up merged so that Smith is cells A1:A3, Jones is in
cells A4:A6, etc.

Thanks,

Steve

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Can cells be split ?

I was hoping for something easier, as I'm dealing with hundreds of employees.

"Luizvs" wrote:

Why don't you just insert 2 lines after each first name?

"Steve" wrote:

I have employees listed in column A
One employee in each row.
Can I split cells in B to create 3 cells in B1, etc.

Currently this:
A B
Smith B1 -one cell
Jones B2 - one cell

Want this:
Smith one cell
two cell
three cell
Jones one cell
two cell
three cell
Ok if employees end up merged so that Smith is cells A1:A3, Jones is in
cells A4:A6, etc.

Thanks,

Steve

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default Can cells be split ?

Steve
This little macro might help. I assumed your names are in Column A starting
in A2. This macro will insert 2 blank rows below every name. Is this what
you want? HTH Otto
Sub Insert2Rows()
Dim rColA As Range
Dim c As Long
Set rColA = Range("A2", Range("A" & Rows.Count).End(xlUp))
For c = rColA.Count To 1 Step -1
rColA(c).Offset(1).EntireRow.Resize(2).Insert
Next c
End Sub

"Steve" wrote in message
...
I was hoping for something easier, as I'm dealing with hundreds of
employees.

"Luizvs" wrote:

Why don't you just insert 2 lines after each first name?

"Steve" wrote:

I have employees listed in column A
One employee in each row.
Can I split cells in B to create 3 cells in B1, etc.

Currently this:
A B
Smith B1 -one cell
Jones B2 - one cell

Want this:
Smith one cell
two cell
three cell
Jones one cell
two cell
three cell
Ok if employees end up merged so that Smith is cells A1:A3, Jones is
in
cells A4:A6, etc.

Thanks,

Steve


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default Can cells be split ?

Perfect. Thanks,

Now, can a macro be written to merge the initial rows with the 2 blank rows
below it, but only for columns A-K, keeping L & M with the added rows/cells ?
Like merging A5:K7, then A8:K10, etc. ?

Thanks,

Steve

"Otto Moehrbach" wrote:

Steve
This little macro might help. I assumed your names are in Column A starting
in A2. This macro will insert 2 blank rows below every name. Is this what
you want? HTH Otto
Sub Insert2Rows()
Dim rColA As Range
Dim c As Long
Set rColA = Range("A2", Range("A" & Rows.Count).End(xlUp))
For c = rColA.Count To 1 Step -1
rColA(c).Offset(1).EntireRow.Resize(2).Insert
Next c
End Sub

"Steve" wrote in message
...
I was hoping for something easier, as I'm dealing with hundreds of
employees.

"Luizvs" wrote:

Why don't you just insert 2 lines after each first name?

"Steve" wrote:

I have employees listed in column A
One employee in each row.
Can I split cells in B to create 3 cells in B1, etc.

Currently this:
A B
Smith B1 -one cell
Jones B2 - one cell

Want this:
Smith one cell
two cell
three cell
Jones one cell
two cell
three cell
Ok if employees end up merged so that Smith is cells A1:A3, Jones is
in
cells A4:A6, etc.

Thanks,

Steve


.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default Can cells be split ?

Steve
I've been out of pocket for the past week. If you wish send me your
file, or a sample of it, clearly showing before and after. Include a copy
of this post and your previous posts in this thread. My email is
. Remove the "extra" from this address. Otto

"Steve" wrote in message
...
Perfect. Thanks,

Now, can a macro be written to merge the initial rows with the 2 blank
rows
below it, but only for columns A-K, keeping L & M with the added
rows/cells ?
Like merging A5:K7, then A8:K10, etc. ?

Thanks,

Steve

"Otto Moehrbach" wrote:

Steve
This little macro might help. I assumed your names are in Column A
starting
in A2. This macro will insert 2 blank rows below every name. Is this
what
you want? HTH Otto
Sub Insert2Rows()
Dim rColA As Range
Dim c As Long
Set rColA = Range("A2", Range("A" & Rows.Count).End(xlUp))
For c = rColA.Count To 1 Step -1
rColA(c).Offset(1).EntireRow.Resize(2).Insert
Next c
End Sub

"Steve" wrote in message
...
I was hoping for something easier, as I'm dealing with hundreds of
employees.

"Luizvs" wrote:

Why don't you just insert 2 lines after each first name?

"Steve" wrote:

I have employees listed in column A
One employee in each row.
Can I split cells in B to create 3 cells in B1, etc.

Currently this:
A B
Smith B1 -one cell
Jones B2 - one cell

Want this:
Smith one cell
two cell
three cell
Jones one cell
two cell
three cell
Ok if employees end up merged so that Smith is cells A1:A3, Jones
is
in
cells A4:A6, etc.

Thanks,

Steve


.

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
How to Split the contents of cells across multiple cells anna New Users to Excel 5 May 29th 08 02:47 PM
Split cells Elaine New Users to Excel 3 April 21st 08 05:16 PM
Split cells texansgal Charts and Charting in Excel 1 January 16th 08 07:12 PM
Split cells moglione1 Excel Discussion (Misc queries) 5 September 22nd 05 05:47 PM
split cells mwuttke Excel Discussion (Misc queries) 1 August 4th 05 07:31 PM


All times are GMT +1. The time now is 01:09 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"