Shippwreck
Programmer
Hi,
I have a file that has 15 sheets. 13 of them record data for all staff in an organisation and record 21 different items per member of staff. The most number of staff at any one organisation is under 1,000 so i have given each sheet 1,000 rows for data entry. The problem now is that it is 40Mb big.
I have done all the basic things like selecting all blank cells and clearing them and then selecting all unused rows and columns and deleting them, and the file is saved as a .xls in the same version as excel that i'm using.
I have realised the problem is with the formulas. There are two main formulas in these cells and they are:
This one appears 1000 times in each sheet:
=IF(ISNA(AND(MATCH($B13,'Groupings'!$E$2:$E$153,0)>0,
MATCH($C13,'LDP Groupings'!$F$2:$F$77,0)>0))=TRUE,
IF(ISNA(MATCH($B13,'Groupings'!$E$259:$E$354,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$355:$E$408,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$409:$E$445,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$446:$E$764,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$2:$E$258,0)=TRUE),
"InvalidCode","Ungrouped"),"Group1"),"Group2"),"Group3"),"Group4"),"Group5")
This one appears 8000 times in each sheet:
=IF($A13="Group5",$F13*'04-05 Q2'!$B$4,IF($A13="Group4",$F13*'04-05 Q2'!$B$5,IF($A13="Group3",$F13*'04-05 Q2'!$B$6,IF($A13="Group2",$F13*'04-05 Q2'!$B$7,IF($A13="Group1",$F13*'04-05 Q2'!$B$8,IF($A13="Ungrouped",$F13*'04-05 Q2'!$B$9,0))))))
As you can see they are a bit complicated. Apart from making these a function in VBA is there any other way to reduce the file size?
I am sure it is these formulas that are making the file large because when i only have 10 rows in each sheet the file size is under 1 Mb and when there are 1000 it is 40 Mb
Any ideas would be great, (apart from using a database as my boss doesn't want that and anyway they are a pain to send via e-mail)
Thanks
Shippwreck
I have a file that has 15 sheets. 13 of them record data for all staff in an organisation and record 21 different items per member of staff. The most number of staff at any one organisation is under 1,000 so i have given each sheet 1,000 rows for data entry. The problem now is that it is 40Mb big.
I have done all the basic things like selecting all blank cells and clearing them and then selecting all unused rows and columns and deleting them, and the file is saved as a .xls in the same version as excel that i'm using.
I have realised the problem is with the formulas. There are two main formulas in these cells and they are:
This one appears 1000 times in each sheet:
=IF(ISNA(AND(MATCH($B13,'Groupings'!$E$2:$E$153,0)>0,
MATCH($C13,'LDP Groupings'!$F$2:$F$77,0)>0))=TRUE,
IF(ISNA(MATCH($B13,'Groupings'!$E$259:$E$354,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$355:$E$408,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$409:$E$445,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$446:$E$764,0)=TRUE),
IF(ISNA(MATCH($B13,'Groupings'!$E$2:$E$258,0)=TRUE),
"InvalidCode","Ungrouped"),"Group1"),"Group2"),"Group3"),"Group4"),"Group5")
This one appears 8000 times in each sheet:
=IF($A13="Group5",$F13*'04-05 Q2'!$B$4,IF($A13="Group4",$F13*'04-05 Q2'!$B$5,IF($A13="Group3",$F13*'04-05 Q2'!$B$6,IF($A13="Group2",$F13*'04-05 Q2'!$B$7,IF($A13="Group1",$F13*'04-05 Q2'!$B$8,IF($A13="Ungrouped",$F13*'04-05 Q2'!$B$9,0))))))
As you can see they are a bit complicated. Apart from making these a function in VBA is there any other way to reduce the file size?
I am sure it is these formulas that are making the file large because when i only have 10 rows in each sheet the file size is under 1 Mb and when there are 1000 it is 40 Mb
Any ideas would be great, (apart from using a database as my boss doesn't want that and anyway they are a pain to send via e-mail)
Thanks
Shippwreck