+ Reply to Thread
Results 1 to 4 of 4

Multiple Data Validation in one cell

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    Multiple Data Validation in one cell

    Good afternoon,

    I am a teacher trying to figure out how to enter marks as both numerical values (e.g., 89%) and levels (e.g., A-).

    Currently, my "markbook" has a worksheet on which I enter all of the students' marks and then excel transfers automatically those marks to the students' individual pages where the numbers are crunched and a final mark is calculated.

    My school is moving to a system of marking in LEVELS. Just to complicate things (for Excel), these levels - which go from R (<50) to 5+ (98-100%) - are numeric levels. I know, though, that I can set the levels to be read as text.

    I would like to set up my data entry worksheet so that I can indicate whether or not I will be marking in numbers or levels and then be able to enter the students number/level in one cell. I am trying to set up that cell to be able to recognize that the value I am entering will be a level (with data validation from a list) or a number.

    So far, I have come up with the following formula for the Data Validation Window --> =IF($O$4,Levels,???????)

    In cell O4, I have created a check box to indicate whether the assignment will be marked in levels or numbers. If the check box is checked, then the formula tells excel to create a drop-down list from a range I have labelled "Levels". This range includes a blank, R, 1-,1,1+,2-,2,2+,3-,3,3+,4-,4,4+,5-,5,5+.

    My problem is that I do not know what to put at the end of this IF statement. I want to be able to enter any number I want (with decimals), from 0-200...and I would prefer not to create another range with each of the possibilities between 0 and 200.

    Any help would be greatly appreciated. I am trying to do this without VBA, because it is far beyond my knowledge set.

    Thank you, in advance.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Multiple Data Validation in one cell

    Perhaps you could take advantage of Data Validation's error checking features:

    Try this
    • Put your list of levels in a named range...I used: LU_Level
    • Select the cells to be impacted with the DV
    • CTRL+1....(to open the formatting window)
    ...Number_tab
    ...Category: Text
    ...Click:OK
    • Data.Data_Validation.Data_Validation
    ...Allow: List
    ...Source: LU_Levels
    ...Error_Alert_tab
    ...Style: Information
    ...UNcheck: Show error alert
    ...Click: OK

    Now...Each cell will display a dropdown list of the levels...BUT...you can also enter anything you want.
    If that works for you, we'll need to figure out how to summarize/average/whatever the resulting values.
    You may need to amend your list to something like:
    L -1
    L 1
    L 1+
    etc
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple Data Validation in one cell

    Levels and Numbers - Forum.xlsx

    Hi Ron,
    Thank you for the quick reply. I confess that I did not follow your instructions once I tried CTRL+1. This did open a formatting window, but the standard one (Number, Alignment, Font, etc). I am Excel 2010, but I don't think that is the issue.

    I am attaching a copy of a working version of the spreadsheet that I am trying to create. I hope that might help.

    Thank you.

    Mark

  4. #4
    Registered User
    Join Date
    12-04-2012
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple Data Validation in one cell

    Hi Ron,

    My mistake - I misread one of your instructions. I have made the changes that you suggested.

    I am going to work through this to see how it goes.

    THANK YOU!

    Mark

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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