Excel_Query
New Member
- Joined
- Oct 20, 2005
- Messages
- 32
I have been trying to figure out this out for a while now, PLEASE help out if you can
I have a table with 3 fields... tID, Name, Hours
tID is NOT unique in the table
tIDs Can have different names
Hours is what I will use to find the total hours
I want my query to group by tID only, and show the SumofHours
BUT... I want to show the name as well(without Grouping by it), I want my query to Show me the name that is MOST Recurring.
So lets say that tID '1' occurs four times, with the Names...
'Joey' 'John' 'Johan 'John' 'Joe'...
Grouping by tID '1' I would want to see 'John' under the name field (since its the highest by count)
Baisically I just want to create a list of Unique tIDs with the most likely correct name on its side
At first I thought I could just use the Max function from the drop down menu, but that only uses the one that is alphabetically a maximum... I need it to be a maximum by count..
Your help would be appreciated,
Ayyad
I have a table with 3 fields... tID, Name, Hours
tID is NOT unique in the table
tIDs Can have different names
Hours is what I will use to find the total hours
I want my query to group by tID only, and show the SumofHours
BUT... I want to show the name as well(without Grouping by it), I want my query to Show me the name that is MOST Recurring.
So lets say that tID '1' occurs four times, with the Names...
'Joey' 'John' 'Johan 'John' 'Joe'...
Grouping by tID '1' I would want to see 'John' under the name field (since its the highest by count)
Baisically I just want to create a list of Unique tIDs with the most likely correct name on its side
At first I thought I could just use the Max function from the drop down menu, but that only uses the one that is alphabetically a maximum... I need it to be a maximum by count..
Your help would be appreciated,
Ayyad