Formatting Cells

BGA

New Member
Joined
Apr 1, 2025
Messages
1
Office Version
  1. 2024
Platform
  1. Windows
I am trying to make a vacation request calendar/schedule on excel and need to format some cells.

Below are the cells i am trying to format. I want to be able to put an "x" under a specific date and the cell be filled yellow, but if i put "Y" over in the last column, the "x"s will be highlighted green instead of yellow.


12345678910111213141516171819202122232425262728293031
xxxxxxxx Y


Thank you in advance.
 
Formatting Cells.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
12025
2Mar
312345678910111213141516171819202122232425262728293031
4Employee1XXxxxxxxxxY
5Employee2XXXXXXXXxxxxxxxx
6Employee3Xx
Formatting Cells
Cell Formulas
RangeFormula
B3:AF3B3=IFERROR(DAY(DATEVALUE(SEQUENCE(,31)&B2&A1)),"")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:AG6Expression=AND(UPPER(B4)="X",UPPER($AG4)="Y")textNO
B4:AG6Expression=AND(UPPER(B4)="X",UPPER($AG4)<>"Y")textNO
 
Upvote 0
@fahad_ibnfurjan
There is no need for any of the UPPER functions in your formulas.

25 04 02.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
312345678910111213141516171819202122232425262728293031
4Employee1XXxxxxxxxxY
5Employee2XXXXXXXXxxxxxxxx
6Employee3Xx
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:AF6Expression=AND(B4="X",$AG4="Y")textNO
B4:AF6Expression=AND(B4="X",$AG4<>"Y")textNO
 
Upvote 0

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