+ Reply to Thread
Results 1 to 5 of 5

Having problems with a value output.

  1. #1
    Registered User
    Join Date
    04-14-2009
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    3

    Having problems with a value output.

    Hello!

    Im not super new to excel, but formula's and such still get me confused sometimes.

    Here's the issue.

    I have 5 Cells

    B-C-D-E-F

    Cell's C-D-E-F are drop down menu's with the value of "Yes" or "No"
    Cell B is a "Percentage Complete" box (no formula just named % complete)

    I need to create a formula that would add .25% to the "Percentage complete" box for every one of the 4 cells with a yes/no drop down where yes it will add .25% if no then it add's 0

    So if cells C-D-E-F = No then the value of percentage complete = 0 but if C-E-D-F = Yes then percentage complete = 100%

    Im having trouble finding the right formula to add a numeric value to a text result.

    Please help!! Thank you for your time
    Attached Files Attached Files
    Last edited by Iszu; 04-14-2009 at 09:25 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Having problems with a value output.

    In B you can use this formula

    ="Percentage complete = " & TEXT(COUNTIF(C2:F2,"Yes")/4,"0%")

    If you do not want the percentage complete text then just use

    =COUNTIF(C2:F2,"Yes")/4

    and format cell as percentage.

    Assumes anything other than Yes in C:F is treated as No.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-14-2009
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Having problems with a value output.

    Andy!

    Thanks so much,

    If you have a second can your sort of explain the logic behind that formula, Im looking to get a deeper understanding. That is of course, if you have the time to spare!

    Additionally, does this add .25 into the percentage completed formula? I mean, for every "yes" result does it add .25 to the percentage complete field?
    Last edited by Iszu; 04-14-2009 at 09:33 AM.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Having problems with a value output.

    The countif returns a count of the cells with Yes in for the range specified.
    This value is then divided by 4, which is the number of cells in the range.

    So possible answers will be.

    0/4 = 0 = 0%
    1/4 = 0.25 = 25%
    2/4 = 0.5 = 50%
    3/4 = 0.75 = 75%
    4/4 =1 = 100%

    If you range changes to be more or less than 4 cells you will need to change the divisor. So you could use,

    COUNTIF(C2:F2,"YES")/COLUMNS(C2:F2)

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Having problems with a value output.

    Second is formula: it count IF text is YES.
    (and divide by 4 wich is issue (0,25))

    First formula use this one only write whole sentence:

    = "WRITE SOMETHING" & "WRITE SOMETHING ELSE" & formula & B1 (for example)

+ 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