Help with MaxIfs and MinIfs

matthec2

New Member
Joined
Dec 17, 2013
Messages
36
Hi Guys, little help much appreciated :)

I'm trying to do a Maximum query on a set of data with multiple criteria and then the same Minimum Query

Basically i'm looking at our company phone stats to track when the sales team have logged in and out the the phome system.

At first i was doing a simple Sumif which worked well for 90% of the days and concierge.

Then i realised that certain days there were multiple lines of data created when the sales person may have accidentally logged out the system then straight back in, so this created another two lines of data on that date for that sales person.

i tried to add in a column to create "unique log" but this required the original datafeed to come through in a specific order which i can't guarantee every time.

I know I need to use Minimum and Maximums and Array Formulas based on 3 criteria.

So basically the time the agent logged in each day would be:
Minimum TIME (4th Column) - 1st Criteria DATE (5th Column) - 2nd Criteria EXPLANATION (3rd Column s/b AMBLogin) - 3rd Criteria AGENTID (1st Column)

And Log out time would be:
Maximum TIME (4th Column) - 1st Criteria DATE (5th Column) - 2nd Criteria EXPLANATION (3rd Column s/b AMBLogout) - 3rd Criteria AGENTID (1st Column)

See table below (sorry it isn't embedded very well)

AgentId DateTime ExplanationTIMEDATEUNIQUE LOG
127213/05/2014 17:14AMBLogout5:14 PM13/05/2014-
127213/05/2014 17:23AMBLogout5:23 PM13/05/2014Last Logout
127213/05/2014 17:23AMBLogin5:23 PM13/05/20141st Login
127213/05/2014 09:15AMBLogin9:15 AM13/05/2014-

<tbody>
</tbody>

So looking at the example above, Log in time would be 9:15 AM and log out time would be 5:23 PM

Hope that makes sense

many thanks!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
If there are a few to do, what about using pivot tables?

ALT-D-P & follow the wizard. For minima, set page field Explantion to "AMBLogin", row fields for AgentID & DateTime, data field MIN of TIME. For maxima adjust as required - that is, Explanation filter & MAX of TIME

HTH
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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