+ Reply to Thread
Results 1 to 5 of 5

IF statement data validation

Hybrid View

  1. #1
    Registered User
    Join Date
    03-12-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    30

    IF statement data validation

    Hi all,

    Probably a simple one really I am trying to make a Data list with an IF statement attached.

    Basically, if cell stated (going down respectively) is = AWOL. Then show word AWOL, otherwise give option of list

    =IF(ManningData!$P$8= "AWOL","AWOL",+Tasks)

    Currently getting error "The list source must be a delimited list, or a reference to a single row or column.

    I thought this would work but not quite - The list is labelled as "Tasks"

    Any help much appreciated

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,837

    Re: IF statement data validation

    Create named range "AWOL" (just AWOL in a cell)

    For DV

    =IF(ManningData!$P$8= "AWOL",AWOL,Tasks)

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    Excel 2021
    Posts
    1,013

    Re: IF statement data validation

    Hi echoz,

    Try creating a named range called 'AWOL' that just contains 'AWOL' and then use this formula in the Data Validation -> List

    =IF(ManningData!$P$8="AWOL",AWOL,Tasks)

    This will give the AWOL drop down options if it's TRUE and the Tasks options if it's FALSE.

    Hope this helps,

    Snook

  4. #4
    Registered User
    Join Date
    03-12-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    30

    Re: IF statement data validation

    Thanks all your formulas worked but I ended up changing the way I handled it to suit situation slightly.

    Good responses thanks

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,774

    Re: IF statement data validation

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] IF Statement with Multi-Criteria Statement inside a Data Validation List
    By dharvey1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2020, 09:10 PM
  2. Data Validation and IF Statement
    By jadown in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2017, 10:44 AM
  3. Data validation - Validation List if statement
    By bambino86 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-10-2017, 10:02 AM
  4. If statement based data validation? Dynamic data validation?
    By bjohnsonac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2014, 02:12 PM
  5. [SOLVED] Data VAlidation With If statement
    By excobra in forum Excel General
    Replies: 6
    Last Post: 11-12-2013, 05:28 AM
  6. DATA Validation and IF statement
    By NCAA in forum Excel General
    Replies: 3
    Last Post: 03-29-2012, 04:01 AM
  7. using the if statement with data validation
    By GreenMonster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2005, 04:06 PM

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