Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Autofill data in a worksheet
I have a text file that has data in it like this:
test1 math john score 0 0 0 0 test2 english mary scrore 10 15 20 30 test3 history simon score 23 17 21 30 test4 trig peter score 15 17 22 21 I would like to write a function that will align the test with the scores so it does not show on two lines. I would appreciate any assistance I can get. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Autofill data in a worksheet
try this
Sub alignrows() mc = "a" For i = Cells(Rows.Count, mc).End(xlUp).Row To 2 Step -2 'MsgBox Cells(i, mc) Cells(i - 1, mc) = Cells(i - 1, mc) & " " & Cells(i, mc) Rows(i).Delete Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Laptopguy" wrote in message ... I have a text file that has data in it like this: test1 math john score 0 0 0 0 test2 english mary scrore 10 15 20 30 test3 history simon score 23 17 21 30 test4 trig peter score 15 17 22 21 I would like to write a function that will align the test with the scores so it does not show on two lines. I would appreciate any assistance I can get. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
AUTOFILL DATA | Excel Discussion (Misc queries) | |||
autofill worksheet references? | Excel Worksheet Functions | |||
how do I autofill an excel worksheet with contacts from outlook? | Excel Worksheet Functions | |||
Autofill: Need to autofill one week block, (5) weekday only into cells. | Excel Discussion (Misc queries) | |||
Autofill Worksheet names | Setting up and Configuration of Excel |