+ Reply to Thread
Results 1 to 3 of 3

If statement from a list, returning from different list

Hybrid View

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    If statement from a list, returning from different list

    Hello,

    I have a column (A) that has a list of names. Column (C) That has a longer list of names and column (D) that has a list of subnames that corresponds to column (C). In column (B) I want to read if the cell equals any name in (C) and if so, return what is in (D).

    Sorry if it's confusing. My formula right now returns everything as false.

    =IF($A1=C:C,D:D) ...that is in cell B1

    Thank You

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: If statement from a list, returning from different list

    shnolan,

    Welcome to the forum!
    What you're looking for is the VLookup() formula. In your case, it would be:
    =IFERROR(VLOOKUP(A1,C:D,2,0),"")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: If statement from a list, returning from different list

    That did the trick, thank you very much.

+ 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