+ Reply to Thread
Results 1 to 3 of 3

countif greater than X from the last 25 non blank data entries

  1. #1
    Registered User
    Join Date
    09-02-2015
    Location
    sydney
    MS-Off Ver
    2013
    Posts
    2

    countif greater than X from the last 25 non blank data entries

    Hi,

    I'm looking to find the number of values above a certain number from the last 25 data points which are non blank. Usually i would use the COUNTIF function to find those greater than a value. I'm using the below formula to create the average of the last 25 non blank cells for a different purpose in the sheet. I now need the count/number of the 25 entries above a designated value {=AVERAGE(IF(ROW(I38:I20006)>=LARGE(IF(I38:I20006<>"",ROW(I38:I20006)),MIN(COUNT(I38:I20006),25)),IF(I38:I20006<>"",I38:I20006)))}
    The problem i'm having is replacing the average with COUNTIF and entering the criteria as below or another variation of fails. Im quite new to excel and couldn't come up with any alternative formulas to create the range for the countif function
    =COUNTIF(IF(ROW(I38:I20006)>=LARGE(IF(I38:I20006<>"",ROW(I38:I20006)),MIN(COUNT(I38:I20006),25)),IF(I38:I20006<>"",I38:I20006)),>I29))

    Thanks

    Ben

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: countif greater than X from the last 25 non blank data entries

    =countif(index(i:i,max(large(index(row(i38:i20006)*(i38:i20006<>""),0),25),min(row(i38:i20006)))):index(i:i,max(index(row(i38:i20006),0))),">"&i29)
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    09-02-2015
    Location
    sydney
    MS-Off Ver
    2013
    Posts
    2

    Re: countif greater than X from the last 25 non blank data entries

    thanks very much Siva

+ 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. countif greater than on filtered data, then copy the result
    By extremis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 01:48 PM
  2. Restrict data entry if preceeding cell value is greater than or blank
    By GreggTO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2013, 11:46 AM
  3. Remove blank entries from data validation list
    By Icarus in forum Excel General
    Replies: 7
    Last Post: 11-08-2012, 01:56 AM
  4. Retieve data ignoring blank entries
    By swanseaexcel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2011, 04:46 AM
  5. Replies: 3
    Last Post: 10-18-2010, 11:09 AM
  6. [SOLVED] Need to obtain sum of last X entries that are greater than 0
    By Blue 58 in forum Excel General
    Replies: 2
    Last Post: 02-18-2006, 07:55 AM
  7. Replies: 1
    Last Post: 01-30-2006, 02:15 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