Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Summing Text with Numbers

I need to sum a range of cells that will contain both text and numbers. The
text will always be an "s" and the number will be a number between .25 and
10. The entry in the cells to be counted will be entered as "s.25" or
"s.5.5", and the number following the "s." needs to be totaled.

Is there a way to accomplish this using the COUNTIF or SUM functions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Summing Text with Numbers

Hi,

Assuming there are no blank cells in the range you can use

=SUMPRODUCT(MID(A1:A10,2,99)*1)

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"bgcooker" wrote:

I need to sum a range of cells that will contain both text and numbers. The
text will always be an "s" and the number will be a number between .25 and
10. The entry in the cells to be counted will be entered as "s.25" or
"s.5.5", and the number following the "s." needs to be totaled.

Is there a way to accomplish this using the COUNTIF or SUM functions?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Summing Text with Numbers

If "the number following 's.' needs to be totaled", use:
=SUMPRODUCT(MID(A1:A10,3,99)*1)

Regards,
Fred


"Mike H" wrote in message
...
Hi,

Assuming there are no blank cells in the range you can use

=SUMPRODUCT(MID(A1:A10,2,99)*1)

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"bgcooker" wrote:

I need to sum a range of cells that will contain both text and numbers.
The
text will always be an "s" and the number will be a number between .25
and
10. The entry in the cells to be counted will be entered as "s.25" or
"s.5.5", and the number following the "s." needs to be totaled.

Is there a way to accomplish this using the COUNTIF or SUM functions?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Summing Text with Numbers

Mike H -

Thanks for your help. This did not work for me. The formula returned the
#VALUE! comment.

I may not have stated clearly enough what is needed. The cells will have an
"s" entered as text, with a period and a numeric value as part of the string.
The numeric value will be a multiple of .25, up to a maximum of 10. For
example, some entries will be "s.25", "s.5", "s.5.75". Should they all be
shown with the same number of digits, for example: "s.0.25", "s.0.50",
"S.5.75", "s.0.1.00"?

Thank you



"Mike H" wrote:

Hi,

Assuming there are no blank cells in the range you can use

=SUMPRODUCT(MID(A1:A10,2,99)*1)

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"bgcooker" wrote:

I need to sum a range of cells that will contain both text and numbers. The
text will always be an "s" and the number will be a number between .25 and
10. The entry in the cells to be counted will be entered as "s.25" or
"s.5.5", and the number following the "s." needs to be totaled.

Is there a way to accomplish this using the COUNTIF or SUM functions?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Summing Text with Numbers

What if there are blanks in the range?

"bgcooker" wrote:

I need to sum a range of cells that will contain both text and numbers. The
text will always be an "s" and the number will be a number between .25 and
10. The entry in the cells to be counted will be entered as "s.25" or
"s.5.5", and the number following the "s." needs to be totaled.

Is there a way to accomplish this using the COUNTIF or SUM functions?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Summing Text with Numbers

Did you use my formula or Mike's? Mike's will give a #value error with
"s.5.75" whereas mine should work. However, both with fail with "s.0.1.00".
You would need to define what number you think this is.

Length of the number should be immaterial.

Regards,
Fred

"bgcooker" wrote in message
...
Mike H -

Thanks for your help. This did not work for me. The formula returned the
#VALUE! comment.

I may not have stated clearly enough what is needed. The cells will have
an
"s" entered as text, with a period and a numeric value as part of the
string.
The numeric value will be a multiple of .25, up to a maximum of 10. For
example, some entries will be "s.25", "s.5", "s.5.75". Should they all be
shown with the same number of digits, for example: "s.0.25", "s.0.50",
"S.5.75", "s.0.1.00"?

Thank you



"Mike H" wrote:

Hi,

Assuming there are no blank cells in the range you can use

=SUMPRODUCT(MID(A1:A10,2,99)*1)

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"bgcooker" wrote:

I need to sum a range of cells that will contain both text and numbers.
The
text will always be an "s" and the number will be a number between .25
and
10. The entry in the cells to be counted will be entered as "s.25" or
"s.5.5", and the number following the "s." needs to be totaled.

Is there a way to accomplish this using the COUNTIF or SUM functions?


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
Summing Cells with Text and Numbers Trevor Little Excel Worksheet Functions 11 March 17th 10 03:32 PM
Summing Numbers and Text in same cell Andrewba Excel Discussion (Misc queries) 3 August 8th 08 03:57 PM
Help with summing numbers in cells that also contain text Michael Slater New Users to Excel 6 September 1st 07 05:38 AM
summing cells with text and numbers val Excel Worksheet Functions 1 August 2nd 06 03:26 AM
Summing cells that contain numbers and text Mango Excel Discussion (Misc queries) 10 May 13th 06 06:18 PM


All times are GMT +1. The time now is 08:25 PM.

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"