+ Reply to Thread
Results 1 to 11 of 11

Multiple Drop Down Menu to calculate a percentage

  1. #1
    Registered User
    Join Date
    10-30-2008
    Location
    in a house
    Posts
    17

    Multiple Drop Down Menu to calculate a percentage

    I have a bunch of cells that use a drop down menu validation from a different set of cells so

    Legend (this are in cells $A$7:$A$11)
    NA - Not Applicable
    0 - Not attempted
    1 - Not Yet Competant
    2 - Satisfactory
    3 - Exceedes Expectations


    Other cells have Data Validation using Allow List =$A$7:$A$11 to make the drop down menu option appear. What I would like to do is add a 'hidden number' on cells A8:A11 (A8=0, A9=1, A10=2, A11=3) A7, being NA isn't included in the formula I want to set up.

    In cells later on I'd like to make a formula that takes those 'hidden numbers' into account and works out an average. So 'hidden number' / 'potential total' and make the cell display as a percentage, the 'potential total would have to take into consideration that a value has been set, but not use that value, and times the number of values set by three.

    Any ideas, I can run simple macros and can figure stuff out via trial and error so any help is appreciated.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello verse,

    A simple way to hide data on the worksheet is to change the font color to white. This won't prevent the user from seeing the number in formula bar. To do that, you must set the Formula Hidden property for the cell and protect the worksheet.

    Sincerely,
    Leith Ross

  3. #3
    Registered User
    Join Date
    10-30-2008
    Location
    in a house
    Posts
    17
    I don't think your quite understanding what I'm trying to achieve, I'm not trying to hide any data, I'm trying to attach a hidden data field to each option selected to make a calculation based on what the user selects.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Verse,

    You should post your workbook. This will make it clear as to both what you are doing and also which solutions can be applied. If you are using Excel 2007, post a copy of the workbook in Excel 2003 as well. The more people you make the workbook available to, the more responses you will get.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    10-30-2008
    Location
    in a house
    Posts
    17
    attached sheet in question
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-30-2008
    Location
    in a house
    Posts
    17
    This is a Bump

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello verse,

    After downloading the file and re-reading your post several times, I am going to need a short example of what cells are involved, what values they have, and what numbers will be used in your calculation.

    Sincerely,
    Leith Ross

  8. #8
    Registered User
    Join Date
    10-30-2008
    Location
    in a house
    Posts
    17
    Cells A8:A10 are used as the 'validation' (Allow: List, Source =$A$8:$A$10) reference for all the B13:F17+B22:F27+B32:F36+B41:F55+B61:F67 cells (IE unlocked cells the user can select a drop down option from.

    I want to be able to automatically calculate the cells in field B72:F73. the maths behind this is
    Sum of all numbers if column B / total possible numbers in column B, *100 (to displace as a percentage)

    The associated value to A08 = 0, to A09 = 1 & to A10 = 3

    for example:

    If I select '1 - Not Yet Competent' in every field on column B, the score would be 34 (34*3) / 102 * 100 = 33.33%.

    Thanks

  9. #9
    Registered User
    Join Date
    10-30-2008
    Location
    in a house
    Posts
    17
    "can I get another bump bump"

    rolf

  10. #10
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello verse,

    I have added the macro below to the attached workbook. It provides the sum of the 0s, 1s, and 3s in columns "B:F". You will need to add some code to the macro to calculate your "percentage". The macro is called from cells "B72:F72".
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-30-2008
    Location
    in a house
    Posts
    17
    Ah, cool, thanks very much for that

+ 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