+ Reply to Thread
Results 1 to 3 of 3

Average Ignoring Zero Values - Non-consecutive cells

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    3

    Average Ignoring Zero Values - Non-consecutive cells

    Hi

    Looking for some help.

    I have a worksheet which has various figures for each Year however I need to average these figures which are not in a range which ignores any zero values

    I have attached a test sheet as an example.

    Thanks

    Ahmed
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Average Ignoring Zero Values - Non-consecutive cells

    Hi,

    some possible formula

    =(B3+D3+F3+H3)/((B3<>0)+(D3<>0)+(F3<>0)+(H3<>0))

    =SUM(INDEX(B3:I3*(MOD(COLUMN(B3:I3),2)=0),))/SUM(INDEX((B3:I3<>0)*(MOD(COLUMN(B3:I3),2)=0),))

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,767

    Re: Average Ignoring Zero Values - Non-consecutive cells

    Try this...

    =SUMPRODUCT(1*ISEVEN(COLUMN(B3:H3)),B3:H3)/SUMPRODUCT(ISEVEN(COLUMN(B3:H3))*(B3:H3>0))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 12-04-2013, 04:54 AM
  2. [SOLVED] Excel 2010 Average Ignoring Zero Values - Non-consecutive cells
    By lanos in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-23-2013, 07:28 PM
  3. [SOLVED] Average for non-consecutive cells, excluding zero values.
    By musik7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2013, 06:11 PM
  4. Conditional weighted average ignoring #N/A values
    By syoung27 in forum Excel General
    Replies: 4
    Last Post: 02-22-2012, 10:48 AM
  5. Replies: 3
    Last Post: 06-17-2010, 03:04 PM

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