#1   Report Post  
Pete
 
Posts: n/a
Default Time to text

I would like a cell to say the following:

"Between 7:30 AM and 8:00 AM"

User puts 8:00 AM in cell A1

B1 is then calculated to the above

If A1 = 8:00 AM

My formula works =(A1-TIME(0,30,0))

It gives me the correct subracted time of 30 minutes
But I want to convert this to a text string.

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

something like:

="Between " & TEXT(A1-TIME(0,30,0),"h:mm AM/PM") & " and "
& TEXT(A1,"h:mm AM/PM")

(all one cell)



Pete wrote:

I would like a cell to say the following:

"Between 7:30 AM and 8:00 AM"

User puts 8:00 AM in cell A1

B1 is then calculated to the above

If A1 = 8:00 AM

My formula works =(A1-TIME(0,30,0))

It gives me the correct subracted time of 30 minutes
But I want to convert this to a text string.


--

Dave Peterson
  #3   Report Post  
Damon Longworth
 
Posts: n/a
Default

Try:

="Between "&text(b1,"hh:mm AM/PM")&" and "&text(a1,"hh:mm AM/PM")

--
Damon Longworth

Don't miss out on the 2005 Excel User Conference
Sept 16th and 17th
Stockyards Hotel - Ft. Worth, Texas
www.ExcelUserConference.com


"Pete" wrote in message
...
I would like a cell to say the following:

"Between 7:30 AM and 8:00 AM"

User puts 8:00 AM in cell A1

B1 is then calculated to the above

If A1 = 8:00 AM

My formula works =(A1-TIME(0,30,0))

It gives me the correct subracted time of 30 minutes
But I want to convert this to a text string.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Field mejamee Excel Discussion (Misc queries) 1 June 19th 05 05:28 PM
Conditional Formatting based on Text within Text George Lynch Excel Discussion (Misc queries) 3 May 5th 05 07:58 PM
Keep number format after converting time to text DH Excel Discussion (Misc queries) 2 April 28th 05 07:18 PM
Time Sheet Calculation Help Needed! sax30 Excel Worksheet Functions 2 April 26th 05 08:08 PM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM


All times are GMT +1. The time now is 10:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"