What am I doing wrong?

preethamdevraj

New Member
Joined
Jun 7, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I am trying retrieve the first ready time or logged in time if ready is not available. But unable to see it.. created this formula to get it, tell me what I am doing wrong?

=IF(AND(Data[Agent State]="Ready",Data[Agent Name]=D3),MINIFS(Data[State Transition Time],Data[Agent State],"Logged-in",Data[Agent Name],D3),MINIFS(Data[State Transition Time],Data[Agent State],"Ready",Data[Agent Name],D3)

Table name = Data, D3 has the value to refer to,.

Appreciate any help!!!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
What is "State Transition TIme"? Is there a data element for Log In Time? A sample of your matrix would be useful? And the xl2bb add-in makes getting help from others easier.
 
Upvote 0
Does this give you what you need:

Book2
ABCDEFG
1
2AgentNameAgentStateStateTransitionTimeAgentNameStateTime
3JohnReady6:35:00 AMJohnReady6:35:00 AM
4GregReady11:13:00 AMGregReady11:13:00 AM
5HarryReady3:58:00 PMHarryReady3:58:00 PM
6SallyLogged In4:08:00 AMSallyLogged In4:08:00 AM
7TinaLogged In11:50:00 AMTinaLogged In11:50:00 AM
8PamLogged Out10:31:00 PM
9JerryLogged Out11:32:00 PM
10
Sheet1
Cell Formulas
RangeFormula
E3:G7E3=FILTER(dTable,(dTable[AgentState]="Ready")+(dTable[AgentState]="Logged In"),"")
Dynamic array formulas.
 
Upvote 0
Give this a try:
Excel Formula:
=MIN(
            FILTER(Data[Data'[State Transition Time],
                        (Data[Agent Name]=D3)*(Data[Agent State]="Ready"),
                         FILTER(Data[Data'[State Transition Time],
                                     (Data[Agent Name]=D3)*(Data[Agent State]="Logged-in"),
                                      "")
                         )
            )
 
Upvote 0
What is "State Transition TIme"? Is there a data element for Log In Time? A sample of your matrix would be useful? And the xl2bb add-in makes getting help from others easier.
State Transition time contains both date and time of the activity performed.
 
Upvote 0
Did either of the formulas work for you ?
If not please provide details and some sample data.
 
Upvote 0
Does this give you what you need:

Book2
ABCDEFG
1
2AgentNameAgentStateStateTransitionTimeAgentNameStateTime
3JohnReady6:35:00 AMJohnReady6:35:00 AM
4GregReady11:13:00 AMGregReady11:13:00 AM
5HarryReady3:58:00 PMHarryReady3:58:00 PM
6SallyLogged In4:08:00 AMSallyLogged In4:08:00 AM
7TinaLogged In11:50:00 AMTinaLogged In11:50:00 AM
8PamLogged Out10:31:00 PM
9JerryLogged Out11:32:00 PM
10
Sheet1
Cell Formulas
RangeFormula
E3:G7E3=FILTER(dTable,(dTable[AgentState]="Ready")+(dTable[AgentState]="Logged In"),"")
Dynamic array formulas.

Did either of the formulas work for you ?
If not please provide details and some sample data.
Here is my sample data...
1674843136672.png


Notice Agent 1 has has multiple "Logged-in" instances and "Ready", However for Agent 2 you only see Logged-in instances but not "Ready".
I want the cell to populate the latest Ready date/time, if there is no "Ready" then it should give me the Latest "Logged-in" date/time.
 
Upvote 0
Okay, that is information that was not made clear. So you want the Maximum Time of Each Day of the Ready Time, if not the Maximum Log in Time ... what if the Last Ready Time is Before the Last Login Time? Do you want the login time or the ready time? Or would you want the Maximum of the two times? and what ever status is associated with that time? Can you be logged in multiple times of the day, like the ready time?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,557
Messages
6,160,477
Members
451,650
Latest member
kibria

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top