Compiling weekly numbers from same column, cross referencing serial numbers,zones, tasks and dates in other columns.

Sosborg

New Member
Joined
Jul 30, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I've built a barcode scanning system to keep track of what files and boxes are being worked on through the process.
I use VBA and in cell formulas and the database is just an excel table.

I need to do a weekly summary of how much progress has been done daily (the difference between the two values in one column), cross-referenced and divided between"Task" and "Zone".

I hope the attached screenshot explains what I am after.
Using VBA would be the best, as the sheet contains thousands of rows. I have the following formula in the cell that works but it makes the entire computer crash. (I'm working in a non-profit and our computers are 8 years old). Disregard the cell and column references in the formula below, they were from the sample sheet, not the real sheet. In the screenshot, you find the actual columns used.

Excel Formula:
=IFERROR(ABS(@INDEX(Sheet2!$AF:$AF,AGGREGATE(14,6,ROW(Sheet2!$AG$2:$AG$58)/((INT(Sheet2!$AG$2:$AG$58)=INDEX(OFFSET($C$6:$BF$6,8*(INT((ROWS($C$6:$C14)-1)/8)),0),1+4*INT((COLUMNS($C16:D16)-1)/4)))*(Sheet2!$AH$2:$AH$58=$B16)*(Sheet2!$AI$2:$AI$58=D$7)),1))-@INDEX(Sheet2!$AF:$AF,AGGREGATE(15,6,ROW(Sheet2!$AG$2:$AG$58)/((INT(Sheet2!$AG$2:$AG$58)=INDEX(OFFSET($C$6:$BF$6,8*(INT((ROWS($C$6:$C14)-1)/8)),0),1+4*INT((COLUMNS($C16:D16)-1)/4)))*(Sheet2!$AH$2:$AH$58=$B16)*(Sheet2!$AI$2:$AI$58=D$7)),1)))/100,"")

Is it possible at all to do this through VBA ? Or to make the formula in-cell less demanding?

Any comment, suggestion or question would be appreciated. Hope I've made it clear enough to understand.
 

Attachments

  • Weekly summary screenshot.jpg
    Weekly summary screenshot.jpg
    130.8 KB · Views: 8

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,147,566
Messages
5,741,864
Members
423,692
Latest member
Bhanu1988

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
Top