+ Reply to Thread
Results 1 to 16 of 16

Return data of another tab under 3 conditions

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Return data of another tab under 3 conditions

    I am trying my best to fix a formula that tracks the values of another tab under 3,conditions ( to match date, Employee No. And In/out signature) .

    Actually, I am calculating the attendance of our staff after collecting their finger print data

    The formula I did is =If(And($A$2=Date,$B$2=EmpNo,$C$2=In_Out,Vlookup(D4,Data,4,Flase),"")

    It always gives me "" as a result
    Last edited by FDibbins; 07-25-2016 at 09:30 AM.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Vlookup

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

    Please note that the revised thread title is still unacceptable in line with the second paragraph of this post.
    Last edited by jason.b75; 07-23-2016 at 12:28 PM.

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Formula problem

    I have modified the title above. Thanks alot for the information.

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula problem

    I suggest you read my previous reply again, then modify your title again.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: vlookup problem

    I have edited your title for you.

    Looking at your formula...
    =If(And($A$2=Date,$B$2=EmpNo,$C$2=In_Out,Vlookup(D4,Data,4,Flase),"")

    are Date,EmpNo and In_Out range names?

    If so, are you sure that they all are identical to the cells they are testing?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: vlookup problem

    Yes, they are.

    The refers to the correct cells . I have enclosed herewith the sheet for your review. Thank you.

    Reagrds,
    Yahia
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: vlookup problem

    Quote Originally Posted by FDibbins View Post
    I have edited your title for you.
    Looks the same to me, Ford.

  8. #8
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: vlookup problem

    Hi! Any update?

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,882

    Re: vlookup problem

    In E6

    IFERROR(INDEX(Time,MATCH($A$2&$B6&E$5,EmpNo&Date&InOut,0),0),"")

    Enter with Ctrl+Shift+Enter

    Copy (drag) across to F5

    Copy down both columns

    OR (more efficient)


    =IFERROR(INDEX(Time,MATCH(1,(EmpNo=$A$2)*(Date=$B6)*(InOut=E$5),0),0),"")

    Entered as above

    I would advise you change your named ranges to defined maximum rather than whole columns e.g. A2:A1000 to avoid performance problems.


    FYI: in A6 put "=B6" (no quotes) and format as "DDD"
    Last edited by JohnTopley; 07-24-2016 at 10:06 AM.

  10. #10
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: vlookup problem

    Thank you , John,

    Unfortunately, still does not work

    Regards,
    Yahia
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,882

    Re: vlookup problem

    It would if you had the correct name ..

    =IFERROR(INDEX(Time,MATCH(1,(EmpNo=$A$2)*(Dates=$B6)*(InOut=E$5),0),0),"")

    You must have changed the name from "Date" to "Dates"
    Last edited by JohnTopley; 07-24-2016 at 12:38 PM.

  12. #12
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: vlookup problem

    Yeah, you are right. I have changed the name. however, I corrected it now , still does not work

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: vlookup problem

    Perhaps not entered as array formula.
    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    formula will be covered with{} brackets

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: vlookup problem

    Quote Originally Posted by jason.b75 View Post
    Looks the same to me, Ford.
    You are correct, I could have sworn I changed it - well, It's changed now

  15. #15
    Registered User
    Join Date
    02-19-2013
    Location
    UAE
    MS-Off Ver
    Excel 2019
    Posts
    44

    Re: Return data of another tab under 3 conditions

    Sorry guys for being late! Thank you all for your help it is working right now with me and I have finished up the payroll because of your help. Thank you once again. Appreciated.

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,015

    Re: Return data of another tab under 3 conditions

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Using vLookup based on results from a vLookup & returning an undetermined list
    By NormalityBan in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-14-2014, 05:02 AM
  2. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  3. Display Cell within VLookup range that excel thinks matches the VLookup Value
    By headachexcelperson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 04:56 PM
  4. how to bring all vlookup returns even with duplicate vlookup search keys
    By NYC4LIFE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 04:53 PM
  5. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  6. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  7. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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