Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Counting number of weeks to complete a task

Hi,

Can anyone help me please.
I have a spreadsheet and I am trying to calculate how many weeks a
task took to complete.
The task does not necessairly have to be completed in consecutive
order.

A brief example:

Week Task
1 Painting
1 Painting
1 Drawing
2 Drawing
2 Drawing
2 Drawing
3 Painting
3 Drawing
3 Drawing

From the table the Painting task was completed in 2 weeks and the
Drawing task was completed in 3 weeks.

I would appreciate your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Counting number of weeks to complete a task

Try this:

=SUM(N(FREQUENCY(IF(Task="Painting",MATCH(Week,Wee k,0)),MATCH(Week,Week,0))0))

=SUM(N(FREQUENCY(IF(Task="Drawing",MATCH(Week,Week ,0)),MATCH(Week,Week,0))0))

Both formulas are required with CRTL+SHIFT+ENTER, not just ENTER


" wrote:

Hi,

Can anyone help me please.
I have a spreadsheet and I am trying to calculate how many weeks a
task took to complete.
The task does not necessairly have to be completed in consecutive
order.

A brief example:

Week Task
1 Painting
1 Painting
1 Drawing
2 Drawing
2 Drawing
2 Drawing
3 Painting
3 Drawing
3 Drawing

From the table the Painting task was completed in 2 weeks and the
Drawing task was completed in 3 weeks.

I would appreciate your help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Counting number of weeks to complete a task

On Sun, 13 Apr 2008 05:26:04 -0700 (PDT), wrote:

Hi,

Can anyone help me please.
I have a spreadsheet and I am trying to calculate how many weeks a
task took to complete.
The task does not necessairly have to be completed in consecutive
order.

A brief example:

Week Task
1 Painting
1 Painting
1 Drawing
2 Drawing
2 Drawing
2 Drawing
3 Painting
3 Drawing
3 Drawing

From the table the Painting task was completed in 2 weeks and the
Drawing task was completed in 3 weeks.

I would appreciate your help.


One way:

You could download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr/morefunc/english

Then use this **array** formula:

=COUNT(UNIQUEVALUES(IF(Task="painting",Week)))

To enter an **array** formula, hold down <ctrl<shift while hitting <enter.
XL will place braces {...} around the formula.

Task & Week are the named ranges for your data.
--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,180
Default Counting number of weeks to complete a task

Or use Pivot Table:
http://www.freefilehosting.net/download/3fa8i
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting number of weeks to complete a task

Assume:

A2:A10 = Week
B2:B10 = Task

D2:D3 = Painting; Drawing

If there are no empty cells within Week, try this arry formula** :

=COUNT(1/FREQUENCY(IF(Task=D2,Week),Week))

If there might be empty cells within Week, use this version** :

=COUNT(1/FREQUENCY(IF((Task=D2)*(Week<""),Week),Week))

Copy down to D3.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


wrote in message
...
Hi,

Can anyone help me please.
I have a spreadsheet and I am trying to calculate how many weeks a
task took to complete.
The task does not necessairly have to be completed in consecutive
order.

A brief example:

Week Task
1 Painting
1 Painting
1 Drawing
2 Drawing
2 Drawing
2 Drawing
3 Painting
3 Drawing
3 Drawing

From the table the Painting task was completed in 2 weeks and the
Drawing task was completed in 3 weeks.

I would appreciate your help.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Counting number of weeks to complete a task

On Apr 14, 3:44*am, "T. Valko" wrote:
Assume:

A2:A10 = Week
B2:B10 = Task

D2:D3 = Painting; Drawing

If there are no empty cells within Week, try this arry formula** :

=COUNT(1/FREQUENCY(IF(Task=D2,Week),Week))

If there might be empty cells within Week, use this version** :

=COUNT(1/FREQUENCY(IF((Task=D2)*(Week<""),Week),Week))

Copy down to D3.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP

wrote in message

...



Hi,


