+ Reply to Thread
Results 1 to 8 of 8

How to correct a NAME error when trying to calculate percentage with IF formula

  1. #1
    Registered User
    Join Date
    01-31-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    16

    Smile How to correct a NAME error when trying to calculate percentage with IF formula

    Hi all!

    I have a spreadsheet that tracks annual competencies for my staff. I have three ways to demonstrate competencies. Class, walking rounds, and in-services.
    Not everyone has to complete every competency. So I have formulas entered to show NA for those staff that do not need certain competencies. I will go in the spreadsheet and enter an X once the competency has been completed by those that need it. The cells are blank if the competency is needed but not completed. I also have formulas to calculate the total competencies due and total complete and the percentage complete.

    What I am trying to do, is make a formula that shows the percentage complete for each type of competency. I started in row AF and I have gotten a part of the formula correct, however I am getting a NAME error for those staff that do not require the competency to be completed. My goal is to get the totals in the green cells at the bottom of the spreadsheet to show 100% when all of the required staff have completed all of the competencies for each respective section.

    Thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    21,290

    Re: How to correct a NAME error when trying to calculate percentage with IF formula

    Your formula is using slanted quotes. I have no idea how you were even able to type those in.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In Excel formulas you must use plain old straight quotes

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Do a global find & replace to fix it.
    Jeff
    | | |?| |?| |?| |?| | |:| | |?| |?|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    East Asia
    MS-Off Ver
    Office 365
    Posts
    311

    Re: How to correct a NAME error when trying to calculate percentage with IF formula

    To resolve the #NAME error, try this formula in cell AC4 and copy down:
    =IF(AB4=0,"",AB4/4)

    It's subtle, but there is a slight difference in the quotation marks between this and your original formula - which I think is what was the route of the error.

    Does that answer your question, or is there something else that you need to calculate the totals at the bottom of the page?
    <<< Please click * to thank valued contributors

  4. #4
    Registered User
    Join Date
    01-31-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    16

    Re: How to correct a NAME error when trying to calculate percentage with IF formula

    Thank you for your help. I entered the formula and all of the values that return are zero and in one row the values are all just blank.

    So I need a percentage complete for each individual person for each kind of competency and then I will total the entire staff in the green cells at the bottom.

    I think I can figure out my green cells, I just cannot figure our how to get the individual percentages for each kind of competency.


    For example, Wilson should be blank in AB, AD and AF, because that person has no mandatory competencies required. She has NA all the way across her row.

    Wooten in AB should be 33% because he has one of his 3 competencies complete for cell AB (which refers to G-K)
    Wooten should have 100% in AF because he has all of walking rounds competencies completed (w-z)
    and he should have 0% in AD because he has not attended any class competencies (M-v)

  5. #5
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    21,290

    Re: How to correct a NAME error when trying to calculate percentage with IF formula

    There is no Wilson or Wooten on this sheet. You only have first names.

  6. #6
    Registered User
    Join Date
    01-31-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    16

    Re: How to correct a NAME error when trying to calculate percentage with IF formula

    sheila wilson
    jeremy wooton

    Sorry

  7. #7
    Registered User
    Join Date
    01-31-2022
    Location
    USA
    MS-Off Ver
    2016
    Posts
    16

    SOLVED Re: How to correct a NAME error when trying to calculate percentage with IF formula

    I decided to do away with this project. thanks to all for trying to help!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    63,655

    Re: How to correct a NAME error when trying to calculate percentage with IF formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula to calculate correct Percentage
    By MG74 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2021, 03:31 PM
  2. Replies: 6
    Last Post: 04-17-2020, 04:16 AM
  3. Replies: 2
    Last Post: 02-23-2019, 10:51 AM
  4. Calculate percentage into total test time that a certain error occurred
    By green_poster444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2017, 11:51 PM
  5. [SOLVED] Calculate percentage #value error
    By tapsmiled in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-07-2013, 06:30 PM
  6. Formula not showing the correct percentage...
    By Steve-B in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-03-2008, 11:27 AM
  7. Replies: 2
    Last Post: 09-06-2005, 10:05 AM

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