Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default COUNTIF with extension

Actually, you might be able to use CSE formulas to do this. Assuming
your data is in A1:B5. You could use the following formula:
=SUM(IF(A$1:A$5=D2,IF(B$1:B$5<E1,1,0)))

Cell D2 has the color you're trying to count (e.g. White) and cell E1
has the cutoff date. When you enter the formula, you have to use
Control+Shift+Enter to enter it as an array formula.

Use this formula in 3 different cells...1 for each unique color.


On Wed, 27 Aug 2003 10:58:20 -0700, "Simon"
wrote:

I think some programming is needed for what I require,
because I counld not find any functions to achieve it.

White 10/02/03
Blue 11/02/03
Red 12/02/03
Red 12/07/03
White 12/07/03

I need a function to tell me for each colour who many
have dates before 01/06/03.

So producing a function that I pass the String of the
colour and a set date (01/06/03) and it returns the
number of occurances of that colour before the specified
date.

Hopefully I have made it clear what required of the
function.

I hope some will have some idea.

Many Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default COUNTIF with extension

Thank you, this worked great.


-----Original Message-----
Actually, you might be able to use CSE formulas to do

this. Assuming
your data is in A1:B5. You could use the following

formula:
=SUM(IF(A$1:A$5=D2,IF(B$1:B$5<E1,1,0)))

Cell D2 has the color you're trying to count (e.g.

White) and cell E1
has the cutoff date. When you enter the formula, you

have to use
Control+Shift+Enter to enter it as an array formula.

Use this formula in 3 different cells...1 for each

unique color.


On Wed, 27 Aug 2003 10:58:20 -0700, "Simon"
wrote:

I think some programming is needed for what I require,
because I counld not find any functions to achieve it.

White 10/02/03
Blue 11/02/03
Red 12/02/03
Red 12/07/03
White 12/07/03

I need a function to tell me for each colour who many
have dates before 01/06/03.

So producing a function that I pass the String of the
colour and a set date (01/06/03) and it returns the
number of occurances of that colour before the

specified
date.

Hopefully I have made it clear what required of the
function.

I hope some will have some idea.

Many Thanks


.

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
xlsx extension Jason Sawyer Excel Discussion (Misc queries) 3 September 11th 09 08:56 AM
.xls Extension Felix Excel Discussion (Misc queries) 2 July 9th 08 09:34 PM
Transformation d'images avec une extension .jpg ou .jpeg en images avec extension .bmp ou .ico imej-clavier Excel Discussion (Misc queries) 1 May 28th 05 05:52 PM
.xlb extension Tanya T. Excel Discussion (Misc queries) 5 April 28th 05 12:12 AM
xls extension winjon Excel Discussion (Misc queries) 1 March 3rd 05 11:20 AM


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