How to Average Weekly Friday Percentages Across Multiple Sheets in Excel
Question details
The user needs to calculate the average percentage for Friday dates across four different worksheets based on a common date lookup, avoiding zero values or #DIV/0! errors when a date is missing.
- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating weekly reporting metrics (such as percentages) across multiple worksheets based on a specific weekday date.
- Observed behavior
- The user wants the formula to return a blank instead of 0% or a #DIV/0! error when date entries or corresponding percentage values are missing.
Ensure that all your worksheets have consistently formatted date values in the lookup column (e.g., Column A) and that the percentage data you want to extract is correctly formatted as percentages in the target column (e.g., Column I).
Use XLOOKUP and IFERROR to Average Percentages
This method uses XLOOKUP to safely find Friday dates across four sheets, averages the found values, and returns a blank if no data is found or an error occurs.
By wrapping multiple XLOOKUP functions inside an AVERAGE formula, you can pull corresponding values from different sheets. Wrapping the entire formula in IFERROR prevents ugly #DIV/0! errors when data is missing.
Using the fourth argument in XLOOKUP (if_not_found) as an empty string ("") ensures that missing values are ignored during the average calculation.
Create a summary sheet and input your first Friday date in cell A2. Make sure this cell is formatted as a Date.
Click on the cell where you want the average percentage to appear (e.g., B2).
Type the following formula into the formula bar: =IFERROR(AVERAGE(XLOOKUP(A2,Sheet1!$A$2:$A$1000,Sheet1!$I$2:$I$1000,""),XLOOKUP(A2,Sheet2!$A$2:$A$1000,Sheet2!$I$2:$I$1000,""),XLOOKUP(A2,Sheet3!$A$2:$A$1000,Sheet3!$I$2:$I$1000,""),XLOOKUP(A2,Sheet4!$A$2:$A$1000,Sheet4!$I$2:$I$1000,"")),"")
Press Enter to calculate the result. Click the fill handle on the bottom right of the cell and drag downward to apply the formula to subsequent weeks.
Easily Average Multi-Sheet Data with WPS Office
WPS Spreadsheet fully supports advanced functions like XLOOKUP and IFERROR, making it incredibly easy to consolidate weekly data across multiple worksheets.
- 1. Open your workbook: Launch WPS Spreadsheet and open your multi-sheet workbook containing the weekly data.
- 2. Set up the lookup date: In your summary sheet, type your target Friday date into the designated column.
- 3. Enter the XLOOKUP formula: Select the target cell and paste the provided XLOOKUP and AVERAGE formula in the formula bar.
- 4. Copy the formula: Drag the fill handle to copy the formula for all upcoming weeks to automatically fetch and average the data.

Frequently Asked Questions
Why is my XLOOKUP formula returning an error instead of a blank?
This usually happens if the IFERROR function is missing or improperly wrapped around the AVERAGE function. Ensure your formula starts with =IFERROR( and ends with ,"") to catch any calculation errors.
Can I use VLOOKUP instead of XLOOKUP for this task?
Yes, but XLOOKUP is generally easier because it does not require counting column index numbers. If you use VLOOKUP, you will need to wrap it in an IFERROR for each individual sheet lookup to avoid breaking the AVERAGE function when a date is not found.
How do I ensure my dates advance exactly by one week?
In your date column, type your first Friday date in cell A2. In cell A3, type =A2+7 and press Enter. Drag this cell down to generate consecutive Friday dates.
Why is my formula calculating as 0% instead of leaving the cell blank?
If the lookup cell is empty or the destination cell contains a zero, the spreadsheet might average it as a zero. Using "" in the 'if_not_found' argument of XLOOKUP prevents it from feeding a zero into the AVERAGE function.




