Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2011, 05:48 AM
beb1227 beb1227 is offline Count By Color Windows XP Count By Color Office 2007
Novice
Count By Color
 
Join Date: May 2011
Posts: 18
beb1227 is on a distinguished road
Default Count By Color

I would like to know if it is possible to count by Color...I have seen several posts that this can be done.



I would like to have this done within a given date range....

Here is the basic formula I am using....to get the total count within my defined date range.

=SUMPRODUCT(($D$8:$D$999>=$F$2)*($D$8:$D$999<=$F$3 ))

Any help on this is greatly appreciated
Reply With Quote
  #2  
Old 06-15-2011, 07:13 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Count By Color Windows 7 32bit Count By Color Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

What is the underlying logic that determines if a cell is coloured in a particular way?

It is better to use this underlying logic to do the conditional count rather than the cell colour itself.
__________________
Colin

RAD Excel Blog
Reply With Quote
  #3  
Old 06-15-2011, 08:10 AM
beb1227 beb1227 is offline Count By Color Windows XP Count By Color Office 2007
Novice
Count By Color
 
Join Date: May 2011
Posts: 18
beb1227 is on a distinguished road
Default

this is a minor piece of what i am looking to build....

but the color is used when a certain person does something....each memeber of the team has a color.

so say step one is process a request.....I would want it to look down the column for Process request, in the given date range....and tell me how many times it sees the color yellow, Gray, Blue....etc

granted the sheet that I would do this....each color would have its own cell...so a tolal for yellow
a total for blue
a total for gray.
Reply With Quote
  #4  
Old 06-15-2011, 08:27 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Count By Color Windows 7 32bit Count By Color Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,

I'll explain the problem(s) with counting by colours.

Excel 2007 does not have a built-in worksheet function which can count by colour. This means that you would have to write a custom VBA function (this is called a "UDF") to do it. Even then, the UDF wouldn't automatically recalculate when the colour of a cell changes because changing the colour of a cell doesn't trigger a calculation event. This solution isn't very good.

If the colour of the cell is determined by the name of a person then you should aim to count by name rather than by colour. You can do this using COUNTIF() or you could even use a pivot table.
__________________
Colin

RAD Excel Blog
Reply With Quote
  #5  
Old 06-15-2011, 08:46 AM
beb1227 beb1227 is offline Count By Color Windows XP Count By Color Office 2007
Novice
Count By Color
 
Join Date: May 2011
Posts: 18
beb1227 is on a distinguished road
Default

yeah, that is kinda what I have thought when reading how to do this...if doing it at all.

this is a minor piece of the table I am trying to set up....but would have been cool if it could be done easily.

at this point the names are not put in though.....seeing as the log is already way to large as it is.

thanks for the help on this issue.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Count If Formula beb1227 Excel 10 06-19-2011 11:19 AM
Count By Color Count in Excel zanat0s Excel 3 06-09-2011 10:53 AM
Don't count hidden slides Lu_Argentina PowerPoint 0 10-12-2010 02:12 PM
How to Count from Different Cells? Shahzad Excel 3 06-26-2010 01:06 AM
Don't count 0 in a chart Rmaisone Excel 0 08-21-2006 12:26 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft