Forum Discussion
hannahhleigh
Jan 13, 2020Copper Contributor
Sum help
Okay, I am trying to make a sheet to track PTO hours and add/sort them by the number of hours based on what kind of hours they are. Example, in one month, Suzy may have 3S, 5V, 7S, 5V, 5V. I am seeki...
Abiola1
Jan 13, 2020MVP
I suggest you remove all the text from the numeric values.
Assuming you have 3 in cell A1 and 7 in cell A2
Then, you can do the following
=SUM(A1:A2)&"S"
That will return 10S
Assuming you have 3 in cell A1 and 7 in cell A2
Then, you can do the following
=SUM(A1:A2)&"S"
That will return 10S
- hannahhleighJan 13, 2020Copper Contributor
Thanks for the response Abiola1 . Turns out I did some more digging and found that there is indeed a way with this formula: =SUMPRODUCT(--(LEFT(B5:AF5,1)="S"),IF(ISERROR(--RIGHT(B5:AF5,LEN(B5:AF5)-1)),0,--RIGHT(B5:AF5,LEN(B5:AF5)-1)))
The letter must come before the number, and to use the formula you must hit ctrl+alt+enter. It works too!
- SergeiBaklanJan 13, 2020Diamond Contributor
- Abiola1Jan 13, 2020MVPNice one 👍