+ Reply to Thread
Results 1 to 16 of 16

Add cells with letter & numbers in the cell

  1. #1
    Registered User
    Join Date
    07-30-2008
    Location
    New York
    Posts
    7

    Add cells with letter & numbers in the cell

    Hello I'am trying to add a row of cell that contain a letter befor the number
    I need to add-up the numbers and ignore the letter

    Thanks for your help in advance
    Will

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Will2839

    ...and welcome to the forum!!

    Could you provide an example of what type of information is contained in these cells. What's the format of the cells, always the same letter, ever any more than one letter etc?

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    If it is always just one letter, try
    Please Login or Register  to view this content.
    confirmed with Ctrl+Shift+Enter.

  4. #4
    Registered User
    Join Date
    07-30-2008
    Location
    New York
    Posts
    7
    In the row of cells,Sometimes there will be an R in the cell with a number.
    Always a R and It could be before or after the number it would not matter
    I would need to add these cells that have an R in them.and add the number part of the cell

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    OK, try
    Please Login or Register  to view this content.
    confirmed with Ctrl+Shift+Enter

  6. #6
    Registered User
    Join Date
    07-30-2008
    Location
    New York
    Posts
    7
    Sorry DARKYAM . That one did not work
    Would you have something else

  7. #7
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    It works for me when I try it. Did you hit Ctrl+Shift+Enter after you entered the formula or just Enter? Also, if these "R"s can be either uppercase or lowercase, the formula would have to be adjusted to
    Please Login or Register  to view this content.
    confirmed with Ctrl+Shift+Enter.
    If neither of these is the issue, could you please post a sample workbook with the results or tell us what is happening when you try the formula?

  8. #8
    Registered User
    Join Date
    07-30-2008
    Location
    New York
    Posts
    7
    Sorry DARKYAM .
    That one did not work
    Would you have something else

  9. #9
    Registered User
    Join Date
    07-30-2008
    Location
    New York
    Posts
    7
    just enter,i'll try it again

  10. #10
    Registered User
    Join Date
    07-30-2008
    Location
    New York
    Posts
    7
    Sorry Darkyam,
    It come up with a value error

  11. #11
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Can you please post a sample of the data you're working with that shows this error?

  12. #12
    Registered User
    Join Date
    07-30-2008
    Location
    New York
    Posts
    7
    =SUM(SUBSTITUTE(AF11,"R"," ")+0)
    This works on 1 cell i cant get it to work on a row E6:AI6

    Any thoughts

  13. #13
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Without seeing a workbook, it is hard to pinpoint the issue. I would replace the " " with "", but if it is working for one cell, then it doesn't appear to be the problem. Does your formula have curly brackets {} around it? These come when you confirm the formula with Ctrl+Shift+Enter but disappear any time you try to edit the formula. If they are not there, please add them by confirming the formula again. If this does not solve your issue, posting the workbook is the best way to get this solved.

  14. #14
    Registered User
    Join Date
    09-19-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Add cells with letter & numbers in the cell

    What would the formula be with any letter? I used both of the samples above for my document and it worked. But I frequently have values that consist of numbers with different letters.

    Thanks.

  15. #15
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Add cells with letter & numbers in the cell

    bautista,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  16. #16
    Registered User
    Join Date
    09-19-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Add cells with letter & numbers in the cell

    Sorry...thought it made more sense to continue the same line of questioning rather than start a new one.

    Thanks.

+ 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