Need to write a formula based on color of cel
Solved/Closed
Raj
-
Feb 26, 2010 at 08:52 AM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Oct 17, 2010 at 01:06 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Oct 17, 2010 at 01:06 PM
Related:
- Need to write a formula based on color of cel
- How to write & in laptop - Guide
- How to write pi on keyboard - Guide
- Logitech formula vibration feedback wheel driver - Download - Drivers
- Color coding of rj45 - Guide
- Number to words in excel formula - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
766
Feb 26, 2010 at 01:47 PM
Feb 26, 2010 at 01:47 PM
If you are looking for a formula, I am not sure if there is any inbuild excel formula to do that. You can create your own function to do that
as per your example , in b1 enter
=dispColorIndex(A1)
Public Function dispColorIndex(targetCell As Range) As Variant Dim colorIndex As Long colorIndex = targetCell.Interior.Color If (colorIndex = 255) Then dispColorIndex = "YES" Else dispColorIndex = "NO" End If End Function
as per your example , in b1 enter
=dispColorIndex(A1)
Sep 29, 2010 at 10:07 AM
Oct 17, 2010 at 01:06 PM
application.volatile
this will cause the function to recalc, if there is any change in the cells