+ Reply to Thread
Results 1 to 5 of 5

format as %

  1. #1
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241

    format as %

    Hi All,
    What would be the syntax for format(my formula,"percent")?
    Help appreciated
    Thanks
    Syed
    Last edited by saziz; 10-18-2005 at 06:57 PM. Reason: spelling

  2. #2
    JakeyC
    Guest

    Re: format as %

    Is your formula in a cell?

    If so,

    <formulalocation>.NumberFormat = "0.00%"

    replace <formulalocation> with whatever syntax you want to refer to the
    cell (ActiveCell, Selection, Range("A1"), Cells(1,1) etc.)


  3. #3
    Tom Ogilvy
    Guest

    Re: format as %

    ? format(.2345,"#.0%")
    23.4%



    --
    Regards,
    Tom Ogilvy

    "saziz" <saziz.1x4eid_1129676726.2495@excelforum-nospam.com> wrote in
    message news:saziz.1x4eid_1129676726.2495@excelforum-nospam.com...
    >
    > Hi All,
    > What would be the syntax for format(my formula,"percent")?
    > Help appreciated
    > Thanks
    > Syed
    >
    >
    > --
    > saziz
    > ------------------------------------------------------------------------
    > saziz's Profile:

    http://www.excelforum.com/member.php...fo&userid=6350
    > View this thread: http://www.excelforum.com/showthread...hreadid=477349
    >




  4. #4
    Gary''s Student
    Guest

    RE: format as %

    Two different choises, suppose your number is 0.15:

    1. Click on the cell, pull-down Format > Cell > Number > Percentage
    cell will now show as 13.00%

    2. If your number is 15, click on cell, pull-down Format > Cell > Number >
    Custom

    and enter General" %"
    --
    Gary's Student


    "saziz" wrote:

    >
    > Hi All,
    > What would be the syntax for format(my formula,"percent")?
    > Help appreciated
    > Thanks
    > Syed
    >
    >
    > --
    > saziz
    > ------------------------------------------------------------------------
    > saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
    > View this thread: http://www.excelforum.com/showthread...hreadid=477349
    >
    >


  5. #5
    Forum Contributor
    Join Date
    02-19-2004
    Location
    San Francisco Bay Area
    MS-Off Ver
    Microsoft 365 Aps for enterprise.
    Posts
    241
    Thank you Tom, JakeyC & the Student of Gary for help.
    It was in a VB code so (#.0%) helped.
    Thanks once again
    Syed
    (I am not even a student sofar...I guess I can be a students's student.)

+ 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