A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Complex Counter



 
 
Thread Tools Display Modes
  #1  
Old May 17th, 2010, 03:02 PM posted to microsoft.public.excel.misc
Vic
external usenet poster
 
Posts: 182
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  
Old May 17th, 2010, 04:01 PM posted to microsoft.public.excel.misc
Luke M[_4_]
external usenet poster
 
Posts: 451
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.



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.