Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Summing unique values

How can I sum the unique values (project ID's) in a list (project time log?)

Background:
A sheet in the workbook contains the Project Time Log with the columns:
Project ID, Date, Work Days (ex: 0.25 would equal 1/4 of a day.) A single
entry would be something like: SalesReportAugust, 9/22/06, 0.5. The
'SalesReportAugust' project would be listed multiple times with the dates it
was worked on and how much time it required, in fraction of a day.

What I need:
On another sheet (Project Workload Summary) I would like the unique Project
ID's to list with the total of days worked on. The tricky part is the list
of unique Project ID's. I know it can be done with a query or pivot table or
probably VBA but I would like a solution that does not require one to perform
any 'action' to update the list of unique Project ID's. Ideally, I would
prefer that every time another new Project ID is entered on the Project Time
Log sheet, it would automatically appear on the Project Workload Summary
sheet with its total thus far.

Is there a fancy formula that can accomplish this, maybe with a dynamic
range name mixed in?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Summing unique values

A1: ='Project Time Log'!A1
A2: =IF(ISERROR(MATCH(0,COUNTIF(A$1:A1,'Project Time
Log'!$A$1:$A$20&""),0)),"",
INDEX(IF(ISBLANK('Project Time Log'!$A$1:$A$20),"",'Project Time
Log'!$A$1:$A$20),MATCH(0,COUNTIF(A$1:A1,'Project Time
Log'!$A$1:$A$20&""),0)))

A2 is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

Copy A2 down

B1: =IF(A1="","",SUMIF('Project Time Log'!A:A,Sheet3!A1,'Project Time
Log'!C:C))

and copy down

Just make sure you copy down far enough to cope with additions.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Bill_S" wrote in message
...
How can I sum the unique values (project ID's) in a list (project time

log?)

Background:
A sheet in the workbook contains the Project Time Log with the columns:
Project ID, Date, Work Days (ex: 0.25 would equal 1/4 of a day.) A single
entry would be something like: SalesReportAugust, 9/22/06, 0.5. The
'SalesReportAugust' project would be listed multiple times with the dates

it
was worked on and how much time it required, in fraction of a day.

What I need:
On another sheet (Project Workload Summary) I would like the unique

Project
ID's to list with the total of days worked on. The tricky part is the

list
of unique Project ID's. I know it can be done with a query or pivot table

or
probably VBA but I would like a solution that does not require one to

perform
any 'action' to update the list of unique Project ID's. Ideally, I would
prefer that every time another new Project ID is entered on the Project

Time
Log sheet, it would automatically appear on the Project Workload Summary
sheet with its total thus far.

Is there a fancy formula that can accomplish this, maybe with a dynamic
range name mixed in?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 256
Default Summing unique values

Assuming that Sheet1, Column A, starting at A2, contains the Project ID,
try...

Sheet2!A2:

=SUM(IF(Sheet1!A2:A100<"",1/COUNTIF(Sheet1!A2:A100,Sheet1!A2:A100)))

....confirmed with CONTROL+SHIFT+ENTER.

Sheet2!B2, copied down:

=IF(ROWS(B$2:B2)<=$A$2,INDEX(Sheet1!A2:A$100,MATCH (TRUE,ISNA(MATCH(Sheet1
!A2:A$100,B$1:B1,0)),0)),"")

....confirmed with CONTROL+SHIFT+ENTER.

Now, all you have to do is replace...

Sheet1!A2:A$100

....with the name defining the dynamic range for Column A on Sheet1.

Hope this helps!

In article ,
Bill_S wrote:

How can I sum the unique values (project ID's) in a list (project time log?)

Background:
A sheet in the workbook contains the Project Time Log with the columns:
Project ID, Date, Work Days (ex: 0.25 would equal 1/4 of a day.) A single
entry would be something like: SalesReportAugust, 9/22/06, 0.5. The
'SalesReportAugust' project would be listed multiple times with the dates it
was worked on and how much time it required, in fraction of a day.

What I need:
On another sheet (Project Workload Summary) I would like the unique Project
ID's to list with the total of days worked on. The tricky part is the list
of unique Project ID's. I know it can be done with a query or pivot table or
probably VBA but I would like a solution that does not require one to perform
any 'action' to update the list of unique Project ID's. Ideally, I would
prefer that every time another new Project ID is entered on the Project Time
Log sheet, it would automatically appear on the Project Workload Summary
sheet with its total thus far.

Is there a fancy formula that can accomplish this, maybe with a dynamic
range name mixed in?

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
Print unique values omnibrown Excel Worksheet Functions 3 January 13th 06 12:40 AM
count and display unique values joe Excel Worksheet Functions 2 December 19th 05 01:11 AM
Count Unique Values annie Excel Worksheet Functions 1 June 9th 05 07:19 AM
searching for values and summing the corresponding values Simon Excel Worksheet Functions 1 February 4th 05 12:13 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


All times are GMT +1. The time now is 05:11 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"