+ Reply to Thread
Results 1 to 10 of 10

Averaging non consecutive cells

  1. #1
    Registered User
    Join Date
    12-13-2024
    Location
    Harare, Zimbabwe
    MS-Off Ver
    office 2016
    Posts
    66

    Averaging non consecutive cells

    I am attempting to get an average of multiple non consecutive cells, ignoring anything that is equal to '0'. The cell distance apart is not fixed and may vary. I have tried this formula SUM(S23,S31,S39,S47,S51)/INDEX(FREQUENCY((S23,S31,S39,S47,S51),0),2) but its returning DIV/0 . May you please help. Thanks
    Last edited by Paul S Ncube; 01-03-2025 at 10:25 AM.

  2. #2
    Registered User
    Join Date
    12-13-2024
    Location
    Harare, Zimbabwe
    MS-Off Ver
    office 2016
    Posts
    66

    Re: Averaging non consecutive cells

    I am attempting to get an average of multiple non consecutive cells, ignoring anything that is equal to '0'. The cell distance apart is not fixed and may vary. May you please help. Thanks

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,977

    Re: Averaging non consecutive cells

    Still using Excel 2016?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Contributor
    Join Date
    10-05-2024
    Location
    Ukraine
    MS-Off Ver
    2021
    Posts
    101

    Re: Averaging non consecutive cells

    Hello! Do not see how your data is difficult to say. For example
    Please Login or Register  to view this content.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Averaging non consecutive cells

    The formula will only give #DIV/0! if the cells are all blank and/or zero.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    seems unnecessarily complex, IMO.

    Maybe try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You can always use IFERROR to mask the error, but, if there's no data, there's no data, and no average.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Registered User
    Join Date
    12-13-2024
    Location
    Harare, Zimbabwe
    MS-Off Ver
    office 2016
    Posts
    66

    Re: Averaging non consecutive cells

    I have tried the suggested formula but am still returning zero. i have attached a copy of my data for clarity.
    Attached Files Attached Files
    Last edited by Paul S Ncube; 01-04-2025 at 03:42 AM.

  7. #7
    Registered User
    Join Date
    12-13-2024
    Location
    Harare, Zimbabwe
    MS-Off Ver
    office 2016
    Posts
    66

    Re: Averaging non consecutive cells

    please use this recent attachment for referencing. it has a detailed explanation of what I want to achieve.
    Attached Files Attached Files
    Last edited by Paul S Ncube; 01-04-2025 at 03:53 AM.

  8. #8
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,928

    Re: Averaging non consecutive cells

    Perhaps,
    D15
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-13-2024
    Location
    Harare, Zimbabwe
    MS-Off Ver
    office 2016
    Posts
    66

    Re: Averaging non consecutive cells

    brilliant, spot on, you nailed it right to the bone. thank you so much. I had reached my potential.

  10. #10
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,928

    Re: Averaging non consecutive cells

    You are welcome.

+ 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. [SOLVED] Help with averaging
    By ReineM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-25-2019, 05:44 PM
  2. Complicated averaging-- averaging data that matches certain intervals
    By atung in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-22-2014, 04:19 PM
  3. Averaging help
    By cmorrison in forum Excel General
    Replies: 1
    Last Post: 08-17-2011, 03:23 PM
  4. Averaging
    By rena in forum Excel General
    Replies: 3
    Last Post: 10-12-2006, 10:52 PM
  5. [SOLVED] Help with averaging
    By GTVT06 in forum Excel General
    Replies: 2
    Last Post: 08-15-2006, 09:30 PM
  6. [SOLVED] averaging
    By timbrook in forum Excel General
    Replies: 1
    Last Post: 07-20-2006, 09:45 AM
  7. Averaging
    By waterwayz in forum Excel General
    Replies: 5
    Last Post: 07-11-2005, 11:05 AM

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