conditional formatting or VBA for highlighting rows

lemmo80

New Member
Joined
Jun 10, 2021
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi, help please!
I never done a VBA so not sure where to start and hoping I can use conditional formatting instead as I'm semi-familiar with it.

What I would like is to use a traffic light system depending on what data is entered into 2 separate columns.

  • turn row amber if column H & J are empty
  • turn row green if column H is filled
  • turn row red if column J is filled
  • thatch row red if both H & J are filled

Column H will contain a “general – no specific” formatting and J will contain “short date” formatting.

If I need a VBA could you please point me to a "guide for dummies" tutorial as I see codes written on other threads but have no idea where to actually start typing them.

many thanks in advance,

NEW - database register - EXTERNAL COPY carpark v2.xlsx
ABCDEFGHIJK
1Form insertedSubmissionCodeFieldSurnameColourParking Commencement DateParking TypeI agree to the Terms and ConditionsCar Space Allocated Card Access Setup Y/NDate User Terminated from Carpark UseHISTORICAL DATA Car Space Allocated
224/05/2021SHCP-17jonesWhite24/05/2021HIE residing staffYes2A01
331/05/2021SHCP-31joe Black31/05/2021HIE commuting staffYes9A01
431/05/2021SHCP-32josmanSilver31/05/2021HIE commuting staffYes9A02
531/05/2021SHCP-33jettsonSilver 31/05/2021HIE commuting staffYes9A03
61/06/2021SHCP-34jabbaWhite1/06/2021HIE commuting staffYes9A04
71/06/2021SHCP-35hutBlack1/06/2021HIE commuting staffYes9A05
81/06/2021SHCP-36vadarWhite 1/06/2021HIE commuting staffYes9A06
92/06/2021SHCP-37trooperWhite2/06/2021HIE commuting staffYes9A07
103/06/2021SHCP-38fettDirty Silver3/06/2021HIE commuting staffYes9A08
113/06/2021SHCP-39mandoBlue3/06/2021HIE commuting staffYes9A09
12
REGISTER
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the MrExcel board!

Something like this? (The 'thatching' doesn't show up with XL2BB but is there, assuming the image further below is the sort of thing you are after)

21 06 10.xlsm
ABCDEFGHIJK
1
2datadatadatadatadatadatadatadatadata
3datadatadatadatadatadatadatadatadatadata
4datadatadatadatadatadatadatadatadatadata
5datadatadatadatadatadatadatadatadatadatadata
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:K5Expression=AND($H2<>"",$J2<>"")textNO
A2:K5Expression=AND($H2<>"",$J2="")textNO
A2:K5Expression=AND($H2="",$J2<>"")textNO
A2:K5Expression=$H2&$J2=""textNO


1623319681015.png
 
Upvote 0
Solution
wow! thank you so much, worked a treat and was easy to follow.
I appreciate the super speedy response too. So glad I found this group
 
Upvote 0
You are very welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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