+ Reply to Thread
Results 1 to 9 of 9

average last 8 values of a columns as new numbers entering

  1. #1
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    93

    average last 8 values of a columns as new numbers entering

    hello,
    I guess I know how to find average or sum or nth rows, it always shows average of last 8 rows.
    but wondering if it is possible getting last 8 columns average of the numbers in a range ?
    like what si average for 1, or 2, or 10 in last 8 rows?

    Thank you screenshot.6114.jpg
    Attached Files Attached Files
    Last edited by Excl3454; 04-19-2021 at 05:26 PM.

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

    Re: average last 8 values of a columns as new numbers entering

    Assuming there are no blanks in your data
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    93

    Re: average last 8 values of a columns as new numbers entering

    Thank you so much.
    is it possible to get average of a value ( for example number 20) in the last 8 columns (yellow highlighted) ? Thanks again

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

    Re: average last 8 values of a columns as new numbers entering

    So you want last 8 rows, last 8 columns?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    93

    Re: average last 8 values of a columns as new numbers entering

    yes great,,i really appropriate your time and help
    I was looking for last 8 rows in 6 columns,i dont know offsets but i guss just change 8,8,8 to 8,8,6?
    Can get percentage of values from A3:A11 for the last 8 entries? like percentage of Number 20 is last 8 columns from C to H?

    Thanks

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

    Re: average last 8 values of a columns as new numbers entering

    =AVERAGE(OFFSET($C$3,COUNT($C:$C)-8,COUNT($C$3:$ZZ$3)-6,8,6))

    I have no idea what the numbers in Column A represent or what percentage of what cells (Summed? Averaged?) you want. Maybe a few example calculations?

  7. #7
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    93

    Re: average last 8 values of a columns as new numbers entering

    counting numbers in last 8 rows.. sample attached and thanks again

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: average last 8 values of a columns as new numbers entering

    I assum that data row can expand till 100

    =SUMPRODUCT((ROW($C$2:$H$100)>=(COUNT($C$2:$C$100)-8+2))*($C$2:$H$100=A2))

    with 8 is given order number, 2 is starting row or data (Cell C2)
    Last edited by bebo021999; 04-20-2021 at 03:39 AM.
    Quang PT

  9. #9
    Registered User
    Join Date
    01-29-2021
    Location
    Canada
    MS-Off Ver
    2019
    Posts
    93

    Re: average last 8 values of a columns as new numbers entering

    Quote Originally Posted by bebo021999 View Post
    I assum that data row can expand till 100

    =SUMPRODUCT((ROW($C$2:$H$100)>=(COUNT($C$2:$C$100)-8+2))*($C$2:$H$100=A2))

    with 8 is given order number, 2 is starting row or data (Cell C2)
    Thank you so much.. Perfect and thanks for explanation ,,,

+ 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] Average together two columns, including only numbers between two values
    By labratto in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-10-2021, 12:32 PM
  2. [SOLVED] Average if values in adjacent columns is >0 AND adjust the average range each time
    By ew17 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2020, 12:56 PM
  3. Finding average of values that are not numbers
    By kyopsis23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2014, 02:35 PM
  4. [SOLVED] If values in a column are equal, then need to calc average of values in other columns
    By engineerlady in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2013, 02:33 PM
  5. Replies: 6
    Last Post: 01-07-2013, 08:58 PM
  6. [SOLVED] VBA to restrict entering duplicate values in 2 different columns individually
    By Kiran_555 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2012, 08:07 PM
  7. VBA to restrict entering duplicate values in 2 different columns individually
    By Kiran_555 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-16-2012, 01:39 AM

Tags for this Thread

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