Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DigitalGM
 
Posts: n/a
Default Need Assistance: Average/Remove Duplicates

I've got quite a little puzzle and I'm just too inexperienced to figure this
out.
I have 4 columns of data: Date-Agent-Score-Comment. An agent's name shows
up multiple times within the "Agent" column.
I need to move the Agent column to a new sheet while removing the duplicate
listings and average each agent's average score next to their names.
Also, will the data output be compatible with that nifty Autofilter feature?
  #2   Report Post  
Max
 
Posts: n/a
Default

One formulas play you could try ..

4 columns of data: Date-Agent-Score-Comment.


Assume the source table is in Sheet1, cols A to D, data from row2 down

Put in E2:

=IF(B2="","",IF(COUNTIF($B$2:B2,B2)1,"",ROW()))

Copy E2 down to say, E100,
to cover the max expected data in the table

(Leave E1 empty)

In Sheet2
----------
With headers in A1:B1 : Agent, AvScore

Put in A2:

=IF(ISERROR(SMALL(Sheet1!E:E,ROWS($A$1:A1))),"",IN DEX(Sheet1!B:B,MATCH(SMALL
(Sheet1!E:E,ROWS($A$1:A1)),Sheet1!E:E,0)))

Put in the formula bar for B2, array-enter
(i.e. press CTRL+SHIFT+ENTER):

=IF(A2="","",AVERAGE(IF(Sheet1!$B$2:$B$100=A2,Shee t1!$C$2:$C$100)))

Format B2 as number to 2 d.p. (say)

