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: 17
  • Screenshot_907.png
    Screenshot_907.png
    27.9 KB · Views: 17

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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