repeting values in group by clause

Waqas ali

Board Regular
Joined
Nov 6, 2010
Messages
163
I have one query. I calculated some columns by aggregate sum function. In one column i want to get only one value instead of repeting again and again.

A 6 8 Ahmad
A 7 9 ali
A 4 2 tariq

I want to see A one time with first value.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I want to see A one time with first value.
You need to define what you mean by "first" value, in database terms. Can you sort by some field that the value you want will always be the "first" one?
If you have an Autonumber field, that often will serve the purpose.
 
Upvote 0
You can create an Aggregate Query, to identify a single record for each group, and link that back to your original table, and then you could suppress it on the succeeding records. But as I mentioned in my first response, we need to determine how exactly you will be ordering the records, so we know which field and Aggregate function to use.

So feel free to take a crack at it. If you want more help on it, you will need to answer the question I answered above as well as telling us the table and key field names (the name of the field the "A" appears in, as well as the name of the field we will be using in the Aggregate Query).
 
Upvote 0

Forum statistics

Threads
1,221,860
Messages
6,162,479
Members
451,769
Latest member
adyapratama

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