Shanaya2009
New Member
- Joined
- Mar 11, 2021
- Messages
- 5
- Office Version
- 2016
- Platform
- Windows
Hello,
I need help with an alternative formula instead of SUMPRODUCT.
I have over 30 sheets (for every co-worker) with a lot of data. In every sheet column A has dates (from 1st to 31th of the month, each date has multiple entries) and column H has values in %.
I have another sheet (Total) that calculates averages per day for all co-workers and monthly average for all co-workers.
To get the right result, I need to calculate average from all % in column H that have the same date in all sheets.
I have SUMPRODUCT formulas, combined with INDIRECT, but every time I change something anywhere, those formulas calculate and this takes sooooo long.
I have tried with marcos Worksheet.Activate + manual calculation and then in every sheet activesheet.calculate to prevent long calculations, but it still takes too long, and it also disables copy/paste, so this is not an option.
Does anyone have a solution to replace my formula with something else?
I need to calculate the average of all data in column H in every sheet, if column A in every sheet equals to A3 in Total (same date), if column B in every sheet doesn't have the value "x" and if column C in every sheet is not empty.
=SUMPRODUCT(SUMIFS(INDIRECT("'"&SHEETS&"'!H:H");INDIRECT("'"&SHEETS&"'!A:A");A3;INDIRECT("'"&SHEETS&"'!B:B");"<>x";INDIRECT("'"&SHEETS&"'!C:C");"<>"))/SUMPRODUCT(COUNTIFS(INDIRECT("'"&SHEETS&"'!A:A");A3;INDIRECT("'"&SHEETS&"'!B:B");"<>x";INDIRECT("'"&SHEETS&"'!C:C");"<>"))
Thanks in advance.
I need help with an alternative formula instead of SUMPRODUCT.
I have over 30 sheets (for every co-worker) with a lot of data. In every sheet column A has dates (from 1st to 31th of the month, each date has multiple entries) and column H has values in %.
I have another sheet (Total) that calculates averages per day for all co-workers and monthly average for all co-workers.
To get the right result, I need to calculate average from all % in column H that have the same date in all sheets.
I have SUMPRODUCT formulas, combined with INDIRECT, but every time I change something anywhere, those formulas calculate and this takes sooooo long.
I have tried with marcos Worksheet.Activate + manual calculation and then in every sheet activesheet.calculate to prevent long calculations, but it still takes too long, and it also disables copy/paste, so this is not an option.
Does anyone have a solution to replace my formula with something else?
I need to calculate the average of all data in column H in every sheet, if column A in every sheet equals to A3 in Total (same date), if column B in every sheet doesn't have the value "x" and if column C in every sheet is not empty.
=SUMPRODUCT(SUMIFS(INDIRECT("'"&SHEETS&"'!H:H");INDIRECT("'"&SHEETS&"'!A:A");A3;INDIRECT("'"&SHEETS&"'!B:B");"<>x";INDIRECT("'"&SHEETS&"'!C:C");"<>"))/SUMPRODUCT(COUNTIFS(INDIRECT("'"&SHEETS&"'!A:A");A3;INDIRECT("'"&SHEETS&"'!B:B");"<>x";INDIRECT("'"&SHEETS&"'!C:C");"<>"))
Thanks in advance.