Incorrect time displayed in cell

Phone_Guy

New Member
Joined
Nov 5, 2009
Messages
19
I'm trying to create a invoice number cell that incorporates the account number from cell C3 and the date and time the invoice was created. I entered this in the cell:

=C3&" "&TEXT(A12,"MM-DD-YY-HH-MM ")

It does bring in the account number and the correct date, but the time displays as 0-00. Is what I'm trying to do possible? If I remove the TEXT command and just enter:

=C3&" "&NOW() it does post the account number and excels integer version of the time. Any ideas how to make this work?Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Works for me.

Best guess is that A12 DOES NOT contain the time, only the Date..

To see, format A12 as a NUMBER with about 5 or 6 decimals.
If you only see a whole # and no decimal, then that cell holds ONLY the date.
 
Upvote 0
thanks for your quick reply. Your correct. I should have pick that up.However is there another way I can enter the account number as well as the date and time into the invoice number field without changing the date format to display the time in cell A12? It just doesn't look very good there. I really need the time stamp in the invoice number field in case we (rarely will happen) bill a customer twice in one day so that we can distinguish the two invoices.
 
Upvote 0
Thanks for pointing me in the right direction. I changed the command in the reference cell from =TODAY() to the =NOW() and it now works perfect.
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,487
Members
448,967
Latest member
visheshkotha

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