+ Reply to Thread
Results 1 to 5 of 5

Avoiding text in an array formula when using the SUM function

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Avoiding text in an array formula when using the SUM function

    Hi,

    I have a problem with an array formula where I want to sum the values in every 7th row. The problem I have is I am receiving #VALUE! in my returing cell of the formula when there is text in the array. Is there a way I can avoid including the text in the array or maybe error checking using ISERROR and ISNUMBER.

    The array formula I am entering is:

    Please Login or Register  to view this content.
    thanks

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Avoiding text in an array formula when using the SUM function

    Please Login or Register  to view this content.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Avoiding text in an array formula when using the SUM function

    Hi and welcome to the forum!

    You could use (array-entered):

    =SUM(IF(ISNUMBER(C8:C192),C8:C192*(MOD(ROW(C8:C192),7)=0)))

    On a side note, I take it you're aware that, should your ranges change, a construction such as MOD(ROW(Range),7, although it will continue to give you the desired "every seventh row", may not necessarily begin on your desired starting cell?

    If this is something which may become a factor, and it's always the 7th, 14th, 21st, etc. cells which are to be considered, whatever the range, you will need to use e.g.:

    =SUM(IF(ISNUMBER(Range),Range*(MOD(ROW(Range)-MIN(ROW(Range))+1,7)=0)))

    Regards
    Last edited by XOR LX; 02-04-2014 at 06:22 PM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    09-14-2012
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Avoiding text in an array formula when using the SUM function

    Thanks both rcm & XOR LX for your replies. I tried XOR LX first option and it worked perfectly. I've also noted the second option for future reference but the first will do for now. thanks a million.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Avoiding text in an array formula when using the SUM function

    You're welcome.

+ 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. Avoiding double-count of cells with similar text
    By MJCharaf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-10-2013, 11:23 AM
  2. Chart titles: avoiding crashes and use of pre-built text
    By studiosa in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-29-2012, 10:52 AM
  3. Avoiding a Nesting If function
    By dumpster1985 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2011, 04:53 AM
  4. Turn Text into an array function
    By gwiz in forum Excel General
    Replies: 3
    Last Post: 02-02-2008, 04:52 PM
  5. Replies: 1
    Last Post: 08-25-2005, 03:43 AM

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