Jump to content
Forums are back in action! ×

Damn you Excel!


Recommended Posts

Can anybody help me with this? (yes I know there are help files, but I thought of you nerd first ;))

I'm trying to convert a flat table into a DB table (Access), but the data is oriented in individual records e.g.

record 1

attribute 1

attribute 2

attribute 3

attribute 4

record 2

attribute 1

attribute 2

attribute 3

attribute 4

how can I import/convert it into a proper DB table? e.g.

record 1 record 2

attribute 1 attribute 1

attribute 2 attribute 2

attribute 3 attribute 3

attribute 4 attribute 4

I feel like I'm missing something pretty obvious. I've added column headings to all the records which they didn't have before, but I'm stuck now.

Scout: STR: 20.5 | DEX: 13 | STA: 28 | CON: 13.5 | WIS: 8 | CHA: 4

http://51feetunder.wordpress.com/ - Running, Rock & Roll, Rock Climbing and Photography

Fitocracy Profile

Twitter

 

Latest Challenge

Link to comment

Export it to text and use awk/Perl to convert it. Or spend a lot of time cutting and pasting. YOu can also do some things like numbering the rows (add a column), then use some vtext lookup functions to pull them into a new page using the line numbers. Will only work if they all have exactly the same number of entries so you can do math on the line numbers.

It aint easy.

Then go "speak to" the person who generated the data... Or maybe ask them first to regenerate it??

Warriors don't count reps and sets. They count tons.

My psychologist weighs 45 pounds, has an iron soul and sits on the end of a bar

Tally Sheet for 2019

Encouragement for older members: Chronologically Blessed Group;

Encouragement for newbie lifters: When we were weaker

 

Link to comment

damn, I thought there would be a simple transpose range function where I could identify values based on "name"

Yes the list is shitty, but not the worst I've seen...unfortunately.

Scout: STR: 20.5 | DEX: 13 | STA: 28 | CON: 13.5 | WIS: 8 | CHA: 4

http://51feetunder.wordpress.com/ - Running, Rock & Roll, Rock Climbing and Photography

Fitocracy Profile

Twitter

 

Latest Challenge

Link to comment

I'm sure we can work something out here, but let me clarify a few things.

If your spreadsheet's like this:

Record1

apples

celery

Record2

oranges

carrots

Shouldn't your DB table be something like

[record_id],[fruit],[vegetables]

1,apples,celery

2,oranges,carrots

If not, then I'm not really sure what you're trying to do, if so, then you have a few options.

The easiset would be to add your column headers on a sheet, then for each record, copy, then Paste Special>Transpose them under the headers.

You could write a macro to do this automatically too if there are a ton of records.

PM me if you like and I'll give you a hand.

BAREFOOT DAWSY

Scout Commander (ret.)

Link to comment
I'm sure we can work something out here, but let me clarify a few things.

If your spreadsheet's like this:

Record1

apples

celery

Record2

oranges

carrots

Shouldn't your DB table be something like

[record_id],[fruit],[vegetables]

1,apples,celery

2,oranges,carrots

If not, then I'm not really sure what you're trying to do, if so, then you have a few options.

The easiset would be to add your column headers on a sheet, then for each record, copy, then Paste Special>Transpose them under the headers.

You could write a macro to do this automatically too if there are a ton of records.

PM me if you like and I'll give you a hand.

Your example is exactly what I would like to make my DB table into. I have used transpose before, but never on 4000 records, I'll look into macros and see what I can come up with. Thanks

Scout: STR: 20.5 | DEX: 13 | STA: 28 | CON: 13.5 | WIS: 8 | CHA: 4

http://51feetunder.wordpress.com/ - Running, Rock & Roll, Rock Climbing and Photography

Fitocracy Profile

Twitter

 

Latest Challenge

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

New here? Please check out our Privacy Policy and Community Guidelines