+ Reply to Thread
Results 1 to 11 of 11

Sumproduct, extract numbers within text

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2016
    Posts
    5

    Sumproduct, extract numbers within text

    Hi,

    I receive an automatic dump of data on a weekly basis that looks like the below Table A. Basically, the first column is by category and the remaining columns are by week. How would I sum the hours (found within the text) into Table B, which would summarize it by category (A,B,C) and Type (Submitted, Approval, Invoice, etc)? Any help would be highly appreciated. I've taken a stab at this but just can't figure it out. I've attached an excel file with the yellow highlights in table B showing the final results I'm looking for.


    Screenshot 2018-08-28 at 20.27.42.png
    Attached Files Attached Files
    Last edited by scorps10; 08-28-2018 at 01:39 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Sumproduct, extract numbers within text

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Sumproduct, extract numbers within text

    Thanks for the advice Ali. I've revised my posts accordingly.

  4. #4
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Sumproduct, extract numbers within text

    Hi,

    How many "Week" Columns will you need to Sum?

  5. #5
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Sumproduct, extract numbers within text

    Hi, to all!

    You could try this array formula in F4:
    =SUM(($A$3:$A$18=$E4)*IFERROR(1/(1/SUBSTITUTE($B$3:$C$18,F$3&" (HRS : ","")),))

    And drag it down and right. Check file with the formula. Blessings!
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,396

    Re: Sumproduct, extract numbers within text

    @ scorps10

    Your profile shows Excel 2003 but the upload is in a newer format. Please update your profile. It helps us when suggesting solutions.
    Dave

  7. #7
    Registered User
    Join Date
    07-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Sumproduct, extract numbers within text

    Jtakw,

    It can be as many as 15 to 20.

  8. #8
    Registered User
    Join Date
    07-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Sumproduct, extract numbers within text

    FlameRetired,

    Updated my profile.

    Thanks

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,396

    Re: Sumproduct, extract numbers within text

    Thank you. That helps.

  10. #10
    Registered User
    Join Date
    07-18-2013
    Location
    canada
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Sumproduct, extract numbers within text

    Johnmpl,

    That works wonderfully. You saved me hours of work. Thank you so much!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Sumproduct, extract numbers within text

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Extract the text and numbers basis on specific numbers included
    By Neilesh Kumar in forum Excel General
    Replies: 6
    Last Post: 08-26-2018, 01:34 PM
  2. [SOLVED] Extract two numbers from text if two numbers exist
    By maym in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-02-2017, 01:08 PM
  3. [SOLVED] extract text and numbers
    By Latha Mani in forum Excel General
    Replies: 6
    Last Post: 01-14-2014, 09:20 AM
  4. Extract numbers from text
    By faris_dxb in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-10-2009, 12:58 PM
  5. Extract numbers from cell with Text and Numbers
    By wiredwrx in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-18-2006, 06:00 PM
  6. [SOLVED] How do I extract numbers from a cell with both text and numbers?
    By SHANNON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2005, 10:35 PM
  7. [SOLVED] extract numbers from cell containing text & numbers
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2005, 03:10 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