+ Reply to Thread
Results 1 to 4 of 4

Extracting numbers from text in cell range and summing them up using SUMPRODUCT

  1. #1
    Registered User
    Join Date
    04-14-2017
    Location
    Brno
    MS-Off Ver
    2013
    Posts
    2

    Extracting numbers from text in cell range and summing them up using SUMPRODUCT

    Hello,

    I'm trying to extract hours of education (i.e., 4.58, 2 and 3.5) from cells A2:A6 and add them up in one formula using SUMPRODUCT. I'd like to do all this in one cell only. If I use a helper column B then simple SUM or SUMPRODUCT are straightforward, giving a correct total of 10.08 hours in cell E1. However, if I omit the helper column B, I end up with just 4.58 hours (cell E2). For the life of me, I've not been able to determine how to incorporate the range A2:A6 into the SUMPRODUCT formula in E2 (see below).

    Please Login or Register  to view this content.
    Please see attached spreadsheet.

    Any advice on how to resolve this is more than welcome.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,145

    Re: Extracting numbers from text in cell range and summing them up using SUMPRODUCT

    Keep life simple and use two columns.

    It is not good practice to use columns (fields) to serve more than one purpose.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Extracting numbers from text in cell range and summing them up using SUMPRODUCT

    Try this ...

    =SUM(IFERROR(--REPLACE(SUBSTITUTE(A2:A6,")",""),1,FIND("(",A2:A6),""),0))

    Enter with Ctrl+Shift+Enter.

  4. #4
    Registered User
    Join Date
    04-14-2017
    Location
    Brno
    MS-Off Ver
    2013
    Posts
    2

    Re: Extracting numbers from text in cell range and summing them up using SUMPRODUCT

    Thank you Phuocam. It works. Much appreciated

+ 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. Extracting numbers from cell with text
    By nomnomnumbers in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2016, 08:47 AM
  2. Extracting date range (Start and end dates) from text within a cell
    By pcarignan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-26-2016, 04:20 PM
  3. Extracting text within a Cell range based on conditions.
    By Danielc1234 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-23-2016, 08:09 PM
  4. Extracting Numbers From Text Range And Sorting Numerically
    By jon87 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-29-2012, 10:15 AM
  5. Replies: 17
    Last Post: 03-03-2010, 06:55 PM
  6. Summing a range of numbers in a list of numbers
    By gemnnsw in forum Excel General
    Replies: 3
    Last Post: 02-03-2008, 12:58 PM
  7. [SOLVED] Sumproduct not working when summing values between two numbers
    By FlamencoKid in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-13-2005, 01:05 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