+ Reply to Thread
Results 1 to 6 of 6

2 criteria vlookup from messy (less messy) payroll file

Hybrid View

  1. #1
    Registered User
    Join Date
    10-13-2021
    Location
    New zealand
    MS-Off Ver
    365
    Posts
    3

    2 criteria vlookup from messy (less messy) payroll file

    Hi, i sent an email previously that was attempting the same request but from a much messier data source.
    I have resulted in a couple of tidy steps, but now I require to match 2 critera in another Tab to display a result, but I think this time its easily achievable
    I have tried quite a lot of examples but i don't seem to be able to get this to work.

    for tab 'Daily Export' C4 I need a formula that checks both statements below and only displays if both correct, I realize its likely an index/match formula to replace the to vlookups but I can't manage to make it work.
    could someone please help me I would greatly appreciate it

    =VLOOKUP(B1,DL!D:V,19,FALSE)
    =VLOOKUP(A4,DL!A:V,22,FALSE)
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,888

    Re: 2 criteria vlookup from messy (less messy) payroll file

    Don't develop bad habits, enter the text with spaces at the end

    Xlookup function solution

    worksheet name : Daily Export

    Cell B4 formula , drag down and across

    Formula: copy to clipboard
    =IFERROR(XLOOKUP($A4&LOOKUP(9.99^9,$B$1:B$1),INDIRECT("'"&B$3&"'!A:A")&INDIRECT("'"&B$3&"'!D:D"),INDIRECT("'"&B$3&"'!V:V")),"")
    Attached Files Attached Files
    Last edited by wk9128; 12-17-2021 at 09:30 PM.

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,198

    Re: 2 criteria vlookup from messy (less messy) payroll file

    Another option:
    In Cell B4, then copy over and down:

    =XLOOKUP($A4&OFFSET(B$1,0,-MOD(COLUMN(),2)),INDIRECT(B$3&"!A:A")&INDIRECT(B$3&"!D:D"),INDIRECT(B$3&"!V:V"),"",0)

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

    Re: 2 criteria vlookup from messy (less messy) payroll file

    Many ideas..

    Formula: copy to clipboard
    =XLOOKUP(1,(B$1=SL!$D:$D)*($A4=SL!$A:$A),SL!$V:$V,"",0,1)


    Formula: copy to clipboard
    =XLOOKUP(1,(B$1=DL!$D:$D)*($A4=DL!$A:$A),SL!$V:$V,"",0,1)


    I didn't find 'Daily Export'!B5
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,198

    Re: 2 criteria vlookup from messy (less messy) payroll file

    "I didn't find 'Daily Export'!B5"
    DJunqueira - That's because "Person2 " on the SL sheet has a space at the end :-(

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

    Re: 2 criteria vlookup from messy (less messy) payroll file

    Quote Originally Posted by Gregb11 View Post
    "I didn't find 'Daily Export'!B5"
    DJunqueira - That's because "Person2 " on the SL sheet has a space at the end :-(
    Yes, you are right!

    Solving this problem:
    Formula: copy to clipboard
    =XLOOKUP(1,(B$1=SL!$D:$D)*($A4=TRIM(SL!$A:$A)),SL!$V:$V,"",0,1)

+ 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. Vlookup, against a messy payroll file range of results
    By devid3an in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-17-2021, 01:39 AM
  2. Messy Name comparison
    By jomili in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-26-2020, 03:09 PM
  3. Dates Getting Messy
    By lucasar in forum Excel General
    Replies: 2
    Last Post: 02-20-2014, 10:30 AM
  4. Excel 2007 : Messy text to Excel file
    By markDuffy in forum Excel General
    Replies: 1
    Last Post: 05-03-2011, 06:56 AM
  5. Messy Users
    By Dkso in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2006, 01:10 PM
  6. Messy tab characters
    By Gargoyl in forum Excel General
    Replies: 2
    Last Post: 04-19-2006, 06:15 PM
  7. [SOLVED] messy data
    By Adam in forum Excel General
    Replies: 4
    Last Post: 01-24-2006, 11:55 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