+ Reply to Thread
Results 1 to 3 of 3

if averageA function

  1. #1
    Registered User
    Join Date
    11-10-2006
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    20

    Lightbulb if averageA function

    Im trying to figure out an average function for data loss in a spreadsheet with a nested if as well.
    Its a common "reset" issue with meters. I have figured out a simple nested if for any "roll-over" known meter values but not a full unpredicted blank "reset" issue.

    Any guidance is welcome.



    Ifaverage function
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: if averageA function

    I think I'm following the formula in E27 but to be sure could you update it to refer to C,D and E instead of AU and AW?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: if averageA function

    Okay, what I think you are trying to do, if the value in C is less than previous value, then sum all occurances in E since last reset plus the current value in C and divide by count of those values (including counting current value in C). Do I have that right?

    Here's what I did, In F5 copied down
    =IF(C5<C4,1,"")
    In E6 copied downd

    =IF(C6="","-",IF(C6<C5, (SUM(INDEX($E$5:$E$5, MATCH(1, $F$5:$F5)):$E5)+C6)/(ROW()-MATCH(1,$F$1:F5)+1), C6-D6))
    See attachment
    Attached Files Attached Files

+ 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: 1
    Last Post: 06-10-2015, 12:56 PM
  2. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  3. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  6. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM
  7. AVERAGEA Function
    By Chris921 in forum Excel General
    Replies: 2
    Last Post: 03-01-2006, 01:35 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