+ Reply to Thread
Results 1 to 2 of 2

Sum numbers with certain combination of letters

  1. #1
    Registered User
    Join Date
    10-09-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    1

    Sum numbers with certain combination of letters

    hello there everyone, could someone tell me the formula to sum up numbers with two combination of letters, Example:
    A
    1 5hr
    2 8ps
    3 2ws
    4 3hr
    5 2ps

    total 8hr
    total 11ps
    total 2ws

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Sum numbers with certain combination of letters

    It would be best to separate the numbers from the text then perform the sums.
    Assuming the values are in cells A1:A5, in:

    B1: =MID(A1,1,LEN(A1)-2)+0
    C1: =RIGHT(A1,2)

    Create a list of the unique 2-letter text strings then use SUMIF on the range B1:C5

    =SUMIF($C$1:$C$5,"hr",$B$1:$B$5)
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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