LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Count if unique

forget this one
I might have thought of sth. better than that
;-)

On 21 Kwi, 15:40, Jarek Kujawa wrote:
this array-entered formula

=SUM(IF((COUNTIF($A$2:$A$9,$A$2:$A$9)=1)*($B$22:$B $29="yes"),1,))+SUM
(IF(($B$2:$B$9="yes")*(COUNTIF($A$2:$A$9,$A$23:$A$ 29)1),1,))/SUM(IF
(($B$2:$B$9="yes")*(COUNTIF($A$2:$A$9,$A$2:$A$29) 1),1,))

will bring required result unless you have blanks in your range

On 21 Kwi, 15:05, "Gareth.Evans" wrote:



On Apr 21, 1:47Â*pm, Jarek Kujawa wrote:


shouldn't the formula in your example return 1? as there are two 10's


if so try:


=SUMPRODUCT((COUNTIF($A$22:$A$29,$A$22:$A$29)=1)*( $B$22:$B$29="yes"))


OR
=SUM(IF((COUNTIF($A$2:$A$9,$A$2:$A$9)=1)*($B$2:$B$ 9="yes"),1,))
(CTRL+SHIFT+ENTER this formula as it is an array-formula (instead of
simply entering it). If you insert it correctly curly braces { } will
show)


pls click YES if this post helped you


On 21 Kwi, 14:34, "Gareth.Evans" wrote:


Hi all, thank you in advance for your help ,and help in past.


I am trying to count the number of "yes" in column C if Column A has a
unique value, see below:


Â*| Â* Â* Â* Â* A Â* Â* Â* Â* Â* | Â* Â* Â* Â* Â* B Â* Â* Â* Â* | Â* Â* Â* Â* C Â* Â* Â* Â*|
Â* Â* Â* Â* Â* 10 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* yes
Â* Â* Â* Â* Â* 10 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* yes
Â* Â* Â* Â* Â* 11 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* no
Â* Â* Â* Â* Â* 11 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* no
Â* Â* Â* Â* Â* 12 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* yes
Â* Â* Â* Â* Â* 13 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* no
Â* Â* Â* Â* Â* 13 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* no
Â* Â* Â* Â* Â* 13 Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*N/A Â* Â* Â* Â* Â* Â* Â* Â* no


Basically this is part of verifying invoices, A being the invoice
number, each invoice can have mnore then 1 entry thus there being two
10's.


Column C represtent weather that invoice entry has been a success or
not.


What i need to know is the number of invoices that were a success
(Column c)


So.... in the example above the formula would return 2, as invoice 10
and 12 were a success but not he others.


I hope i have made sense, i have been trying to figure this out for a
few days noe, i have got as far as working out the number of unique
entriers in column a by useing array formulas, but get stuck.


Hope someone can help


Many Thanks- Hide quoted text -


- Show quoted text -


No, it would return 2 because both invoice 10 and invoice 12 passed.- Ukryj cytowany tekst -


- Poka¿ cytowany tekst -- Ukryj cytowany tekst -


- Pokaż cytowany tekst -




 
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
Count unique Spencer Hutton Excel Worksheet Functions 4 February 16th 09 09:34 PM
count unique MAANI Excel Worksheet Functions 4 October 22nd 08 06:02 AM
count unique MAANI Excel Worksheet Functions 3 October 22nd 08 04:42 AM
Attempting to sort unique/only count first record in each unique g MJW[_2_] Excel Discussion (Misc queries) 3 August 10th 07 02:56 PM
Count Unique Values annie Excel Worksheet Functions 1 June 9th 05 07:19 AM


All times are GMT +1. The time now is 05:07 AM.

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"