+ Reply to Thread
Results 1 to 8 of 8

Multiple Criteria to get Particular Output

  1. #1
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    100

    Multiple Criteria to get Particular Output

    I have attached an example.

    Essentially, the document has two tabs. One will show when a person logs into a system and the second shows a logout. By Agent, Date, and Time (first three columns) I need to know when the person first logged into the system for the day and then last logged out of the system for a day.
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Multiple Criteria to get Particular Output

    Tab 1 H2:
    =IF(MIN(IF(((INT($B$2:$B$175)=INT(B2))*($A$2:$A$175=A2)),$C$2:$C$175))=C2,"First Login","")

    This is an array formula confirmed with Ctrl+Shift+Enter

    Tab 2 H2:
    =IF(MAX(IF(((INT($B$2:$B$175)=INT(B2))*($A$2:$A$175=A2)),$C$2:$C$175))=C2,"Last Logout","")

    This is an array formula confirmed with Ctrl+Shift+Enter
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Multiple Criteria to get Particular Output

    That was actually perfect. Now I got another for you... Added a tab to combine the information to understand login/logout times for each person.

    I need to show by agent, by day, their rounded hour of login time / logout time. Is that possible?
    Attached Files Attached Files

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Multiple Criteria to get Particular Output

    Everything is possible. Give me a moment.

  5. #5
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Multiple Criteria to get Particular Output

    I tried using a Match Index formula, but I'm missing something on it as I'm getting a #N/A. I appreciate your help.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Multiple Criteria to get Particular Output

    C2:
    =IFERROR(LOOKUP(2,1/(('Agent Log In'!$A$2:$A$175=Combined!$B2)*('Agent Log In'!$B$2:$B$175=Combined!C$1)*('Agent Log In'!$H$2:$H$175<>"")),'Agent Log In'!$G$2:$G$175),"-")

    copy over and down

    C7:
    =IFERROR(LOOKUP(2,1/(('Agent Log Out'!$A$2:$A$177=Combined!$B7)*('Agent Log Out'!$B$2:$B$177=Combined!C$6)*('Agent Log Out'!$H$2:$H$177<>"")),'Agent Log Out'!$G$2:$G$177),"-")

    copy over and down

    INDEX(..MATCH( is a great tool. LOOKUP(2,1/(()*()),) does the same thing but lets you nest lots of conditions into it. And it's not an Array formula... (unless you smoosh MIN and MAX into it)

    Could potentially smoosh all of the formulas into one. Let me try.
    Last edited by daffodil11; 04-30-2015 at 06:03 PM.

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Multiple Criteria to get Particular Output

    Here we go:

    C2:
    Please Login or Register  to view this content.
    This is another array formula confirmed with Ctrl+Shift+Enter

    With this, you won't need to even enter the formula from post 2 into Column H.

    And here's C7:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by daffodil11; 04-30-2015 at 06:15 PM.

  8. #8
    Forum Contributor
    Join Date
    07-22-2013
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Multiple Criteria to get Particular Output

    You're amazing!!! Thank you.

+ 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] Formula (s) to allow output based on when certain criteria are met
    By heresteve2 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-06-2014, 04:22 AM
  2. [SOLVED] Multiple Criteria to produce one output (Match and Vlookup)
    By aglopez08 in forum Excel General
    Replies: 2
    Last Post: 08-21-2012, 04:59 PM
  3. Provide output of Multiple criteria match (II)
    By mromano in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2011, 04:41 PM
  4. Provide output of Multiple criteria match
    By mromano in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2011, 11:40 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