Converting number to time

cathe

New Member
Joined
May 16, 2018
Messages
1
Hello,

I'm working with some data to show open rates per hour to an email. In the time field, I have a 1 representing the first hour after the email was sent, 2 representing the second hour etc. The email was sent at 6am, so I'd like to be able to convert the numbers to text (i.e. '6am') for tables and chart labels.

I think the formula I'm looking for is one that looks up the column of numbers containing 1, 2 etc, and if it finds a 1, it returns the value 6am, if it finds a 2, it returns the value 7am etc.

Any suggestions would be appreciated. Thank you.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi. How does it know 6am is the start time? Or is it always the start time?

A possible if 6am is always the start:

=TIME(A1+5,0,0)
 
Upvote 0
Maybe

=TIME(A1+5,0,0)

where A1 is the hour.
Presumably this won't execeed 24 (or more likely 18)
 
Upvote 0
deleted
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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