Select A2:B2, fill down to B100
(cover the same range as in Sheet1's col E)

Sheet2's cols A and B will return the unique list of Agents and their
corresponding average scores from Sheet1
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"DigitalGM" wrote in message
...
I've got quite a little puzzle and I'm just too inexperienced to figure

this
out.
I have 4 columns of data: Date-Agent-Score-Comment. An agent's name shows
up multiple times within the "Agent" column.
I need to move the Agent column to a new sheet while removing the

duplicate
listings and average each agent's average score next to their names.
Also, will the data output be compatible with that nifty Autofilter

feature?


  #3   Report Post  
DigitalGM
 
Posts: n/a
Default

It took me 45 minutes to figure out how to just do what you told me (not your
fault, never made an array), but you sir are a genius. Thank you very much.
I'm going to try to disassemble what you did so I can learn from it.
Hopefully within a month I'll have an idea of what you did.
Thanks again,
Edward

"Max" wrote:

One formulas play you could try ..

4 columns of data: Date-Agent-Score-Comment.


Assume the source table is in Sheet1, cols A to D, data from row2 down

Put in E2:

=IF(B2="","",IF(COUNTIF($B$2:B2,B2)1,"",ROW()))

Copy E2 down to say, E100,
to cover the max expected data in the table

(Leave E1 empty)

In Sheet2
----------
With headers in A1:B1 : Agent, AvScore

Put in A2:

=IF(ISERROR(SMALL(Sheet1!E:E,ROWS($A$1:A1))),"",IN DEX(Sheet1!B:B,MATCH(SMALL
(Sheet1!E:E,ROWS($A$1:A1)),Sheet1!E:E,0)))

Put in the formula bar for B2, array-enter
(i.e. press CTRL+SHIFT+ENTER):

=IF(A2="","",AVERAGE(IF(Sheet1!$B$2:$B$100=A2,Shee t1!$C$2:$C$100)))

Format B2 as number to 2 d.p. (say)

Select A2:B2, fill down to B100
(cover the same range as in Sheet1's col E)

Sheet2's cols A and B will return the unique list of Agents and their
corresponding average scores from Sheet1
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"DigitalGM" wrote in message
...
I've got quite a little puzzle and I'm just too inexperienced to figure

this
out.
I have 4 columns of data: Date-Agent-Score-Comment. An agent's name shows
up multiple times within the "Agent" column.
I need to move the Agent column to a new sheet while removing the

duplicate
listings and average each agent's average score next to their names.
Also, will the data output be compatible with that nifty Autofilter

feature?



  #4   Report Post  
Max
 
Posts: n/a
Default

You're welcome, Edward !
Glad to know you got it working <g
Thanks for the feedback ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"DigitalGM" wrote in message
...
It took me 45 minutes to figure out how to just do what you told me (not

your
fault, never made an array), but you sir are a genius. Thank you very

much.
I'm going to try to disassemble what you did so I can learn from it.
Hopefully within a month I'll have an idea of what you did.
Thanks again,
Edward



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Need Assistance: Average/Remove Duplicates

I'm a little confused. Can you explain what parts of the array we need to
change to match our sheets/columns?

I thought I had it, but I was wrong.

Thank you!



"Max" wrote:

One formulas play you could try ..

4 columns of data: Date-Agent-Score-Comment.


Assume the source table is in Sheet1, cols A to D, data from row2 down

Put in E2:

=IF(B2="","",IF(COUNTIF($B$2:B2,B2)1,"",ROW()))

Copy E2 down to say, E100,
to cover the max expected data in the table

(Leave E1 empty)

In Sheet2
----------
With headers in A1:B1 : Agent, AvScore

Put in A2:

=IF(ISERROR(SMALL(Sheet1!E:E,ROWS($A$1:A1))),"",IN DEX(Sheet1!B:B,MATCH(SMALL
(Sheet1!E:E,ROWS($A$1:A1)),Sheet1!E:E,0)))

Put in the formula bar for B2, array-enter
(i.e. press CTRL+SHIFT+ENTER):

=IF(A2="","",AVERAGE(IF(Sheet1!$B$2:$B$100=A2,Shee t1!$C$2:$C$100)))

Format B2 as number to 2 d.p. (say)

Select A2:B2, fill down to B100
(cover the same range as in Sheet1's col E)

Sheet2's cols A and B will return the unique list of Agents and their
corresponding average scores from Sheet1
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"DigitalGM" wrote in message
...
I've got quite a little puzzle and I'm just too inexperienced to figure

this
out.
I have 4 columns of data: Date-Agent-Score-Comment. An agent's name shows
up multiple times within the "Agent" column.
I need to move the Agent column to a new sheet while removing the

duplicate
listings and average each agent's average score next to their names.
Also, will the data output be compatible with that nifty Autofilter

feature?





  #6   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Need Assistance: Average/Remove Duplicates

Can you upload your sample file (.xls only) using a free filehost,
then post a link to it here?

For example, you could use this free filehost to upload:
http://www.freefilehosting.net/

Copy the "direct link" which is generated after you upload,
then paste it here

(Desensitize your sample as appropriate)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
"Annemarie" wrote in message
...
I'm a little confused. Can you explain what parts of the array we need to
change to match our sheets/columns?

I thought I had it, but I was wrong.

Thank you!



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Need Assistance: Average/Remove Duplicates

unfortunatly i cannot. i am working on this spreadsheet at work and that site
is blocked.

"Max" wrote:

Can you upload your sample file (.xls only) using a free filehost,
then post a link to it here?

For example, you could use this free filehost to upload:
http://www.freefilehosting.net/

Copy the "direct link" which is generated after you upload,
then paste it here

(Desensitize your sample as appropriate)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:17,400 Files:358 Subscribers:55
xdemechanik
---
"Annemarie" wrote in message
...
I'm a little confused. Can you explain what parts of the array we need to
change to match our sheets/columns?

I thought I had it, but I was wrong.

Thank you!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to indentify duplicates in a "Self Populating" field? Steven Excel Discussion (Misc queries) 2 March 28th 05 08:55 PM
Finding Duplicates nospaminlich Excel Worksheet Functions 4 February 5th 05 11:57 PM
Finding and Deleting duplicates in a column Brian Excel Worksheet Functions 3 February 5th 05 02:19 PM
Finding Duplicates and somehow flagging them in another column KenRamoska Excel Discussion (Misc queries) 1 January 31st 05 06:20 PM
removing duplicates testing in 2 coloms Warzel Excel Worksheet Functions 3 January 23rd 05 11:39 AM


All times are GMT +1. The time now is 03:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"