Convert time to text

J

Jacqueline

I have data imported to Excel from a database. The database converts the
class time signatures that are set at ARR for arranged time to a time
signature of:

12:01:00 AM

I want to convert this back to ARR in the Excel spreadsheet. Here is the
formual I am using:
=IF(M34="12:01:00 AM","ARR",M34)
The result I get is:
12:01:00 AM

I am thinking that Excel does not reconize the time signature, but just
guessing. Any ideas?
Thanks much
Jacqueline
 
T

T. Valko

Try this:

=IF(M34=TIME(0,1,0),"ARR",M34)

The syntax for the TIME( ) function is TIME(hour,minute,second)

12:01:00 AM

Hour = 0
Minute = 1
Second = 0
 
N

NBVC

You need to coerce your text string (value in quotes) back to a numbe
(date)...

Try:

=IF(M34="12:01:00 AM"+0,"ARR",M34
 
J

Jacqueline

It worked, thank you so much!
Jacqueline

T. Valko said:
Try this:

=IF(M34=TIME(0,1,0),"ARR",M34)

The syntax for the TIME( ) function is TIME(hour,minute,second)

12:01:00 AM

Hour = 0
Minute = 1
Second = 0
 
J

Jacqueline

This did not work, however here was the answer:
=IF(M34=TIME(0,1,0),"ARR",M34)
Thanks for the help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

separating date and time 5
time converting 3
Time Sum in Excel 1
Time Zone Conversion Table 1
Over time? 4
Cumulative totals 1
calculate total hours/minutes from two time cells 7
Using VBA to create charts 1

Top