+ Reply to Thread
Results 1 to 2 of 2

SUM only the numbers if cell contains the text as well... Please read to understand

Hybrid View

  1. #1
    Registered User
    Join Date
    09-04-2014
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    1

    SUM only the numbers if cell contains the text as well... Please read to understand

    Hello!

    I couldn't find the solution anywhere, so hope somebody here will be able to help...

    I have quite complex table and want to have more analysys on data but stuck as I'm not that advanced.

    Table looks following way
    Store Name / Week No. 1 2 3 4 TOTAL SALES???
    Dublin Mary/F/10 Patrick/S/23 Thomas/U/2 10+23+2
    London Patrick/S/5 Thomas/S/13 5+13
    Amsterdam Mary/S/9 Mary/F/10 9+10

    So each cell contains the Sales Person Name/Day of the week/Units sold

    I need to have some advanced SUM formula in TOTAL SALES column, just wondering if that is actually possible?

    Thank everyone in advance!!!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: SUM only the numbers if cell contains the text as well... Please read to understand

    With your sample data in A1:F4
    Store Name/WeekNo    1              2               3             4          Total Sales
    Dublin               Mary/F/10      Patrick/S/23    Thomas/U/2                    
    London               Patrick/S/5    Thomas/S/13                              
    Amsterdam            Mary/S/9       Mary/F/10
    This regular formula, copied down, begins the list of row totals
    F2: =SUMPRODUCT(--TRIM(RIGHT(SUBSTITUTE("/"&B2:E2,"/","     0"),4)))
    With that data, these are the results:
    Total Sales
    35
    18
    19
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

+ 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. Macro to read just the text in a cell containing text and numbers
    By rjm87 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-10-2014, 08:09 PM
  2. Help with formula - Cant understand the numbers
    By constructionsheets in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2014, 05:35 PM
  3. [SOLVED] Code to Properly Format numbers stored as text so they can be read by a formula
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2013, 05:06 PM
  4. Replies: 2
    Last Post: 12-30-2011, 06:22 PM
  5. Numbers read as text
    By anandmr65 in forum Excel General
    Replies: 5
    Last Post: 02-01-2006, 07:45 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