Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Calculating % occurence of a value derived from data array

Hi

I have the following data-set:

A B
20 Absconded
21 Voluntary
22 Voluntary
23 Voluntary
23 Absconded
23 Voluntary
27 Voluntary
27 Voluntary
27 Absconded
27 Voluntary

Where Column A = Week Numbers of a Calender Year & Column B is Reasons for
Service Terminations.

I need to report as follows:

Week 22:
Absconded = 0%
Voluntary = 100%

Week 23:
Absconded = 33%
Voluntary = 66%

Week 27:
Absconded = 25%
Voluntary = 75%

I need a formula that will calculate the % as indicated above, from the data
set provided. Thanks! Awesome Forum!!!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Calculating % occurence of a value derived from data array

C1: holds week number
C2 and C3 hold type of Service Termination


In D1:
=SUMPRODUCT(--($A$1:$A$10=$C$1),--($B$1:$B$10=C2))/COUNTIF($A$1:$A$10,$C$1)

copy down


"WildWill" wrote:

Hi

I have the following data-set:

A B
20 Absconded
21 Voluntary
22 Voluntary
23 Voluntary
23 Absconded
23 Voluntary
27 Voluntary
27 Voluntary
27 Absconded
27 Voluntary

Where Column A = Week Numbers of a Calender Year & Column B is Reasons for
Service Terminations.

I need to report as follows:

Week 22:
Absconded = 0%
Voluntary = 100%

Week 23:
Absconded = 33%
Voluntary = 66%

Week 27:
Absconded = 25%
Voluntary = 75%

I need a formula that will calculate the % as indicated above, from the data
set provided. Thanks! Awesome Forum!!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Calculating % occurence of a value derived from data array

Hi,

you may also use the following array formula (Ctrl+Shift+Enter)

SUM(IF(($A$1:$A$10=A$12)*($B$1:$B$10=A13),1))/COUNTIF($A$1:$A$10,A$12)


A12 has 22 and A13 has Absconded
--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"WildWill" wrote in message
...
Hi

I have the following data-set:

A B
20 Absconded
21 Voluntary
22 Voluntary
23 Voluntary
23 Absconded
23 Voluntary
27 Voluntary
27 Voluntary
27 Absconded
27 Voluntary

Where Column A = Week Numbers of a Calender Year & Column B is Reasons for
Service Terminations.

I need to report as follows:

Week 22:
Absconded = 0%
Voluntary = 100%

Week 23:
Absconded = 33%
Voluntary = 66%

Week 27:
Absconded = 25%
Voluntary = 75%

I need a formula that will calculate the % as indicated above, from the
data
set provided. Thanks! Awesome Forum!!!


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
Sorting data derived from formula newbie Excel Worksheet Functions 6 June 6th 08 09:03 PM
Find first occurence of a number in an array 7 cols wide Ricardo-SA Excel Worksheet Functions 3 April 5th 08 11:22 PM
Counting Occurence of Criteria in Multiple Lists of Data hockey14 Excel Discussion (Misc queries) 4 February 15th 08 01:50 AM
Identify occurence in "array" which meets condition(s) Melissa Excel Discussion (Misc queries) 3 August 18th 05 12:59 PM
First Occurence of Non Blank Cell in row array ExcelMonkey Excel Worksheet Functions 4 February 17th 05 10:05 PM


All times are GMT +1. The time now is 09:04 PM.

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"