Add Text to cell if another cell is a colour

SuziBaz

New Member
Joined
Nov 2, 2017
Messages
13
I'm trying to create a spreadsheet to control account reconciliations in my team.
We have a list of suppliers that the team work through and they highlight the suppliers accounts when reconciled.

I'd like to add today's date to another cell when the supplier name cell is highlighted, so that I can keep an eye on how many reconciliations are completed each day.
I've looked at conditional formatting and kind of need a reverse of this. Otherwise I'm thinking it may have to be VBA.

Could anyone assist with this please
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Formulas cant read the colours of other cells (unless they are set via conditional formatting, in which case just use the same conditions ), only VBA can read cell colours.
 
Upvote 0
If you want it with VBA, then put the following in the events of your sheet. Right click on the tab of your sheet with conditional format. On the white panel paste the code.

Note: change the values ​​in red for your data:

Code:
Private Sub Worksheet_Calculate()
    Dim rng As Range, wCell As Range, wRow As Range
    
    Set rng = Range("[B][COLOR=#ff0000]C1:C1000[/COLOR][/B]") 'column to be evaluated
    
    For Each wCell In rng
        If wCell.DisplayFormat.Interior.Color <> xlNone Then
            Cells(wCell.Row, "[B][COLOR=#ff0000]D[/COLOR][/B]").Value = Date
        End If
    Next
End Sub

Try and tell me
 
Upvote 0

Forum statistics

Threads
1,216,604
Messages
6,131,697
Members
449,666
Latest member
Tommy2Tables365

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top