List of names based on City in accending order between to set date limits

Muthuraman224

New Member
Joined
Jan 3, 2024
Messages
5
Office Version
  1. 2019
Platform
  1. Windows
Book1
HIJ
3DateNameCity
401/01/2024LiamNewyork
506/01/2024NoahLondon
602/01/2024OliverNewyork
710/01/2024Jamesswitzerland
803/01/2024ElijahNewyork
903/01/2024WilliamNewyork
1005/01/2024HenryNewyork
1102/01/2024LucasLondon
1207/01/2024Benjaminswitzerland
1304/01/2024TheodoreParis
1406/01/2024LouisParis
1507/01/2024ZaltanParis
1608/01/2024PiliphParis
Sheet1
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Welcome to the MrExcel board!

For that sample data, would you care to give us an example of the date limits and also the expected results for those date limits?
 
Upvote 0
Welcome to the MrExcel board!

For that sample data, would you care to give us an example of the date limits and also the expected results for those date limits?
If the following were the criteria
Start date - 01.01.2024
End Date - 06.01.2023
City - Newyork.

with these criteria, I would like to get the results in Ascending order based on the Date within the 2 set limits.
 
Upvote 0
How can the Start date be after the End date?

Also, are your dates m/d/y or d/m/y format?
If the following were the criteria
Start date - 01.01.2024
End Date - 06.01.2024
City - Newyork.

with these criteria, I would like to get the results in Ascending order based on the Date within the 2 set limits.
 
Upvote 0
Thanks. Try this then.

24 01 08.xlsm
HIJKLMN
1
2
3DateNameCityStart1/01/2024
41/01/2024LiamNewyorkEnd6/01/2024
56/01/2024NoahLondonCityNewyork
62/01/2024OliverNewyorkList1/01/2024Liam
710/01/2024Jamesswitzerland2/01/2024Oliver
83/01/2024ElijahNewyork3/01/2024Elijah
93/01/2024WilliamNewyork3/01/2024William
105/01/2024HenryNewyork5/01/2024Henry
112/01/2024LucasLondon  
127/01/2024Benjaminswitzerland  
134/01/2024TheodoreParis  
146/01/2024LouisParis  
157/01/2024ZaltanParis  
168/01/2024PiliphParis  
List
Cell Formulas
RangeFormula
M6:M16M6=IFERROR(AGGREGATE(15,6,H$4:H$16/((H$4:H$16>=M$3)*(H$4:H$16<=M$4)*(J$4:J$16=M$5)),ROWS(M$6:M6)),"")
N6:N16N6=IF(M6="","",INDEX(I:I,AGGREGATE(15,6,ROW(I$4:I$16)/((H$4:H$16=M6)*(J$4:J$16=M$5)),COUNTIF(M$6:M6,M6))))
 
Upvote 1
Solution
Thanks. Try this then.

24 01 08.xlsm
HIJKLMN
1
2
3DateNameCityStart1/01/2024
41/01/2024LiamNewyorkEnd6/01/2024
56/01/2024NoahLondonCityNewyork
62/01/2024OliverNewyorkList1/01/2024Liam
710/01/2024Jamesswitzerland2/01/2024Oliver
83/01/2024ElijahNewyork3/01/2024Elijah
93/01/2024WilliamNewyork3/01/2024William
105/01/2024HenryNewyork5/01/2024Henry
112/01/2024LucasLondon  
127/01/2024Benjaminswitzerland  
134/01/2024TheodoreParis  
146/01/2024LouisParis  
157/01/2024ZaltanParis  
168/01/2024PiliphParis  
List
Cell Formulas
RangeFormula
M6:M16M6=IFERROR(AGGREGATE(15,6,H$4:H$16/((H$4:H$16>=M$3)*(H$4:H$16<=M$4)*(J$4:J$16=M$5)),ROWS(M$6:M6)),"")
N6:N16N6=IF(M6="","",INDEX(I:I,AGGREGATE(15,6,ROW(I$4:I$16)/((H$4:H$16=M6)*(J$4:J$16=M$5)),COUNTIF(M$6:M6,M6))))


Thanks a lot.!! with huge respect. , I was cracking my head with the combination of index, offset, counta, match & small formulas. but you came up with a smart solution in a very short time.. much appreciate your dedication and knowledge sharing.
 
Upvote 0

Forum statistics

Threads
1,215,170
Messages
6,123,422
Members
449,099
Latest member
COOT

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