Quick Find of most recent date/time without having to sort.

Virginal

New Member
Joined
Apr 4, 2012
Messages
4
I have a dataset with a large number of rows. I sort this by Shop, Sales Person, DateTime Last Sale.

I now want to find the most recent "date/time last sale" for each shop, the obvious thing seems to do a pre sort but that seems like using a sledgehammer to crack a nut.

I want to use the quickest way to find those dates and maybe doing the sort is not so resource hungry as I think.

All opinions welcome
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I have a dataset with a large number of rows. I sort this by Shop, Sales Person, DateTime Last Sale.

I now want to find the most recent "date/time last sale" for each shop, the obvious thing seems to do a pre sort but that seems like using a sledgehammer to crack a nut.

I want to use the quickest way to find those dates and maybe doing the sort is not so resource hungry as I think.

All opinions welcome
Since dates/times are really just numbers formatted to look like dates/times you can probably use a MAX(IF array formula**.

=MAX(IF(A2:A10="Shop1",B2:B10))

Where B2:B10 are the dates/times.

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,217,241
Messages
6,135,436
Members
449,932
Latest member
sbog

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