#1   Report Post  
Posted to microsoft.public.excel.misc
Vic Vic is offline
external usenet poster
 
Posts: 117
Default Complex Counter

I need a counter in H2 that counts the following:
If J2 10/27/2009 then add 17 to H2,
Add 10 to H2 for every cell from M2 thru AS2 that is greater than 10/27/2009,
If AU2 10/27/2009 then add 11 to H2,
Add 1 to H2 for every cell from AV2 thru CA2 that is greater than 10/27/2009,
If CC2 10/27/2009 then add 10 to H2.
I will need to copy the formula in H2 down to H521.
Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Complex Counter

Assuming the date of 10/27/2009 is in a cell somewhere, say A1:
=17*(J2$A$1)+10*COUNTIF(M2:AS2,""&$A$1)+11*(AU2 $A$1)+1*COUNTIF(AV2:CA2,""&$A$1)+10*(CC2$A$1)

Note how the constants are multiplied against the various arguements to
produce your total.

--
Best Regards,

Luke M
"Vic" wrote in message
...
I need a counter in H2 that counts the following:
If J2 10/27/2009 then add 17 to H2,
Add 10 to H2 for every cell from M2 thru AS2 that is greater than
10/27/2009,
If AU2 10/27/2009 then add 11 to H2,
Add 1 to H2 for every cell from AV2 thru CA2 that is greater than
10/27/2009,
If CC2 10/27/2009 then add 10 to H2.
I will need to copy the formula in H2 down to H521.
Thank you.



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
complex color fill conditions- if statements or complex formula? lilly8008 Excel Discussion (Misc queries) 1 December 18th 09 04:57 AM
1+2+3+4+........... Counter 23Hitamn Excel Discussion (Misc queries) 3 August 28th 07 10:17 AM
Complex Index Match Help (or at least complex to me) Jennifer Reitman Excel Discussion (Misc queries) 3 August 10th 06 08:51 PM
Counter Sdbenn90 Excel Discussion (Misc queries) 4 January 9th 06 11:43 AM
Counter Polina Excel Discussion (Misc queries) 2 May 27th 05 09:52 PM


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