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 14 November 2007, 02:31 PM
  #1  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
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
Old 14 November 2007, 03:00 PM
  #2  
john_s
Scooby Regular
iTrader: (1)
 
john_s's Avatar
 
Join Date: Dec 2002
Location: Preston, Lancs.
Posts: 2,977
Likes: 0
Received 0 Likes on 0 Posts
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.
Old 14 November 2007, 03:06 PM
  #3  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

ooh macros - never used em.

thanks for the advice, will check it out
Old 14 November 2007, 03:37 PM
  #4  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
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; 14 November 2007 at 03:42 PM.
Old 14 November 2007, 03:55 PM
  #5  
bob269
Scooby Regular
 
bob269's Avatar
 
Join Date: Mar 2003
Posts: 2,654
Likes: 0
Received 1 Like on 1 Post
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,"-")
Old 14 November 2007, 04:11 PM
  #6  
spectrum48k
Scooby Regular
Thread Starter
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

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



Quick Reply: data conversion from spreadsheet to database



All times are GMT +1. The time now is 02:47 AM.