#1   Report Post  
Kim via OfficeKB.com
 
Posts: n/a
Default 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   Report Post  
Jason Morin
 
Posts: n/a
Default

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   Report Post  
Kim via OfficeKB.com
 
Posts: n/a
Default

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   Report Post  
Jason Morin
 
Posts: n/a
Default

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   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

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   Report Post  
Kim via OfficeKB.com
 
Posts: n/a
Default

Thanks everyone, got it to work!

--
Message posted via http://www.officekb.com
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have A Letter Reference A Name For An Intoduction travelersway New Users to Excel 2 February 16th 05 05:47 PM
How do I set up having a letter = a value? Peo Sjoblom Excel Discussion (Misc queries) 0 January 31st 05 06:17 PM
Replace Letter "E" with Letter "C" for 200 Different Sums in a Col Katherine Excel Worksheet Functions 1 January 21st 05 02:53 AM
Letter format Ratowl Excel Discussion (Misc queries) 3 December 5th 04 12:23 AM
Function / formula to be used if cell contains a letter. Cameron Stewart Excel Worksheet Functions 2 November 2nd 04 12:12 AM


All times are GMT +1. The time now is 03:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"