Concatenate & show HH:mm - as a time format

Smokeyham

Board Regular
Joined
Feb 1, 2006
Messages
120
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a spreadsheet which calculates the median time. I want to concatenate this with some text.

The desired end result might read "Median time is 00:15" - meaning 0 hours and 15 minutes.

I am using the following formula
=Analysis!A2&" "&Analysis!B2&" minutes"

Where......
Analysis!A2 contains the text "Median time is"
Analysis!B2 contains the calculated value "00:15"

The problem I run across is that the concatenated result of my formula =Analysis!A2&" "&Analysis!B2&" minutes" is the following:

Median time is 0.014659870321 minutes

In the calculated cell (Analysis!B2) the value shows up just fine (00:15). The problem I have is when I concatenate this.

I've tried using a text function "&text(Analysis!B2,00:00) but I get an error message.

Any help would be appreciated.

Thanks.

Gordon
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Looks like you're missing some apostrophes and have the wrong format:

=Analysis!A2&TEXT(Analysis!B2," hh:mm")

Hope that helps,
 
Upvote 0
Code:
=Analysis!A2&" "&Analysis!TEXT(B2,"hh:mm") &" minutes"

But why not just Custom Format your cell(B2)?
"Median Time is "hh:mm" minutes"

lenze
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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