If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Stop Excel displaying seconds in Mail Merge

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-06, 21:44
Jamester Jamester is offline
Registered User
 
Join Date: Dec 2006
Posts: 3
Stop Excel displaying seconds in Mail Merge

HI all,

A question I hope will be nice and easy for you!

I am importing data from an inhouse data programe to Excel. One of the columns is a flight departure time. From this sheet I need to mail merge to a word document which extracts many of the fields including the departure time. However, the time always displays as hh:mm:ss. I only need to show hh:mm. I have tried changing in the format but in the formula bar is still shows hh:mm:ss which is what is being merged.

Please help!!! this will save us a lot of time in the office as we currently hand write everything! I'm not that savvy on jargon either so please kindly keep it simple for me!!

Many thanks - Jamester
Reply With Quote
  #2 (permalink)  
Old 12-15-06, 23:52
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howy, and welcome to the board. It may be that Excel is considering as text, not a (serial) number. One way to convert is to type the number 1 in a blank cell, copy it, then select the column with dates, and Paste Special > Multiply. This will convert them to true numbers, and then apply formatting as date as needed.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 12-16-06, 00:16
Jamester Jamester is offline
Registered User
 
Join Date: Dec 2006
Posts: 3
Hey..!
Thanks for the advice.. I tried it but alas it doesn't work. It changes a time of 23:30 to 0.98! Can't tell someone they'll be picked up at 0.98hrs!

Any other ideas?

Thanks
J
Reply With Quote
  #4 (permalink)  
Old 12-16-06, 08:19
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
That's because it is now a serial number. 23:30 is the equivalent of the fraction of the day 0.98.

Also, are you wanting only the 23:30, and not the date with it? If so, then format as Time rather than Date, and choose the hh:mm option.

And if you have an extra column, you can use this formula to get what you want: Assume that your date is in cell B3, then in C3, put this:

=HOUR(B3)&":"&TEXT(MINUTE(B3),"00")
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums

Last edited by shades; 12-16-06 at 08:23.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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