+ Reply to Thread
Results 1 to 4 of 4

Sum numbers across range of cells - some have text -

  1. #1
    Registered User
    Join Date
    03-23-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2011
    Posts
    2

    Sum numbers across range of cells - some have text -

    Hi,

    I'm trying to sum - well a SUMIF - of a column - if the criteria allows - but some cells in the column contain text, which I want to disregard. It's throwing errors as it's seeing the text and can't parse.

    Screen Shot.pdf


    What I want to do is count Column H - Number of Days Spent at Level - only if Column B - Level - contains 'Level 201'

    So trying to sum the number of says spent at Level 201 for across all users.

    I'm stuck between 2 formulas - that I need to somehow join together

    =SUMIF(B8:B64,"Level 201",H8:H64)

    =SUM(IF(ISNUMBER(VALUE(LEFT(H8:H64,2))),VALUE(LEFT(H8:H64,2)),VALUE(LEFT(H8:H64,1)))) - This is throwing the error as it gets stuck and doesn't recognise the letters Da - though it should be disregarding them?

    Can anyone help?
    Aisling

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

    Re: Sum numbers across range of cells - some have text -

    I would suggest a helper column (they're not a bad thing)
    Say in I8 and filled down put
    =IFERROR(LEFT(H8,2)+0,"")

    Then do
    =SUMIF(B8:B64,"Level 201",I8:I64)


    If this doesn't quite do it, can you post an actual book, not a picture/pdf ?

  3. #3
    Registered User
    Join Date
    03-23-2017
    Location
    Dublin, Ireland
    MS-Off Ver
    2011
    Posts
    2

    Re: Sum numbers across range of cells - some have text -

    Thanks Jonmo1 - that did the trick - never thought of the Helper column: an obvious step in the logic.
    Much appreciated!

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

    Re: Sum numbers across range of cells - some have text -

    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. [SOLVED] Counting a range of cells that include text and numbers
    By jbourne21 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-30-2015, 05:58 AM
  2. Find sum of a range of cells having both numbers and text
    By Farooque TM in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-26-2015, 07:32 AM
  3. [SOLVED] Dynamic Range accomodating cells with Text and Cells with Numbers
    By Herr Rommel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-18-2015, 01:30 PM
  4. [SOLVED] How do I SUM cells containing text and numbers within a range.
    By l1velife in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2013, 03:01 AM
  5. [SOLVED] Finding median of range of cells containing text and numbers
    By _hs_ in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-18-2013, 12:23 PM
  6. [SOLVED] Change text of one cell based on the numbers of a range of cells?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-18-2013, 04:50 PM
  7. [SOLVED] Ideas for numbers or text in range of cells
    By sctraffic in forum Excel General
    Replies: 4
    Last Post: 07-17-2012, 10:55 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