Results 1 to 5 of 5

Thread: Complex Changing to Percent
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    May 2008
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Complex Changing to Percent

    Code:
    A   B                 C             D               E
    Job # Employee     Hours         Cost             Percentage
    1          M                  0.9         317.22           32.97
    1          C                  1.83        317.22           67.03
    2          M                   0.9         385.77          49.72
    2          C                   2.42        385.77         72.89
    3          C                   0.91        210.32         50.28
    3          M                   0.9          210.32        49.72
    I have a "formula" that figures out the PERCENTAGE of a job that worked by TWO employees (M and C). The COST is duplicated as WHOLE under each employee even though they only worked a PERCENTAGE of the WHOLE. The formula works fine...but...I need it to be a decimal so I can calculate it into another formula. IF I change my percentage of 32.97 to PERCENT using FORMAT it comes out to 3297% instead of 33% or what would ALSO be acceptable would be .3297 Formula used for the PERCENTAGE column is =ROUND((($C7/SUMIF($A$2:$A$7,$A7,$C$2:$C$7))*100),2)
    Last edited by dragonmouse; Sep 25th, 2015 at 08:41 AM. Reason: Cant seem to get a table to post

  2. #2
    Board Regular Darren Bartrup's Avatar
    Join Date
    Mar 2006
    Location
    Nottingham (UK)
    Posts
    1,258
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Complex Changing to Percent

    Can't you just remove the *100 part of the formula and format the cell as a percentage?
    Using Office 2003 & 2010,

    I'm 1 of the 10 people that don't understand binary. Guess that means the other 1001 do.

    No answer to your post?
    Get someone to read it - does it make sense or does it sound like gibberish?

  3. #3
    Board Regular Fishboy's Avatar
    Join Date
    Feb 2015
    Location
    UK
    Posts
    4,261
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Complex Changing to Percent

    Quote Originally Posted by Darren Bartrup View Post
    Can't you just remove the *100 part of the formula and format the cell as a percentage?
    This. Not only will it provide the percentage but it will also allow you to predetermine the number of decimal places (if any) you want to go to when rounding.
    REMEMBER: Always test out new code / formulas in a COPY of your worksheet as some actions CANNOT be undone by clicking the "Undo" button

    If you need to share example data, a number of useful items including the Mr.Excel HTML Maker
    can be found here.

    If someone took the time and helped you to solve your issue remember to click the "Like" button on their post to make it easier for others for find the right solution, plus a little gratitude goes a long way!

  4. #4
    Board Regular
    Join Date
    May 2008
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Complex Changing to Percent

    You are right. I apparently didn't understand what that 100 was for but it functioned like I wanted when I replicated it. Thank you and I apologize for my dumbness. SIGH...Sometimes it's simplicity that's right before your eyes that's hardest to see.

  5. #5
    Board Regular Darren Bartrup's Avatar
    Join Date
    Mar 2006
    Location
    Nottingham (UK)
    Posts
    1,258
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Complex Changing to Percent

    No probs. Glad you got it working.
    Using Office 2003 & 2010,

    I'm 1 of the 10 people that don't understand binary. Guess that means the other 1001 do.

    No answer to your post?
    Get someone to read it - does it make sense or does it sound like gibberish?

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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