I have two worksheets:
worksheet2 (ColumnA) contains a list of social security numbers. Of course all Social security numbers in this column are unique. (ColumnB) contains Days absent
worksheet1 (columnA) contains Student Social security Numbers.
(columnB) contains sumif formulas based on the row:
i.e. for row1 = Sumif('worksheet2'!A:A, 'worksheet1'!A1, 'worksheet2'!B:B)
i.e. for row2 = Sumif('worksheet2'!A:A, 'worksheet1'!A2, 'worksheet2'!B:B)
i.e. for row3 = Sumif('worksheet2'!A:A, 'worksheet1'!A3, 'worksheet2'!B:B)
i.e. for row4 = Sumif('worksheet2'!A:A, 'worksheet1'!A4, 'worksheet2'!B:B)
i.e. for row10000 = Sumif('worksheet2'!A:A, 'worksheet1'!A10000, 'worksheet2'!B:B)
Basicly what this formula does is searches (column A) worksheet2 for the social security number listed on worksheet1 (ColumnA) then lists the days absent for this social security number on columnB worksheet1.
I.E.
WORKSHEET2 (All Social Security Numbers are unique)
(Column A-SS#) (Column B-Days Absent)
2-1113 10
2-1114 2
3-1112 3
1-1115 31
WORKSHEET1 (Here is what is displayed)
(ColumnA-SS#) (ColumnB-Days Absent)
Row1: 1-1115 Sumif('worksheet2'!A:A, 'worksheet1'!A1, 'worksheet2'!B:B) = 31
Row2: 2-1113 Sumif('worksheet2'!A:A, 'worksheet1'!A2, 'worksheet2'!B:B) = 10
Row3: 2-1114 Sumif('worksheet2'!A:A, 'worksheet1'!A3, 'worksheet2'!B:B) = 2
Row4: 2-1113 Sumif('worksheet2'!A:A, 'worksheet1'!A4, 'worksheet2'!B:B) = 10
Of course the sumif works in this case because all social security numbers are unique on worksheet2.
Once the excel document gets to be over 4000 records, it runs slow with these kind of formulas. Is there a formula I could use that would be faster than this? I am using both Excell 2000 and 2003.
Start Free Trial