VBA - Check Balance and then use Conditional Formatting

gd6noob

Board Regular
Joined
Oct 20, 2017
Messages
170
Office Version
  1. 2016
Platform
  1. Windows
I need a conditional formatting to highlight column Q. Depending on the columns E (Type of Leave), it will correspond to the available balances in column R(Provincial Leave / Family Responsibility), S(Medical Waiver), T (Bereavement). If column Q is > the available balances, it would highlight Red.

PL_WIP v4.5 (Make Copy).xlsb
LMNOPQRST
1Type of LeaveApprover CommentsEmailEIDCommentsTotal Days RequestedPL/FRLMWBER
20Not UsedNot UsedNot Used
3Medical Waiver1Not UsedNot UsedNot Used
4Family Responsibility0.5Not UsedNot UsedNot Used
5Family Responsibility1Not UsedNot UsedNot Used
WIP
Cell Formulas
RangeFormula
Q2:Q5Q2=SUMIFS($G:$G,$C:$C,$C2,$L:$L,$L2)
R2:R5R2=IFERROR(INDEX('PL Balances Converted'!$B$2:$F$10000,MATCH($C2,'PL Balances Converted'!$A$2:$A$10000,0),MATCH($L2,'PL Balances Converted'!$B$1:$F$1,0)),"Not Used")
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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