+ Reply to Thread
Results 1 to 12 of 12

Vlookup if with conditions in two columns

  1. #1
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    220

    Vlookup if with conditions in two columns

    Hello, I was working on a Vlookup formula that looks in two columns.

    It's supposed to read.. Lookup A2 in sheet called "WD Drop" for phone number.. if its blank in Work Phone# then look for it in Personal Phone#.

    Please see example. Any help will be appreciated. thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Vlookup if with conditions in two columns

    how about
    =IF(INDEX('WD DROP'!$F$2:$F$100,MATCH('ENTRY TAB'!A2,'WD DROP'!$A$2:$A$19,0))=0,"personal Phone # ",(INDEX('WD DROP'!$F$2:$F$100,MATCH('ENTRY TAB'!A2,'WD DROP'!$A$2:$A$19,0))))
    or can use vlookup instead

    you may need an IFERROR - if the employee cannot be found

    and
    =IFERROR(IF(A2="","",IF(INDEX('WD DROP'!$F$2:$F$100,MATCH('ENTRY TAB'!A2,'WD DROP'!$A$2:$A$19,0))=0,"personal Phone # ",(INDEX('WD DROP'!$F$2:$F$100,MATCH('ENTRY TAB'!A2,'WD DROP'!$A$2:$A$19,0))))), "Employee Not found")
    to account for blank id numbers
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    220

    Re: Vlookup if with conditions in two columns

    Hello Etaf,
    I need the actual personal phone number that's listed, not to specify that it's a personal number. Sorry I wasn't too clear I guess :/

    Oh and there's thousands of entries... I just removed them for the example sheet. Can I use the criteria to grab the whole columns instead?

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Vlookup if with conditions in two columns

    You perhaps add this to column H of WD DROP and then use a basic vlookup on column H

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    220

    Re: Vlookup if with conditions in two columns

    Thanks Byte, That's a simple option as well.

  6. #6
    Forum Contributor
    Join Date
    03-08-2011
    Location
    London
    MS-Off Ver
    Work Office 365 Home 2019
    Posts
    427

    Re: Vlookup if with conditions in two columns

    Not a vlookup, but this does the job.
    Please Login or Register  to view this content.
    You'll need to change the cell references highlighted in RED to suit

    EDIT: - Looks like etaf beat me to it
    Attached Files Attached Files
    Last edited by MagicMan; 03-18-2024 at 11:54 AM.

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Vlookup if with conditions in two columns

    sorry about that - misunderstood - i wont answer as it looks like @MagicMan has given the reply

  8. #8
    Forum Contributor
    Join Date
    06-27-2014
    Location
    Margate, FL
    MS-Off Ver
    MS Office 2016
    Posts
    220

    Re: Vlookup if with conditions in two columns

    You're all awesome.. Thank you all.

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Vlookup if with conditions in two columns

    \or maybe this formula:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  10. #10
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Vlookup if with conditions in two columns

    EDIT: - Looks like etaf beat me to it
    No not to lookup the different column

  11. #11
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Vlookup if with conditions in two columns

    Solution with named table.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-04-2014
    Location
    Madrid, Spain
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Vlookup if with conditions in two columns

    Try this formula in e2

    =IF(VLOOKUP(A2;WD_DROP;6;FALSE)="";VLOOKUP(A2;WD_DROP;7;FALSE);VLOOKUP(A2;WD_DROP;6;FALSE))
    Attached Files Attached Files

+ 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] VLOOKUP = 2 conditions
    By TPS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-25-2021, 04:11 AM
  2. [SOLVED] Advanced Filter Between Two Columns all OR conditions (4 conditions)
    By nobodyukno in forum Excel General
    Replies: 2
    Last Post: 02-16-2017, 01:13 PM
  3. [SOLVED] VBA vlookup conditions
    By yukioh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2015, 01:28 PM
  4. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  5. [SOLVED] Vlookup with 2 conditions
    By ryanch69 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-19-2012, 05:05 AM
  6. VLOOKUP with 2 conditions
    By RSantos in forum Excel General
    Replies: 5
    Last Post: 06-26-2006, 01:15 PM
  7. How do you do a VLookup with two conditions?
    By ryesworld in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-28-2005, 07:00 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