+ Reply to Thread
Results 1 to 5 of 5

Formula to Average column D:D that contains a combination of numbers, text and blank cells

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2012
    Posts
    11

    Question Formula to Average column D:D that contains a combination of numbers, text and blank cells

    I need to write a formula that will average the numbers in column D. The formula needs to ignore anything in D:D that is text or any cell that is blank. Note, the formula needs to deal with the entire column D (thus, the D:D) because the amount of data varies widely.
    Attached Files Attached Files

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula to Average column D:D that contains a combination of numbers, text and blank c

    not sure what you mean
    =AVERAGE(D:D)
    should work fine, if you look in the help of Excel it shows that
    If a range or cell reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
    if your data contains errors, it will fail, but text and blanks get ignored
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    11-20-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2012
    Posts
    11

    Re: Formula to Average column D:D that contains a combination of numbers, text and blank c

    Apologies for the example. A simple =AVERAGE would handle that. BUT the actual spreadsheet I'm working for refers to other locations in the data. It averages when it is just the numbers being referenced, but does not when the text is in the mix. Give me a moment to go and edit the file and edit it for better review.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Formula to Average column D:D that contains a combination of numbers, text and blank c

    Tested this: I think it will give you what you want

    =AVERAGE(D5:D241)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Formula to Average column D:D that contains a combination of numbers, text and blank c

    well if you insist, but the AVERAGE(D:D) still works, it is based on the value of the cell, not how it is derived,text and blanks get ignored, just as your OP says you want....if you only want cells based on specific criteria, then maybe averageif or averageifs,

+ 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: 14
    Last Post: 06-14-2013, 09:00 PM
  2. Average Numbers in Column Until Blank Cell
    By chouston in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2013, 07:34 PM
  3. Average of next 6 non blank cells in a column.
    By hackboy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-15-2012, 10:44 AM
  4. Replies: 3
    Last Post: 04-09-2012, 02:53 PM
  5. Replies: 4
    Last Post: 05-27-2009, 09:34 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