+ Reply to Thread
Results 1 to 5 of 5

IF Formula and Validation List (Excel 2007)

  1. #1
    Registered User
    Join Date
    10-22-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    4

    IF Formula and Validation List (Excel 2007)

    I apologize if the answer's already been given in another thread, but I couldn't quite find it in my search.

    In a single cell, I'd like to include an IF statement and validation list reference. The goal: if a cell is a certain value, I'd like all of the following cells in that record (row) to kick over to "N/A". These other cells currently reference a validation list. Otherwise, I'd like the drop-down lists to be available.

    My thought was: =IF(a2="Support","N/A",...)
    For the ... false value placeholder, I was hoping to be able to reference the validation list.

    The error I'm getting when I try the IF statement in a validation list cell is: "The value you entered is not valid. A user has restricted values that can be entered into this cell."

    Is there an easy fix for what I'm trying to achieve?
    Last edited by NoraJohnson; 10-22-2009 at 05:08 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF Formula and Validation List (Excel 2007)

    Try this...

    It won't put N/A in the cell, but will not allow a dropdown list to show....

    Make sure A2 is blank for now...

    Go to Data Validation and choose List from allow menu, then

    enter formula:

    =IF(A2="Support","",List)

    where List is the name of your named list.

    Click Ok.

    Now type Support in A2 and you should not be able to get a list in your data val. cell.

    If you select other things, you will get the list.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-22-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: IF Formula and Validation List (Excel 2007)

    Thank you, NBVC. I really appreciate your quick turnaround, and your recommnedation did work as you said it would.

    My primary challenge with leaving the cell blank versus kicking it over to "N/A" is that with an "N/A" tag, people know there is not supposed to be a data value there, whereas a blank cell will cause people to ask if the user simply failed to update their data like they were supposed to. Technically, the manager could look to see if "support" is present, indicating there should be no values in those cells, but that doesn't really happen. Also, the team could easily select NA from the dropdown lists I created for them, but they were hoping I could save them from that work (~10 cells for each record).

    Thanks again!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF Formula and Validation List (Excel 2007)

    How about making the cell black if "Support" is in A2

    So apply Conditional Formatting from Home tab to the cell...

    Select New Rule and select Use a formula to determine which cells to format...

    then enter: =$A$2="Support"

    Click Format and choose Black from the Fill tab.

    Click Ok and Ok again to finish.

    Now, the cell will be black if "Support" is in A2.

    Note: Even if they try to type in the box, the should get an error message....

  5. #5
    Registered User
    Join Date
    10-22-2009
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: IF Formula and Validation List (Excel 2007)

    Great idea. Thank you!

+ 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