Alternative solution needed for slow calculating Array formulas !

fisht

New Member
Joined
Sep 1, 2013
Messages
47
Hi,

I am currently calculating ~20,000 array formulas to complete the below task, however it takes way too long to complete and often times freezes my excel (excel 2010). So I am hoping that someone can help me out and determine a faster solution (possibly with VBA) that can complete this task in a fraction of the time! Below are the details of the workbook I am currently using:

Workbook Info

'Data' tab - includes a data dump starting in column 'A:N'-- maximum number of rows the data dump will contain is 10,000. Company names are listed in column 'B', dates are listed in column 'F', and discount & promotion types are listed in column 'L'.​

'Company 1' tab - 3 months of data organized by the following:

RowsColumn AColumn BColumn C....Column AF
1Company 1 NAME
2August Dates8/1/20148/2/2014....8/31/2014
3D&P Type 1array formulaarray formulaarray formula
4D&P Type 2array formulaarray formulaarray formula
..........array formulaarray formulaarray formula
22D&P Type 20array formulaarray formulaarray formula

<tbody>
</tbody>


RowsColumn AColumn BColumn C....Column AF
25September Dates9/1/20149/2/2014....
26D&P Type 1array formulaarray formulaarray formula
27D&P Type 2array formulaarray formulaarray formula
28D&P Type 3array formulaarray formulaarray formula
.....array formulaarray formulaarray formula
45D&P Type 20array formulaarray formulaarray formula

<tbody>
</tbody>
*** There are only 30 days in September, so therefore the last day of the month ends in column 'AE'.​

Month 3- same as above except dates for October 2014 are in row '48' and D&P types are between rows '49:68'.


'Company 2' tab - same as above, with the exception of a different company name in cell $A$1 of this worksheet.

Worksheets continue to 'Company 10' -- these calculations are run for 10 different companies, which have their own worksheets, and each worksheet shares the identical structure as listed above.

Calculation criteria (for each company worksheet)

Example calculation in cell 'B3'​


  1. [*=1]Take company name in cell '$A$1' and date in cell 'B$2' and match each criteria to columns 'B' and 'F' (respectively) on the 'Data' tab.
    [*=1]Then return multiple 'D&P type' values from column 'L' on the 'Data' tab that match the criteria from #1.
    [*=1]There will be a maximum of 20 'D&P types' that run on any given date for each company. (which is why I have 20 rows for 'D&P types' for each day).

I need these multiple 'D&P type' values returned to each day, for each of the 3 months, and for each of the 10 companies.

Please let me know if I can help clarify anything and your help will be very much appreciated and will save SO much time!!

Thank you in advance!​
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi just being curious, since yo have Excel 2010, have you tried Power Pivot? Suggest you post as well a query in the power pivot forum with a link to this thread.
Power Pivot would eliminate your "speed" concern as your raw data doesn't seem to be that big. Further more those computation in Columns B:AF might be solved within Power Pivot itself (similar to the calculated field of a Pivot but with far more leeway. For your perusal.
 
Upvote 0
Hi cyrilbrd- thanks for the recommendation, however I am trying to avoid using pivot tables.

Any ideas for a different solution?
 
Upvote 0
Anyone else know of another solution? Your help will be very much appreciated!

Also, is my explanation clear enough?

Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top