ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I add numbers such as 1.5R + 2.5R? (https://www.excelbanter.com/excel-worksheet-functions/110003-how-can-i-add-numbers-such-1-5r-2-5r.html)

worker

How can I add numbers such as 1.5R + 2.5R?
 
I am trying to add numbers that have alpha characters at the end. I have
tried nesting the SUM and IF functions using FREQUENCY for unique values but,
have been unsuccessful. Any suggestions please.

Pete_UK

How can I add numbers such as 1.5R + 2.5R?
 
You could use:

=VALUE(LEFT(A2,LEN(A2)-1))

to get the numbers (only) into another column, copy the formula down as
necessary, then sum this column, assuming your data is in column A and
there is only one character after the numerical part.

An alternative is to try wrapping this into an array* formula:

=SUM(VALUE(LEFT(A2:A100,LEN(A2:A100)-1)))

I have assumed a range of A2 to A100 - adjust to suit your data.

* As this is an array formula, then once you have typed it in (or
subsequently edit it), you must use CTRL-SHIFT-ENTER instead of just
ENTER to commit it. If you do this correctly, then Excel will wrap
curly braces { } around the formula when viewed in the formula bar -
you should not type these yourself.

Hope this helps.

Pete

worker wrote:
I am trying to add numbers that have alpha characters at the end. I have
tried nesting the SUM and IF functions using FREQUENCY for unique values but,
have been unsuccessful. Any suggestions please.




All times are GMT +1. The time now is 06:00 AM.

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