Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > Countif/Sumif conditional help


Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2005, 08:36 PM
tsaal tsaal is offline
Newcomer
 
Join Date: Oct 2005
Posts: 8
Default Countif/Sumif conditional help


I have some conditional formats in place that change the fill color in several columns. I am having difficulty trying to "countif" and "sumif" based on a fill color that results from a conditional format. Any help in this matter would be GREATLY appreciated.
Reply With Quote
  #2  
Old 12-16-2005, 02:45 AM
italkid's Avatar
italkid italkid is offline
Down...

Retired Moderator
* Expert *
 
Join Date: Dec 2002
Location: Belgium.
Posts: 6,731
Default

You could use a SUMIF or SUMPRODUCT formula to perform calculations based upon the same criteria as you use for the conditional formatting.
Reply With Quote
  #3  
Old 12-17-2005, 01:21 PM
tsaal tsaal is offline
Newcomer
 
Join Date: Oct 2005
Posts: 8
Default Each cell is different.

Quote:
Originally Posted by italkid
You could use a SUMIF or SUMPRODUCT formula to perform calculations based upon the same criteria as you use for the conditional formatting.
Thanks for your reply.
Each cell that I need to count/sum has different calculations based on dates. If the date is "within 30 days" the conditional formatting sets the cell shade to yellow. When it's past due, the conditional formatting sets the cell shade to red.
What I am in hopes of doing is to count/sum if for those that are past due based on the shade of the cell being red. Same for those within 30 days... sumif cell shade is yellow.
This is not something I have seen before, so I am in hopes that someone has a suggestion.
Reply With Quote
  #4  
Old 12-17-2005, 03:39 PM
italkid's Avatar
italkid italkid is offline
Down...

Retired Moderator
* Expert *
 
Join Date: Dec 2002
Location: Belgium.
Posts: 6,731
Default

Ok, I have now idea how your data looks like, but my idea was to use something like this.... see attachment.
Attached Files
File Type: zip Conditional counting.zip (1.7 KB, 7 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->