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.

Excel - What Is The Best Way To

Thread Tools
 
Search this Thread
 
Old 24 March 2009, 01:54 PM
  #1  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Question Excel - What Is The Best Way To

I have a database of some 450,000 records consisting of about 10 fields per record - mix of text/number and date fields

Using Excel 2007, I can potentially put all these records on one sheet, which makes the formulas simpler of course but is not essential.

On the record sheet I run a number of calculations (15 or so) and then use a front sheet to display grouped results based on IF statements (countifs/averageifs etc)

All pretty simple stuff but the problem is that the size of the spreadsheet grows enormously! Currently 45mb.

What tips/tricks to keeping the size as small as possible? Should I use external links (other workbooks) or maybe an access db (the data is a result of a complex sql query otherwise I could reference the sql db directly). Keep it on 1 sheet? Anything?

Cheers!!

Puff

Puff
Old 24 March 2009, 02:13 PM
  #2  
HankScorpio
Scooby Regular
 
HankScorpio's Avatar
 
Join Date: Feb 2004
Posts: 5,848
Likes: 0
Received 0 Likes on 0 Posts
Default

Simple thing you've probably looked at - is "track changes" off? Used to cause a lot of file size issues.
Old 24 March 2009, 02:16 PM
  #3  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default

Its off

(Had never thought to look lol)
Old 24 March 2009, 03:31 PM
  #4  
DemonDave
Scooby Regular
iTrader: (13)
 
DemonDave's Avatar
 
Join Date: Jan 2001
Location: Midlands - between notts and derby !
Posts: 4,997
Likes: 0
Received 0 Likes on 0 Posts
Default

I would go to at least an access DB if not SQL server. It would depend on how business critical it is !
Old 24 March 2009, 04:11 PM
  #5  
michaelro
Scooby Regular
 
michaelro's Avatar
 
Join Date: Jan 2006
Posts: 897
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by DemonDave
I would go to at least an access DB if not SQL server. It would depend on how business critical it is !
Agreed.

Access as a minimum
Wouldn't use Excel for anything over a few thousand rows myself.

Can you not use the Source SQL DB itself?
Old 24 March 2009, 04:40 PM
  #6  
DJ_Jon
911 C4 pilot
iTrader: (7)
 
DJ_Jon's Avatar
 
Join Date: Jan 2007
Location: In an Air Cooled Porsche
Posts: 3,578
Likes: 0
Received 0 Likes on 0 Posts
Default

excel sucks for that sort of stuff, get an access db, much faster and smaller!
Old 24 March 2009, 08:51 PM
  #7  
bioforger
Scooby Regular
iTrader: (1)
 
bioforger's Avatar
 
Join Date: Jan 2002
Location: Pig Hill, Wiltsh1te
Posts: 16,995
Received 5 Likes on 5 Posts
Default

SQL is the way forward, access sux to!
Old 24 March 2009, 09:05 PM
  #8  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default

OK - going to try Access.

So what is

=IF(A1="","",IF(A1=DATE(1900,1,0),"",IF(B1=DATE(19 00,1,0),A1,IF(B1>A1,B1,B1))))

In Access?

Two date/time columns which may or may not be blank & I'm asking if B1 exists, if its before A1 put A1 and if it exists and is after A1, put B1.
Old 24 March 2009, 10:10 PM
  #9  
DemonDave
Scooby Regular
iTrader: (13)
 
DemonDave's Avatar
 
Join Date: Jan 2001
Location: Midlands - between notts and derby !
Posts: 4,997
Likes: 0
Received 0 Likes on 0 Posts
Default

SELECT
IIF
(DATEDIFF("D",
IIF(IsDate([DATE-A]),[DATE-A],"01/01/1000") ,
IIF(IsDate([DATE-B]),[DATE-B],"01/01/1000")
)
<= 0 , [DATE-A] , [DATE-B]) AS [RETURNED-DATE]
FROM [DATA-TABLE];

Will work from year 1000 upwards only

Last edited by DemonDave; 24 March 2009 at 10:12 PM. Reason: added comment
Old 24 March 2009, 11:45 PM
  #10  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default

Woah

I feel a whole new learning curve coming on here! I knew there was a reason I stuck to Excel...

If this was stuck in column C in the db would it work it out for all the records individually? I presume this is run as a query somehow..

Gah - head time...
Old 24 March 2009, 11:59 PM
  #11  
DemonDave
Scooby Regular
iTrader: (13)
 
DemonDave's Avatar
 
Join Date: Jan 2001
Location: Midlands - between notts and derby !
Posts: 4,997
Likes: 0
Received 0 Likes on 0 Posts
Default

Just run that as a query along with the other columns you want to return ...

if you create a table in access and let me have the columns names it will be v easy to recreate the query

Give us a shout if you want some help !
Old 25 March 2009, 09:40 AM
  #12  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default

YHM!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
leg200
Subaru Parts
5
07 October 2015 07:31 AM
has-scooby
Subaru Parts
4
06 October 2015 03:47 PM
bluebullet29
General Technical
9
05 October 2015 02:17 PM



Quick Reply: Excel - What Is The Best Way To



All times are GMT +1. The time now is 05:26 PM.