Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I often have to import data into excel. This in itself is not the problem.
My source document does not provide the date and name on each line. These items only appear on the first line. I need them on every line to sort properly. The file is very large so cut and paste is out of the question. So is dragging. Than you, Bill Chance |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Select the cells you want to process and run the following macro. It will
take the date and name from the first cell and place it in front of the others: Sub fixup() k = 0 For Each cell In Selection If k = 0 Then v = cell.Value k = 1 Else cell.Value = v & cell.Value End If Next End Sub For example, if the input data looks like: 9/15/2008 James Larry Moe Curley the macro will produce: 9/15/2008 James 9/15/2008 JamesLarry 9/15/2008 JamesMoe 9/15/2008 JamesCurley -- Gary''s Student - gsnu200804 "LtWmChance" wrote: I often have to import data into excel. This in itself is not the problem. My source document does not provide the date and name on each line. These items only appear on the first line. I need them on every line to sort properly. The file is very large so cut and paste is out of the question. So is dragging. Than you, Bill Chance |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hard to tell with the lack of deatil but maybe.............?
Select the column(s) with the missing data then F5SpecialBlanksOK In the active cell enter an = sign then point or arrow to cell above then CTRL + ENTER. EditCopy EditPaste SpecialValuesOKEsc Gord Dibben MS Excel MVP On Mon, 15 Sep 2008 04:08:01 -0700, LtWmChance wrote: I often have to import data into excel. This in itself is not the problem. My source document does not provide the date and name on each line. These items only appear on the first line. I need them on every line to sort properly. The file is very large so cut and paste is out of the question. So is dragging. Than you, Bill Chance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Start Excel in Text Import Wizard for data import | Setting up and Configuration of Excel | |||
Data Import to Excel Issue with Excel 2007 and Excel 2003 on same | Excel Discussion (Misc queries) | |||
Please help with Excel import | Excel Discussion (Misc queries) | |||
import .wmf-excel 03? | Excel Worksheet Functions | |||
How can I import a PDF into Excel? | Excel Discussion (Misc queries) |