+ Reply to Thread
Results 1 to 4 of 4

Combining VLookup & IF?

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Omaha, Nebraska
    MS-Off Ver
    2007
    Posts
    23

    Question Combining VLookup & IF?

    Hi, this novice needs some help, I'll try to explain the best I can.

    In sheet 2, cell A3, I need to return an employees name from sheet 1(cell A2) if the value of column Q(17 columns from the left) from the same row is equal to 1

    Sheet 1 is an employee list table with different attributes in columns B through S, column A is the employee name

    Any help would be greatly appreciated!

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Combining VLookup & IF?

    In A3 on Sheet 2

    =index(Sheet1!A:A,match(1,Sheet1!Q:Q,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Combining VLookup & IF?

    Why not just use IF:

    =IF(Sheet1!Q2=1,Sheet1!A2,"")

    Or if you need to search through the data to find the employee with a 1 in column Q, then you could use:

    =INDEX(Sheet1!A2:A20,MATCH(1,Sheet1!Q2:Q20,0))

    (Adjust range height as needed)

    Only problem with that is that it will only return the FIRST employee with a 1, not all of them.

    - Moo
    Last edited by Moo the Dog; 06-13-2013 at 10:50 AM. Reason: Ace is a quick one... =)

  4. #4
    Registered User
    Join Date
    05-15-2013
    Location
    Omaha, Nebraska
    MS-Off Ver
    2007
    Posts
    23

    Re: Combining VLookup & IF?

    thanks, the if statements worked great!

+ 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