PC Review


Reply
Thread Tools Rate Thread

Count function without double counting

 
 
Yossy
Guest
Posts: n/a
 
      26th Feb 2009
I have following

A B C D and so on
1a 20 30 1000 20 = 100% - no of times there were
values in A,B,C,D
1b 0 500 6000 = 75% - no of times there were
values in A,B,C,D
1c 70 = 25%
2a 900 870 700 650 = 100%
2b 80 438 80 =75%
3 129 203 450 = 75%

How do I get the % of 1a 1b and 1c altogether. Here in this situation above
it is 100% since just looking at 1a I can tell. Is there a formula I can use
that can help me count 1a, 1b and 1c together without double counting, same
for 2a,2b e.t.c. I have multiple data ranging from Cell A to Cell .........
that I need to count the times of number occurence in them without double
counting using 1a, 1b, 1c as 1; 2a,2b as 2 and so on...

All help totally appreciated
 
Reply With Quote
 
 
 
 
~L
Guest
Posts: n/a
 
      26th Feb 2009
It looks messy, but this worked for me:

=COUNT(OFFSET(INDIRECT("B"&MATCH(IF(ISNUMBER(A1),A1,LEFT(A1,LEN(A1)-1)&"?"),$A$1:$A$6,0)),0,0,COUNTIF($A$1:$A$6,IF(ISNUMBER(A1),A1,LEFT(A1,LEN(A1)-1)&"?")),4))/(COUNTIF($A$1:$A$6,IF(ISNUMBER(A1),A1,LEFT(A1,LEN(A1)-1)&"?"))*4)

If the letters after the number ever go to two-letter sequences, or if there
are spaces, this will fail.


"Yossy" wrote:

> I have following
>
> A B C D and so on
> 1a 20 30 1000 20 = 100% - no of times there were
> values in A,B,C,D
> 1b 0 500 6000 = 75% - no of times there were
> values in A,B,C,D
> 1c 70 = 25%
> 2a 900 870 700 650 = 100%
> 2b 80 438 80 =75%
> 3 129 203 450 = 75%
>
> How do I get the % of 1a 1b and 1c altogether. Here in this situation above
> it is 100% since just looking at 1a I can tell. Is there a formula I can use
> that can help me count 1a, 1b and 1c together without double counting, same
> for 2a,2b e.t.c. I have multiple data ranging from Cell A to Cell .........
> that I need to count the times of number occurence in them without double
> counting using 1a, 1b, 1c as 1; 2a,2b as 2 and so on...
>
> All help totally appreciated

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Double Counting =?Utf-8?B?U3RldmUgQ09S?= Microsoft Access Reports 3 9th Nov 2007 02:20 PM
counting function but not double counting duplicates =?Utf-8?B?SlJE?= Microsoft Excel Worksheet Functions 2 7th Nov 2007 06:43 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. =?Utf-8?B?Sg==?= Microsoft Excel Worksheet Functions 0 27th Apr 2007 05:52 AM
Pivot table count function not counting all data. =?Utf-8?B?SXJtYQ==?= Microsoft Excel Misc 3 17th May 2006 09:36 PM
Double Counting in Pivot Tables CYB Microsoft Excel Misc 0 11th Aug 2005 12:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 AM.