+ Reply to Thread
Results 1 to 3 of 3

IF function and a drop down list validation.

  1. #1
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53

    IF function and a drop down list validation.

    Hi all,

    I wish to enter an IF function that will automatically select an option within a small drop down list that I have created.

    When a user enters a date into say cell A1 I want the drop down list to select the option "Ongoing" in cell C1. I also still want the user to change the drop down list options if they so wish?

    Any ideas anyone..... thanks.

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    You can either have a cell where you can select data(from drop down or manual) or a cell with a formula. You cant have it both ways.

    This said, you can apply the formula

    If (a1=whatever;"ongoing";"").
    This will work untill somebody chooses the value from the dropdown list, in this case the formula will disappear.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482
    Quote Originally Posted by Stevie-B
    Hi all,

    I wish to enter an IF function that will automatically select an option within a small drop down list that I have created.

    When a user enters a date into say cell A1 I want the drop down list to select the option "Ongoing" in cell C1. I also still want the user to change the drop down list options if they so wish?

    Any ideas anyone..... thanks.
    This code could work,
    If you have C1 as your data validation, when you change A1 the code will change C1 to Whatever A1 is, but you will still be able to use your drop down menu.
    Place this code in the worksheet module.
    right click on the sheet tab and select view code, copy and paste this code there...
    Please Login or Register  to view this content.

+ 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