+ Reply to Thread
Results 1 to 4 of 4

If nothing is selected from data validation list, then apply a formula.

  1. #1
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    If nothing is selected from data validation list, then apply a formula.

    I have a table with cells that are currently using the following formula: =IFERROR(IF(MATCH($B4,Roster!$J$9:$J$63,0),"Yes"), "")

    I have conditional formatting in place depending on if the result is yes or no.

    What I want is the ability to apply data validation where I can override the formula and select something like "Down" or "In Shop" from the list, but then if not selected the formula is there... So basically the formula is the default that could be overridden but always there it not...

    Is this possible?

    Thank you!

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: If nothing is selected from data validation list, then apply a formula.

    Hi cwelsh,

    Assuming the data validation is in cell A1 (change the following to suit), this will do the job:

    =IF(LEN($A$1)>0,$A$1,IF(ISERROR(MATCH($B4,Roster!$J$9:$J$63,0)),"","Yes"))

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    10-04-2018
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    58

    Re: If nothing is selected from data validation list, then apply a formula.

    Thank you but, it doesn't seem to work.

    I have the formula in cell c4 and then i put data validation over that cell. When I click the drop down arrow to select an option it will fill it in but then when I delete the option, the formula is gone. I want the formula to stay.

  4. #4
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862

    Re: If nothing is selected from data validation list, then apply a formula.

    Use the Worksheet Change event. If the cell value is empty, write the formula; if a value has been selected, leave it.
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

+ 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. Replies: 2
    Last Post: 09-17-2014, 09:35 AM
  2. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  3. How can I get the selected value of a data validation list with vba?
    By nikko50 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2014, 04:29 PM
  4. Formula to Sum values of items selected in a Data Validation List.
    By zicitron in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2013, 04:49 PM
  5. Replies: 1
    Last Post: 12-20-2011, 02:47 PM
  6. data selected by validation 2 list
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2008, 08:39 AM
  7. data validation-How do I apply the list and <> both to the cells?
    By Meliisa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-02-2005, 11:06 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