Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Robin Faulkner
 
Posts: n/a
Default Excel IF and COUNT functions

I need to write an IF statement that look in the first column for a set value
and then counts the number of repetitions in column two. Column two contains
dates which contain duplicates. The statement needs to count dupicate dates
as single entries.
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Try:

=SUM(N(FREQUENCY(IF(A1:A100=E1,MATCH
(B1:B100,B1:B100,0)),MATCH(B1:B100,B1:B100,0))0))

Array-entered, meaning press ctrl + shift + enter, whe

A1:A100 = 1st column
B1:B100 = 2nd column (dates)
E1 = value to look for in 1st column

HTH
Jason
Atlanta, GA



-----Original Message-----
I need to write an IF statement that look in the first

column for a set value
and then counts the number of repetitions in column

two. Column two contains
dates which contain duplicates. The statement needs to

count dupicate dates
as single entries.
.

  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=COUNT(1/FREQUENCY(IF(($B$1:$B$100<"")*($A$1:$A$100=E1),MA TCH($B$1:$B$100,$B$1:$B$100,0)),ROW(INDEX($B$1:$B$ 100,0,0))-ROW($B$1)+1))

which must be confirmed with control+shift+enter instead of just with enter.
Robin Faulkner wrote:
I need to write an IF statement that look in the first column for a set value
and then counts the number of repetitions in column two. Column two contains
dates which contain duplicates. The statement needs to count dupicate dates
as single entries.

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
how can I count distinct names in an excel list? RPC@Frito Excel Discussion (Misc queries) 5 February 3rd 05 09:12 PM
Formula to make Excel count business days/skip weekends? Inga Excel Worksheet Functions 1 November 17th 04 07:45 PM
How do I get a count when I filter an excel worksheet? Cheap50 Excel Worksheet Functions 1 November 11th 04 04:18 AM
Excel: How to return count for each cell within date range criter. Louisa Excel Worksheet Functions 0 November 5th 04 11:58 AM
How can I use count function in excel where I have several criter. Princess V Excel Worksheet Functions 14 November 3rd 04 10:18 PM


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