+ Reply to Thread
Results 1 to 6 of 6

Sum with letter

  1. #1
    Kim via OfficeKB.com
    Guest

    Sum with letter

    Hi there,

    This may not be possible, but I figured that I would ask anyways.

    Is there a way to sum values that contain a letter? For example:
    4T + 5T = 9T or even just 9 as the end result would be ok.

    Any tips or suggestions would be appreciated.

    Thanks!

    --
    Message posted via http://www.officekb.com

  2. #2
    Jason Morin
    Guest

    Re: Sum with letter

    It's possible, but the formula really depends on the
    standard format. Is it always some number followed by
    a "T"? If so, try:

    =SUMPRODUCT(SUBSTITUTE(A1:A10,"T","")+0)

    More detail and examples are necessary if the data is
    more complex than what I've described.

    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >Hi there,
    >
    >This may not be possible, but I figured that I would ask

    anyways.
    >
    >Is there a way to sum values that contain a letter? For

    example:
    >4T + 5T = 9T or even just 9 as the end result would be

    ok.
    >
    >Any tips or suggestions would be appreciated.
    >
    >Thanks!
    >
    >--
    >Message posted via http://www.officekb.com
    >.
    >


  3. #3
    Kim via OfficeKB.com
    Guest

    Re: Sum with letter

    Hi Jason,

    Yes, that is always the format. I just tried entering the formula and I
    get a Value Error. Any ideas?

    Thanks,
    Kim

    --
    Message posted via http://www.officekb.com

  4. #4
    Jason Morin
    Guest

    Re: Sum with letter

    The error means you have some empty cells in A1:A10.
    Remove the empty cells or use:

    =SUM(IF(A1:A10<>"",SUBSTITUTE(A1:A10,"T","")+0,0))

    This one is an array formula, which means insteand of
    just pressing enter, confirm it with ctrl + shift +
    enter. XL will automatically places {} around the formula.

    Jason

    >-----Original Message-----
    >Hi Jason,
    >
    >Yes, that is always the format. I just tried entering

    the formula and I
    >get a Value Error. Any ideas?
    >
    >Thanks,
    >Kim
    >
    >--
    >Message posted via http://www.officekb.com
    >.
    >


  5. #5
    Aladin Akyurek
    Guest

    Re: Sum with letter

    Jason Morin wrote:
    > The error means you have some empty cells in A1:A10.
    > Remove the empty cells or use:
    >
    > =SUM(IF(A1:A10<>"",SUBSTITUTE(A1:A10,"T","")+0,0))
    >
    > This one is an array formula, which means insteand of
    > just pressing enter, confirm it with ctrl + shift +
    > enter. XL will automatically places {} around the formula.

    [...]

    No need to switch...

    =SUMPRODUCT(SUBSTITUTE(0&A1:A10,"T","")+0)

  6. #6
    Kim via OfficeKB.com
    Guest

    Re: Sum with letter

    Thanks everyone, got it to work!

    --
    Message posted via http://www.officekb.com

+ 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