Too much data for excel to process... is there a VBA solution for this formula?

ozelegend

New Member
Joined
Dec 19, 2011
Messages
9
Hi,

I have 190,000 rows of data and I want to run one formula down to the bottom and run a pivot table off the frequency of the outcomes.

The formula below is put into column H.

IFERROR(IF(B31=$I$1,MAX(D2:D31),"")-IF(B31=$I$1,MIN(E2:E31),""),"")

Column B is Time formatted to text. Column D are High values, column E are low values. What I'm wanting to know is the range of the prior 30 rows (max value in D - min value in E).

The problem is that there seems to be too many rows for the formula to be filled down to the bottom and my computer can't hack it. Is there any way I can do this in VBA so the task in manageable by my PC?

Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Re: relative reference D2:D31

What cell do you want that whole formula in? H1?

Do you want it dragged down so the formula in the cell below would be
=IFERROR(IF(B32=$I$1,MAX(D3:D32),"")-IF(B32=$I$1,MIN(E3:E32),""),"")
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,112
Members
449,993
Latest member
Sphere2215

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