Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
group
I have two column i need to separate it as shown below
name age a 10 a 30 b 20 answer name age1 age2 a 10 30 b 20 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
group
Hi
please ignore my first query, actually i require something like below.. question Name Age a 1/1/2008 a 1/2/2008 b 1/3/2008 b 1/4/2008 c 1/5/2008 e 1/6/2008 f 1/7/2008 f 1/8/2008 f 1/9/2008 f 1/10/2008 and Answer should be like below Name age1 age2 age3 age4 a 1/1/2008 1/2/2008 b 1/3/2008 1/4/2008 c 1/5/2008 e 1/6/2008 f 1/7/2008 1/8/2008 1/9/2008 1/10/2008 "Ranjit kurian" wrote: I have two column i need to separate it as shown below name age a 10 a 30 b 20 answer name age1 age2 a 10 30 b 20 |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
group
Sub Processdata()
Dim LastRow As Long Dim i As Long Application.ScreenUpdating = False With ActiveSheet LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row For i = LastRow To 2 Step -1 If .Cells(i, "A").Value = .Cells(i - 1, "A").Value Then .Cells(i, "B").Resize(, 200).Copy .Cells(i - 1, "C") .Rows(i).Delete End If Next i End With Application.ScreenUpdating = True End Sub -- __________________________________ HTH Bob "Ranjit kurian" wrote in message ... I have two column i need to separate it as shown below name age a 10 a 30 b 20 answer name age1 age2 a 10 30 b 20 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
group
Thanks a lot
"Bob Phillips" wrote: Sub Processdata() Dim LastRow As Long Dim i As Long Application.ScreenUpdating = False With ActiveSheet LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row For i = LastRow To 2 Step -1 If .Cells(i, "A").Value = .Cells(i - 1, "A").Value Then .Cells(i, "B").Resize(, 200).Copy .Cells(i - 1, "C") .Rows(i).Delete End If Next i End With Application.ScreenUpdating = True End Sub -- __________________________________ HTH Bob "Ranjit kurian" wrote in message ... I have two column i need to separate it as shown below name age a 10 a 30 b 20 answer name age1 age2 a 10 30 b 20 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Copy Data from One Group of Cells to Another Group | Charts and Charting in Excel | |||
I wish to group my worksheets under group tabs | Excel Worksheet Functions | |||
How can I convert a group of numbers to a group of letters? | Excel Worksheet Functions | |||
Taking age group Ie ages 20-29 and picking out net sales for group | Excel Worksheet Functions | |||
How do I group worksheets (Lotus 123 function is "Sheet>Group Shee | Excel Worksheet Functions |