Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

data conversion from spreadsheet to database

Thread Tools
 
Search this Thread
 
Old Nov 14, 2007 | 02:31 PM
  #1  
spectrum48k's Avatar
spectrum48k
Thread Starter
Scooby Regular
 
Joined: Feb 2006
Posts: 2,519
Likes: 0
Default data conversion from spreadsheet to database

Normally it would be a problem but one spreadsheet has 2 thousand rows of data where product information is spread over 2 rows...

eg. I've simplified it...

row 1 = product code, description
row 2 = product price

row 3 = product code, description
row 4 = product price

and so on...

what's the best way to convert this into a database ? Ideally I need a method to combine every 2 rows into a single row in the database
Reply
Old Nov 14, 2007 | 03:00 PM
  #2  
john_s's Avatar
john_s
Scooby Regular
iTrader: (1)
 
Joined: Dec 2002
Posts: 2,977
Likes: 0
From: Preston, Lancs.
Default

Macro in Excel to move the data onto a single row for each entry?

Then it's just a straightforward import into the database.
Reply
Old Nov 14, 2007 | 03:06 PM
  #3  
spectrum48k's Avatar
spectrum48k
Thread Starter
Scooby Regular
 
Joined: Feb 2006
Posts: 2,519
Likes: 0
Default

ooh macros - never used em.

thanks for the advice, will check it out
Reply
Old Nov 14, 2007 | 03:37 PM
  #4  
spectrum48k's Avatar
spectrum48k
Thread Starter
Scooby Regular
 
Joined: Feb 2006
Posts: 2,519
Likes: 0
Default

how do you enter this formula in Excel ?

if J6 starts with "L" then I7=J6

so far using the formula wizard I've got

=IF(I6="L*",J5=I6,"-")

but the ="L*" is clearly wrong

Last edited by spectrum48k; Nov 14, 2007 at 03:42 PM.
Reply
Old Nov 14, 2007 | 03:55 PM
  #5  
bob269's Avatar
bob269
Scooby Regular
 
Joined: Mar 2003
Posts: 2,654
Likes: 1
Default

Originally Posted by spectrum48k
how do you enter this formula in Excel ?

if J6 starts with "L" then I7=J6

so far using the formula wizard I've got

=IF(I6="L*",J5=I6,"-")

but the ="L*" is clearly wrong
=IF((LEFT(I6,1))="L",I6,"-")
Reply
Old Nov 14, 2007 | 04:11 PM
  #6  
spectrum48k's Avatar
spectrum48k
Thread Starter
Scooby Regular
 
Joined: Feb 2006
Posts: 2,519
Likes: 0
Default

perfick! it's like VBasic sorta!
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Sam Witwicky
Engine Management and ECU Remapping
17
Nov 13, 2015 10:49 AM
Ganz1983
Subaru
5
Oct 2, 2015 09:22 AM
thunder8
General Technical
0
Oct 1, 2015 09:13 PM
makkink
General Technical
10
Oct 1, 2015 05:41 PM
shorty87
Other Marques
0
Sep 25, 2015 08:52 PM




All times are GMT +1. The time now is 12:32 PM.