Share via

Help with excel AVERAGE formula

Spee99 0 Reputation points
2026-05-03T19:45:38.6333333+00:00

Hello,

I need help with the average formula. The average needs to use 3 cells. The first two are on the same sheet where the average is calculated. The third cell is on a different sheet, but if there is no numerical data on that particular cell, the average needs to be calculated using a fourth cell. Here's a more detailed view of what I'm describing:

Sheet 1, cell 1

Sheet 1, cell 2

Sheet 2, cell 3 (and if not data is present here use Sheet 2, cell 4)

Thanks for any help.

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Kristen-L 12,580 Reputation points Microsoft External Staff Moderator
    2026-05-03T21:25:48.0233333+00:00

    Hi @Spee99,

    Thank you for your question about calculating an average in Excel using values from multiple cells and worksheets. Based on your description, the average should include two cells from the same worksheet and conditionally use one of two cells from another worksheet depending on whether numeric data is present.

    You may refer to the solution provided by the Q&A Assist, and I’ve added some additional notes below for clarity.

    You can achieve this by checking whether the cell on Sheet 2 contains a numeric value and then passing the appropriate value into the AVERAGE function:

     

    =AVERAGE(Sheet1!A1, Sheet1!A2, IF(ISNUMBER(Sheet2!A3), Sheet2!A3, Sheet2!A4))
    

     

    • ISNUMBER(Sheet2!A3) checks whether Sheet2!A3 contains a valid numeric value.
    • IF(Sheet2!A3 is numeric, Sheet2!A3, Sheet2!A4) uses Sheet2!A3 when it contains a number; otherwise it automatically falls back to Sheet2!A4.
    • AVERAGE(...) then calculates the average using both cells from Sheet 1 and the selected value from Sheet 2.

    Notes :

    • The AVERAGE function ignores text and blank cells but does include zeros (0).
    • ISNUMBER ensures that only true numeric values are considered and avoids treating text that looks like a number as valid input.

    Please try the formula above and let me know if it works as expected. If you continue to see any issues or have additional questions, feel free to reply and I’ll be happy to assist further.

    As other users will also search for information in this community, your vote can significantly help those with similar inquiries quickly locate the most relevant resources. 

    Thank you for your kindness and for contributing to the forum.   


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".       

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


  2. Q&A Assist
    2026-05-03T19:45:49.95+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Use an AVERAGE formula combined with IF to switch between the two cells on Sheet2.

    Assume:

    • Sheet1 cell1 = A1
    • Sheet1 cell2 = B1
    • Sheet2 cell3 = A1
    • Sheet2 cell4 = B1

    Then in the cell where the average is needed (on Sheet1), use:

    =AVERAGE(A1, B1, IF(ISNUMBER(Sheet2!A1), Sheet2!A1, Sheet2!B1))
    

    Explanation:

    • ISNUMBER(Sheet2!A1) checks whether the “cell 3” on Sheet2 contains numeric data.
    • If it does, IF returns Sheet2!A1.
    • If it does not, IF returns Sheet2!B1 instead.
    • AVERAGE then calculates the average of the two Sheet1 cells and whichever Sheet2 cell is selected.

    Adjust the cell references (A1, B1, etc.) to match the actual layout.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.