+ Reply to Thread
Results 1 to 5 of 5

Fill the Cell with Zeros upto a fixed number of characters

Hybrid View

  1. #1
    Registered User
    Join Date
    08-24-2007
    Posts
    18

    Fill the Cell with Zeros upto a fixed number of characters

    i have to type the amount in Rs and Paise in a column

    i.e.
    2500.11
    26890.00
    6565.49
    3232.00


    etc.........

    now i want the output in adjacent column as
    0000000250011
    0000002689000
    0000000656549
    0000000323200

    (this is needed for creating an input file)

    somebody please help giving some formula for this

    Thanx in advance

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi hsmeet,

    The following works on data starting at cell A2 - change as required and copy down as required:

    =TEXT(LEFT(A2,SEARCH(".",A2)-1)&RIGHT(A2,2),"0000000000000")

    HTH

    Robert

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Or =TEXT(100*A2, "000000000000")

  4. #4
    Registered User
    Join Date
    08-24-2007
    Posts
    18

    Proud to be the part of this Forum

    Respected Trebor76 and shg(M)

    i m very much grateful for your kind and timely help...

    You people are rocking

    both the formulas are working best though shg(M) made it more simple for
    a user like me to understand....

    thanks sir,

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You're welcome. Excel usually provides several ways of getting to about the the same result; on another occasion, Trebor's approach may be just what you need.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1