Excel Formatting 3D 3rd
Excel Formatting 3D 3rd
00%)
$0.00
$0.0000
Text
% (0.00%)
$0.00
Now insert a column just after this column to hold the actual date for use in calculations. Let's say the eight-digit dates were in
To enter HH:MM time values without the colon, you'll simply use a different custom format. The format 0\:00 will give one- o
$0.0000
Text
culations. Let's say the eight-digit dates were in column A, starting in cell A2. Then you would enter this formula in cell B2 and copy it dow
ustom format. The format 0\:00 will give one- or two-digit hours, while the format 00:\00 will always give you two-digit hours, left-padding
a in cell B2 and copy it down the whole column: =DATE(MOD(A2, 10000), TRUNC(A2 / 1000000), MOD(TRUNC(A2 / 10000), 100)). The M
wo-digit hours, left-padding with a zero if necessary. A formula like this one would convert the typed value into an actual time value for use
OD(TRUNC(A2 / 10000), 100)). The MOD function returns the remainder when dividing its first argument by its second. Thus the first sub-e
nt by its second. Thus the first sub-expression returns the last four digits of your numberthe year. For the month, we divide by 1,000,000
r the month, we divide by 1,000,000 and use the TRUNC function to throw away any fractional part. And for the day, we do a combination