LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Adding leading zeros to a calculated value

I have a formula that does exactly what its supposed to do (ie convert
latitudes in decimal format to latitudes in Degrees minute seconds format)
=ABS((TEXT((INT(ABS(C3))*10000),"00")+TEXT(INT(MOD (ABS(C3),1)*60),"00")*100+
INT(MOD(MOD(ABS(C3),1)*3600,60)))*SIGN(C3))& IF(C3<0,"S","N")

the problem is that I always want the degrees to have two digits even if it
is two 00 so that the cell always contains 123456N or 004530S

any suggestions please?


John J


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CONVERT NOs TO EAN 8 BY ADDING LEADING ZEROS pdb Excel Discussion (Misc queries) 7 February 13th 09 07:46 PM
leading zeros P. Zicari Excel Discussion (Misc queries) 3 November 18th 05 04:31 PM
Leading zeros Paul Excel Discussion (Misc queries) 4 June 12th 05 04:04 AM
save text field w/ leading zeros in .csv format & not lose zeros? Ques Excel Discussion (Misc queries) 1 May 4th 05 06:21 PM
Adding Leading Zeros to Text Jenn Excel Discussion (Misc queries) 4 January 12th 05 06:51 PM


All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"