ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Summing Text & Numbers (https://www.excelbanter.com/excel-discussion-misc-queries/253926-summing-text-numbers.html)

bgcooker

Summing Text & 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 0.25 and
10, in multiples of 0.25. The entry in the cells to be counted will be
entered as "s.25" or"s.5.50", for example, and the number following the "s."
needs to be totaled.

There will be some blank cells in the range.

Thanks



מיכאל (מיקי) אבידן

Summing Text & Numbers
 
I know it sounds Ridiculous but at this time of the day and assuming the
range of values is A1:A20 - try this:
{=SUM(VALUE(RIGHT(A1:A20,LEN(A1:A20)-(LEN(A1:A20)-LEN(SUBSTITUTE(A1:A20,".",""))))))}
*** This is an array formula, and is to be entered with CTRL+SHIFT+ENTER
rather than with simply ENTER.
The curly brackets {} are not to be typed manually, those are entered by the
Excel, when the formula is entered as an Array formula ***
Micky


"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 0.25 and
10, in multiples of 0.25. The entry in the cells to be counted will be
entered as "s.25" or"s.5.50", for example, and the number following the "s."
needs to be totaled.

There will be some blank cells in the range.

Thanks



T. Valko

Summing Text & Numbers
 
the number will be a number between 0.25
and 10, in multiples of 0.25.
The entry in the cells to be counted will be
entered as "s.25"


So, that "s.25" has the value of 0.25 and not 25, right? If that's correct
then this will be rather complicated to do.

You can make this really simple by not combining text and numbers. Keep the
text in one cell and the number in another cell.

--
Biff
Microsoft Excel MVP


"bgcooker" wrote in message
...
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 0.25
and
10, in multiples of 0.25. The entry in the cells to be counted will be
entered as "s.25" or"s.5.50", for example, and the number following the
"s."
needs to be totaled.

There will be some blank cells in the range.

Thanks






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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com