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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,788
Messages
6,121,603
Members
449,038
Latest member
Arbind kumar

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