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: 45
Default padded leading 0

dear all

this is to pad with trailing 0
=IF(D2<14, REPT("0",14-LEN(D2)&D2),D2)

why when i put in this way it doesn't seem to work?
=IF(D2<14, D2&REPT("0",14-LEN(D2)),D2)

thanks
 
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
Keep Leading Zero Sean Timmons Excel Discussion (Misc queries) 11 December 28th 06 05:42 PM
Getting month padded zero kickyr Excel Discussion (Misc queries) 3 February 20th 06 03:01 PM
Leading zero Firefli Excel Discussion (Misc queries) 2 November 9th 05 05:27 PM
leading zero IRA Excel Discussion (Misc queries) 1 October 26th 05 06:47 PM
leading 0 cb Excel Worksheet Functions 2 March 13th 05 01:50 PM


All times are GMT +1. The time now is 12:44 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"