+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Data Validation Lists with IF statements

  1. #1
    Registered User
    Join Date
    05-01-2009
    Location
    Peoria, IL
    MS-Off Ver
    Excel 2007
    Posts
    2

    Data Validation Lists with IF statements

    I have two data validation lists, one with first names and one with last names. I'm trying to write an IF statement that gives the address when the names are picked (BOTH criteria met) but also shows an error when the names do not match.
    I have been playing around with it, but can't seem to get it to work out right.
    Thanks for the help

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

    Re: Data Validation Lists with IF statements

    Try something like:

    =Index('Sheet2'!C$1:C$100,Match(1,('Sheet2'!$A$1:$A$100=A1),('Sheet2'!$B$1:$B$100=B1),0))

    Confirmed with CTRL+SHIFT+ENTER.. instead of just Enter

    Where Sheet2!A1:C100 contains database and column C has the addresses.... you can copy formula to the right to extract more data, if it exists in columns D, E, etc...

    and where A1 and B1 contain drop downs in current sheet.

    The formula will return #N/A error if no exact match found (first and last names).

    Note: After you adjust ranges/references to suit, you need to re-confirm with CSE keys.
    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.

+ 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