ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Combining two formulas using concatenate (https://www.excelbanter.com/excel-worksheet-functions/110920-combining-two-formulas-using-concatenate.html)

Confused Kate

Combining two formulas using concatenate
 
Here is the formula I've tried that isn't working:

Â*=concatenate(text(=$c$17-time(1,45,0),"hh:mm"),"Â*",text(=$c$17-time(1,15,0),"hh:mm"))

Is it possible to put these two formulas together? Basically, I need the
time to look like 07:15-07:45. These times pull off of cell C17. If C17 is
changed this range of time needs to change. How do I program excel to do
this?

Biff

Combining two formulas using concatenate
 
How about this:

=TEXT($C$17-TIME(1,45,0),"hh:mm")&" - "&TEXT($C$17-TIME(1,15,0),"hh:mm")

Biff

"Confused Kate" <Confused wrote in message
...
Here is the formula I've tried that isn't working:

*=concatenate(text(=$c$17-time(1,45,0),"hh:mm"),"*",text(=$c$17-time(1,15,0),"hh:mm"))

Is it possible to put these two formulas together? Basically, I need the
time to look like 07:15-07:45. These times pull off of cell C17. If C17 is
changed this range of time needs to change. How do I program excel to do
this?




Fred Smith

Combining two formulas using concatenate
 
You're getting close. You don't use equal signs in functions (only at the start
of a formula). And you need a dash inside the quotes of the second parameter.
Try:

=concatenate(text($c$17-time(1,45,0),"hh:mm"),"-*",text($c$17-time(1,15,0),"hh:mm"))

--
Regards,
Fred


"Confused Kate" <Confused wrote in message
...
Here is the formula I've tried that isn't working:

*=concatenate(text(=$c$17-time(1,45,0),"hh:mm"),"*",text(=$c$17-time(1,15,0),"hh:mm"))

Is it possible to put these two formulas together? Basically, I need the
time to look like 07:15-07:45. These times pull off of cell C17. If C17 is
changed this range of time needs to change. How do I program excel to do
this?




Max

Combining two formulas using concatenate
 
Try:
=TEXT(C17-TIME(1,45,0),"hh:mm")&"Â*"&TEXT(C17-TIME(1,15,0),"hh:mm")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Confused Kate" wrote:
Here is the formula I've tried that isn't working:

Â*=concatenate(text(=$c$17-time(1,45,0),"hh:mm"),"Â*",text(=$c$17-time(1,15,0),"hh:mm"))

Is it possible to put these two formulas together? Basically, I need the
time to look like 07:15-07:45. These times pull off of cell C17. If C17 is
changed this range of time needs to change. How do I program excel to do
this?



All times are GMT +1. The time now is 12:45 PM.

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