ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Is there an equivalent to SQLs GROUP BY? (https://www.excelbanter.com/new-users-excel/12088-there-equivalent-sqls-group.html)

JCP

Is there an equivalent to SQLs GROUP BY?
 
Yet again, I know what I want to do, but have no idea how to to it.

Say I've got
Name Location Date Hours
Fred Town1 1-Jan 8
Fred Town2 2-Jan 8
Fred Town1 3-Jan 10
Joe Town1 1-Jan 12
Joe Town2 2-Jan 2
etc.

How can I group these on location and Name to get the result:
Fred Town1 Jan 18
Fred Town2 Jan 8
Joe Town1 Jan 12
Joe Town2 Jan 2

Any suggestions?
TIA
J

Nick Hodge

J

Perfect data structure for a pivot table

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"JCP" wrote in message
...
Yet again, I know what I want to do, but have no idea how to to it.

Say I've got
Name Location Date Hours
Fred Town1 1-Jan 8
Fred Town2 2-Jan 8
Fred Town1 3-Jan 10
Joe Town1 1-Jan 12
Joe Town2 2-Jan 2
etc.

How can I group these on location and Name to get the result:
Fred Town1 Jan 18
Fred Town2 Jan 8
Joe Town1 Jan 12
Joe Town2 Jan 2

Any suggestions?
TIA
J




JulieD

for details on using pivot tables - see www.contextures.com/tiptech.html

Cheers
JulieD

"Nick Hodge" wrote in message
...
J

Perfect data structure for a pivot table

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS

"JCP" wrote in message
...
Yet again, I know what I want to do, but have no idea how to to it.

Say I've got
Name Location Date Hours
Fred Town1 1-Jan 8
Fred Town2 2-Jan 8
Fred Town1 3-Jan 10
Joe Town1 1-Jan 12
Joe Town2 2-Jan 2
etc.

How can I group these on location and Name to get the result:
Fred Town1 Jan 18
Fred Town2 Jan 8
Joe Town1 Jan 12
Joe Town2 Jan 2

Any suggestions?
TIA
J







All times are GMT +1. The time now is 03:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com