Counting Cells with Color Formats
I have a data base in which changes were made in various records.
These record changes were highlighted by formatting the cell in a color (yellow in my case).
Is there a way to count the number of records that were formatted in yellow?
Anwsers to the Problem Counting Cells with Color Formats
Hi,
Here's a small user defined function to do it.
ALT+F11 to open VB editor.
Right click 'ThisWorkbook' and insert module and paste the code in on the right.
Close VB editor.
Back on the worksheet call with
=CountColour(A1:C17,A3)
where A1:C17 is the range to count and A3 has the background colour you want to count.
Note changing a cell colour won't call this function but it will recalculate when the worksheet calculates or if you tap F9
Function CountColour(rng As Range, clr As Range)
Application.Volatile
Dim c As Range
For Each c In rng
If c.Interior.ColorIndex = clr.Interior.ColorIndex Then
CountColour = CountColour + 1
End If
Next
End Function
If this post answers your question, please mark it as the Answer.
Mike H
Windows Error Reporting - To Fix Counting Cells with Color Formats
- Go to Start button.
- Open Control Panel.
- Go to Windows Error Reporting.
- Click on System and Maintenance, then click Problem Reports and Solutions.
- Next, click Change Settings located on the left side panel of the Problem Reports and Solutions window.
- Select an option to configure how you want Windows to look for a solution to your problems. You may allow Windows to do it automatically or ask you every time to check if problem occurs.
- Next, click the Advanced settings link.
- Select Off to turn off Error Reporting.
Another Safe way to Fix the Problem: Counting Cells with Color Formats:
How to Fix Counting Cells with Color Formats with SmartPCFixer?
1. Click the button to download Error Fixer . Install it on your system. Open it, and it will scan your computer. The junk files will be shown in the scan result.
2. After the scan is done, you can see the errors and problems which need to be fixed.
3. The Fixing part is done, the speed of your computer will be much higher than before and the errors have been removed.
Related: How Can You Update & Download NVidia 6100, 6800 GS/XT Display Driver v.260.89 WHQL,Where to Download NVidia GeForce 8800 GT WHQL-certified driver v.196.21,How to Update & Download NVidia GeForce Go 7400 Display Driver v.260.19.12,[Solved] Download NVidia GeForce GTX 460M Driver v.331.82,Download NVidia Quadro Plex Model IV VGA Driver v.304.43 Certified,Way to Download RealTek RTL8100C(L) Driver v.5.01,Way to Download RealTek RTL8100E Drivers v.694,Way to Update & Download RealTek RTL8101L Auto Installation Program v.6.110 driver,Method to Update & Download RealTek RTL8111G PXE and RPL ROM code v.2.58 driver,How to Update & Download RealTek RTL8411B(N) Driver v.10.003,Best Way to Update & Download ASUS A53SV nVidia Graphics Driver v.8.17.12.6686,Method to Herunterladen ASUS K75VJ Intel Rapid Storage Technology Treiber v.11.6.0.1030,How Can You Update & Download ASUS CG8580 Intel Chipset Driver v.9.3.0.1019,Method to Update & Download ASUS K41VD Intel INF Update Driver v.9.1.1.1015,Way to Update & Download ASUS Pro70T NB Probe v.3.0.0026 driver
Read More: [Solved] Copying files to network share through logout script - error.,Troubleshooter of Error: could Microsoft Dynamics RMS, Microsoft Dynamics GP and Simplicity be integreated ?,Creating System Image on external hard drive error 0x80780119 not enough disc space [Anwsered],[Solved] CorelDRAW6 will open in WIN7 but not import any older CDR files created in WINXP. It freezes when \"Import\" is requested.,How Can I Fix - Create a inbound rule, point it to virtual dj, and block it from accessing the internet. 4. Create a outbound rule, point it to virtual dj and block it from accessing the internet.?,Closing Internet Explorer causes error,Compare 2 Tables and Calculate the PROFIT Faster,Computer goes to Windows Boot Manager after Start,Connect to one of my network computer remotely when don't allow exception box Marked,computer locking up randomly
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.