+ Reply to Thread
Results 1 to 4 of 4

IF Statements and data validation

  1. #1
    Registered User
    Join Date
    08-28-2016
    Location
    United States
    MS-Off Ver
    Tablet and Newest Pc excel
    Posts
    3

    IF Statements and data validation

    Is it possible to use the if function to select data from a list based on input in other columns?
    For example if 1A = 3.1415 then B1(or A2) would Pull values from a list for whatever A1 equals.
    If not is there another way to achieve this? I'm rather new to excel and I'm building a Computer part choser. So if I select a processor I want the drop down box for motherboards to only show motherboards that match that processor's socket type. I've attached a copy if it helps to view how I have things set up. ( I'm building it on my tablet so none of the data validation is placed yet. Sheet 2 is the lists)
    Attached Files Attached Files
    Last edited by Belzace; 08-28-2016 at 12:50 AM.

  2. #2
    Registered User
    Join Date
    08-28-2016
    Location
    United States
    MS-Off Ver
    Tablet and Newest Pc excel
    Posts
    3

    Re: IF Statements and data validation

    Edit: I'd like to have a row of computer components, and if I select "RAM" from the drop down list, then the adjacent box would be a drop down list of different ram i have created a list for. As apposed to a longer list of all the different parts I would normally have to choose from.

  3. #3
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: IF Statements and data validation

    Create named ranges for your components. (I would make them dynamic, this way you can add to the list and they will adjust)
    Then in data validation for cell B2 enter the following:
    In the allow box select List
    In the Source box place =INDIRECT($A$3)
    In column C/D use a vlookup:
    =VLOOKUP(B3,Sheet2!$C$1:$F$33,4,0)
    Adjust the 4 to suit
    See attached
    Windy
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-28-2016
    Location
    United States
    MS-Off Ver
    Tablet and Newest Pc excel
    Posts
    3

    Re: IF Statements and data validation

    Thanks, that helps a lot actually. Also, I could not open the doc you attached, from my tablet. I'll just wait till I get my laptop. Just bought a sager NP8152-2 :D

+ 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] Data validation Multiple IF statements (with ANDs) referenced to different sheets
    By nosense in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-11-2015, 08:57 AM
  2. Using IF statements with Data Validation lists
    By aledc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2015, 06:44 AM
  3. [SOLVED] If Then Statements Linked to Data Validation Lists on Different Sheet
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-14-2014, 01:43 AM
  4. [SOLVED] Nesting IF statements to use Data Validation List
    By coloradolime in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2014, 04:23 PM
  5. Data Validation using "If" Statements?
    By amyb2008 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2013, 04:45 AM
  6. Data Validation and IF statements
    By ExcelRocks123 in forum Excel General
    Replies: 9
    Last Post: 03-17-2010, 04:24 PM
  7. Excel 2007 : Data Validation Lists with IF statements
    By bradley2012 in forum Excel General
    Replies: 1
    Last Post: 05-01-2009, 08:52 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