Hi Chaz,
Okay, here is how I would approach this situation. There is likely a more
elegant VBA solution that you might get someone from the Excel newsgroup to
post, but the method I outline below will work--it just may be a bit tedious
if you have hundreds of names entered. Do this on a copy of the spreadsheet
only.
Lets suppose that all of this data is in Column A. For example:
A1: Fred Flintstone
A2: Bedrock Mining
A3: 1000 Bedrock Way
A4: Bedrock
A5: State (I don't my Flintstones history good enough!)
A6: 12345
A7:
A8: Barney Rubble
A9: Bedrock Mining
A10: etc.
I'm showing a blank row, 7, in-between names, which you may or may not have.
Enter the following equations into the indicated cells:
B1: =(A2)
C1: =(A3)
D1: =(A4)
E1: =(A5)
F1: =(A6)
Select cells B1:F1 and click on Edit > Copy (or Ctrl C). Place your cursor
into cell B8 and click on Edit > Paste (or Ctrl V). Repeat this process of
pasting into the appropriate target cells, for example B15, B22, B29...
Now, select the entire columns B through F. Copy the contents into the
clipboard. Click into Cell G1. Then click on Edit > Paste Special...
Select Values as the paste option. You should get the same data as shown in
columns B through F, but without the equations. Delete columns B through F.
Delete rows that do not include data in columns B:F. You should now be ready
to import this data into Access. I recommend adding a single quote to a few
of the zip code values, in the first few rows, to help insure that the Access
import wizard treats this column as text.
Tom Wickerath
Microsoft Access MVPhttps://mvp.support.microsoft.com/profile/Tomhttp://
www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
- Show quoted text -