Can anyone help me please.
I have a spreadsheet and I am trying to calculate how many weeks a
task took to complete.
The task does not necessairly have to be completed in consecutive
order.


A brief example:


Week * Task
1 * * * * *Painting
1 * * * * *Painting
1 * * * * *Drawing
2 * * * * *Drawing
2 * * * * *Drawing
2 * * * * *Drawing
3 * * * * *Painting
3 * * * * *Drawing
3 * * * * *Drawing


From the table the Painting task was completed in 2 weeks and the
Drawing task was completed in 3 weeks.


I would appreciate your help.- Hide quoted text -


- Show quoted text -


Thanks everyone!
You are lifesavers!
Biff's worked the best!
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting number of weeks to complete a task

wrote in message
...
On Apr 14, 3:44 am, "T. Valko" wrote:
Assume:

A2:A10 = Week
B2:B10 = Task

D2:D3 = Painting; Drawing

If there are no empty cells within Week, try this arry formula** :

=COUNT(1/FREQUENCY(IF(Task=D2,Week),Week))

If there might be empty cells within Week, use this version** :

=COUNT(1/FREQUENCY(IF((Task=D2)*(Week<""),Week),Week))

Copy down to D3.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP

wrote in message

...



Hi,


Can anyone help me please.
I have a spreadsheet and I am trying to calculate how many weeks a
task took to complete.
The task does not necessairly have to be completed in consecutive
order.


A brief example:


Week Task
1 Painting
1 Painting
1 Drawing
2 Drawing
2 Drawing
2 Drawing
3 Painting
3 Drawing
3 Drawing


From the table the Painting task was completed in 2 weeks and the
Drawing task was completed in 3 weeks.


I would appreciate your help.- Hide quoted text -


- Show quoted text -
Thanks everyone!
You are lifesavers!
Biff's worked the best!


You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Counting number of weeks to complete a task

Hi,

You may also use the SUMIF() formula as follows:

=SUMIF(B1:B9,"="&A11,A1:A9)

A11 has either Painting or drawing.

--
Regards,

Ashish Mathur
www.ashishmathur.com

"T. Valko" wrote in message
...
wrote in message
...
On Apr 14, 3:44 am, "T. Valko" wrote:
Assume:

A2:A10 = Week
B2:B10 = Task

D2:D3 = Painting; Drawing

If there are no empty cells within Week, try this arry formula** :

=COUNT(1/FREQUENCY(IF(Task=D2,Week),Week))

If there might be empty cells within Week, use this version** :

=COUNT(1/FREQUENCY(IF((Task=D2)*(Week<""),Week),Week))

Copy down to D3.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP

wrote in message

...



Hi,


Can anyone help me please.
I have a spreadsheet and I am trying to calculate how many weeks a
task took to complete.
The task does not necessairly have to be completed in consecutive
order.


A brief example:


Week Task
1 Painting
1 Painting
1 Drawing
2 Drawing
2 Drawing
2 Drawing
3 Painting
3 Drawing
3 Drawing


From the table the Painting task was completed in 2 weeks and the
Drawing task was completed in 3 weeks.


I would appreciate your help.- Hide quoted text -


- Show quoted text -
Thanks everyone!
You are lifesavers!
Biff's worked the best!


You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP

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
Excel cannot complete this task with available resoucres deathguy Excel Discussion (Misc queries) 1 August 17th 06 12:35 AM
Excel cannot complete this task with available resources. ChopperChand Excel Discussion (Misc queries) 0 April 20th 06 04:21 PM
Excel cannot complete this task starguy Excel Discussion (Misc queries) 7 April 14th 06 11:52 AM
how do you put a complete task check box on excel Flea New Users to Excel 0 November 16th 05 10:09 AM
Sharing Worksheet cannot complete task Spirit130 Excel Worksheet Functions 0 October 6th 05 01:55 PM


All times are GMT +1. The time now is 10:34 AM.

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

About Us

"It's about Microsoft Excel"