changing the color of various cells (not with conditional formatting)

ivanks

New Member
Joined
Jan 5, 2009
Messages
9
Hello all!

I am building a spreadsheet with several columns (A to AH) and in the last one (AI) I have a checkbox with different statuses (approved, rejected, etc). I want all the cells of the row be colored when I select the status approved. How can I do this?

thanks in advance
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
well, as far as I know I can use conditional formatting only with the values in the cells where I apply the formatting. I mean, if I want to color A1 apply the conditional formatting with values in A1. But what I need is to color A1 according to values for example in A2
 
Upvote 0
Alternatively, with a bit of vb

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 34 And Target.Value = "Approved" Then
Target.EntireRow.Interior.ColorIndex = 7
End If

End Sub
 
Upvote 0
Hello all!

I am building a spreadsheet with several columns (A to AH) and in the last one (AI) I have a checkbox with different statuses (approved, rejected, etc). I want all the cells of the row be colored when I select the status approved. How can I do this?

thanks in advance
Welcome to the MrExcel board!

This sounds to me like you may have used Data Validation, rather than a CheckBox in column AI. (A CheckBox is a box that is either ticked or not ticked).

Assuming it is Data Validation (or perhaps a ListBox or ComboBox linked to column AI), then expanding on SteveO59L's Conditional Formatting 'Formula Is' option, try this.

1. Select A1:AIxx where xx is the last row of data.

2. Format|Conditional Formatting...|Condition 1|Formula is: =$AI1="Approved"|Format...|Patterns tab|choose colour|OK|OK

Does that do what you want?
 
Upvote 0

Forum statistics

Threads
1,215,388
Messages
6,124,658
Members
449,177
Latest member
Sousanna Aristiadou

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