+ Reply to Thread
Results 1 to 2 of 2

Help with this formula

  1. #1
    Darren
    Guest

    Help with this formula

    I have the following formula: =AVERAGE('MD 1'!J16,'MD 2'!J8,'MD 3'!J8,'MD
    4'!J8,'MD 5'!J8,'MD 6'!J8,'MD 7'!J8,'MD 8'!J8,'MD 9'!J8,'MD 10'!J8,'MD
    11'!J8,'MD 12'!J8,'MD 13'!J8,'MD 14'!J8,' MD 15'!J8,'MD 16'!J8,'MD 17'!J8,'MD
    18'!J8,'MD 19'!J8,'MD 20'!J8) . It calculates the average from the
    appropriate cell value from each of the 20 worksheets. However, how do I
    correct the formula so if no data is in a cell, I do not get the #DIV/0 error
    message?

  2. #2
    Bernie Deitrick
    Guest

    Re: Help with this formula

    Darren,

    Move MD 1's J16 to J8, and use the formula

    =AVERAGE('MD 1:MD 20'!J8)

    This formula will ignore blanks, and only return an error if all the cells are blank.

    HTH,
    Bernie
    MS Excel MVP


    "Darren" <Darren@discussions.microsoft.com> wrote in message
    news:83432E7D-603D-48CB-93BF-E5294498B0F9@microsoft.com...
    >I have the following formula: =AVERAGE('MD 1'!J16,'MD 2'!J8,'MD 3'!J8,'MD
    > 4'!J8,'MD 5'!J8,'MD 6'!J8,'MD 7'!J8,'MD 8'!J8,'MD 9'!J8,'MD 10'!J8,'MD
    > 11'!J8,'MD 12'!J8,'MD 13'!J8,'MD 14'!J8,' MD 15'!J8,'MD 16'!J8,'MD 17'!J8,'MD
    > 18'!J8,'MD 19'!J8,'MD 20'!J8) . It calculates the average from the
    > appropriate cell value from each of the 20 worksheets. However, how do I
    > correct the formula so if no data is in a cell, I do not get the #DIV/0 error
    > message?




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1