+ Reply to Thread
Results 1 to 5 of 5

Find Average of Last 4 Numbers Ignoring Text

  1. #1
    Registered User
    Join Date
    10-19-2016
    Location
    Orlando, FL
    MS-Off Ver
    2010 Ver 14.0.7173.5000
    Posts
    2

    Find Average of Last 4 Numbers Ignoring Text

    Player W1 W2 W3 W4 W5 W6
    Bob 10 20 30 BYE 50 60

    Avg should be 40, closest I have works fine with blanks but not if there's text.
    =SUM(INDEX(2:2,LARGE(INDEX((B2:Q2<>"")*COLUMN(B2:Q2),0),MIN(4,COUNT(B2:Q2)))):Q2)/4

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find Average of Last 4 Numbers Ignoring Text

    Try changing

    B2:Q2<>""
    to
    ISNUMBER(B2:Q2)

  3. #3
    Registered User
    Join Date
    10-19-2016
    Location
    Orlando, FL
    MS-Off Ver
    2010 Ver 14.0.7173.5000
    Posts
    2

    Re: Find Average of Last 4 Numbers Ignoring Text

    Sweet, that worked! Thank you!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Find Average of Last 4 Numbers Ignoring Text

    You're welcome.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Find Average of Last 4 Numbers Ignoring Text

    Try one of these...

    =SUM(INDEX(2:2,LARGE(INDEX((ISNUMBER(B2:Q2)*COLUMN(B2:Q2)),0),MIN(4,COUNT(B2:Q2)))):Q2)/4

    Or, this array formula**:

    =SUM(INDEX(2:2,LARGE(IF(ISNUMBER(B2:Q2),COLUMN(B2:Q2)),MIN(4,COUNT(B2:Q2)))):Q2)/4

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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 same cells on different sheets ignoring any containing text
    By Ochimus in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-03-2015, 10:50 PM
  2. how to sum numbers formated as a text ignoring text in cells
    By luis6777 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-30-2014, 01:45 PM
  3. [SOLVED] Average last n numbers ignoring blanks
    By Cryptic in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-06-2013, 07:05 AM
  4. Find average of K nearest neighbours ignoring blanks
    By tucanj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2013, 10:01 PM
  5. [SOLVED] Ignoring DIVI0! to find average.
    By gocolonel77 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2013, 09:18 PM
  6. Replies: 3
    Last Post: 03-20-2012, 09:53 PM
  7. ignoring #N/A numbers when doing AVERAGE()
    By FortuneSyn in forum Excel General
    Replies: 2
    Last Post: 03-11-2010, 03:47 PM

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