Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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.
Reply With Quote
 



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 04:56 AM.


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