Text + SUM of cells decimals error

Olisthoughts

New Member
Joined
Apr 16, 2020
Messages
33
Office Version
  1. 365
Platform
  1. Windows
I'm working on a break list for my team at work.

I want a very simple calculation to count the values in cells and return their number, with the text "currently on break: " in front of it.

If I just use =SUM(C4:C16) it works perfect and returns me the number, but using ="Currently on Break: "&SUM(C4:C16) is returning a result with decimals. and sometimes wrong overall.

I've tried formatting the cell in different ways to remove the decimals, it did not work.

Please show me what I'm doing wrong, screenshots attached.

Thank you.
 

Attachments

  • Screenshot_906.png
    Screenshot_906.png
    31.2 KB · Views: 20
  • Screenshot_907.png
    Screenshot_907.png
    27.9 KB · Views: 19

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi Olisthoughts,

You can use the TEXT function to format as you want:

Book1
CDE
41:23Currently on break: 15:41
5
62:12
7
8
9
104:33
11
12
13
14
15
167:33
Sheet1
Cell Formulas
RangeFormula
E4E4="Currently on break: "&TEXT(SUM(C4:C16),"hh:mm")
 
Upvote 0

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top