conditional formatting at each change in date

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello Good Evening Everyone,
I HAVE A LIST OF DATES IN COLUMN B AND AMOUNTS IN COLUMN G. I WANT TO COLOR THE CELL OF COLUMN G AT THE END OF EACH DATE. I TRIED SUBTOTALS AND USE VISIBLE CELLS TO COLOR IT BUT WAS NOT ABLE TO COLOR IT. IS THERE ANY OTHER WAY I COULD DO THAT.
Query to color amounts date wise.xlsx
ABCDEFG
1abcd e f g
201-03-2021843
302-03-2021315
402-03-2021263
502-03-2021575
602-03-2021182
702-03-2021497
803-03-2021890
903-03-2021861
1003-03-2021187
1103-03-2021402
1203-03-2021411
1303-03-2021547
1403-03-2021526
1503-03-2021855
1603-03-2021812
1703-03-2021562
1804-03-2021954
1904-03-2021892
2004-03-2021951
2104-03-2021860
2204-03-2021234
2304-03-2021231
2404-03-2021699
25
qUERY
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1Cell Valuecontains "00141285"textNO
D1Cell Value="contra"textNO
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
If you want it at the end of each date, and not at the beginning of each date, shouldn't cell G2 be yellow and G3 not have any color?

Here is how you would do that:
1. Select the range G2:G24
2. Go to Conditional Formatting, and enter this CF formula:
Excel Formula:
=$B2<>$B3
3. Choose the yellow highlighting color

That should do what you want.
 
Upvote 0
Solution
If you want it at the end of each date, and not at the beginning of each date, shouldn't cell G2 be yellow and G3 not have any color?

Here is how you would do that:
1. Select the range G2:G24
2. Go to Conditional Formatting, and enter this CF formula:
Excel Formula:
=$B2<>$B3
3. Choose the yellow highlighting color

That should do what you want.
Yeah. You are right Cell G2 and not G3. My mistake
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFG
1abcd e f g
201/03/2021843
302/03/2021315
402/03/2021263
502/03/2021575
602/03/2021182
702/03/2021497
803/03/2021890
903/03/2021861
1003/03/2021187
1103/03/2021402
1203/03/2021411
1303/03/2021547
1403/03/2021526
1503/03/2021855
1603/03/2021812
1703/03/2021562
1804/03/2021954
1904/03/2021892
2004/03/2021951
2104/03/2021860
2204/03/2021234
2304/03/2021231
2404/03/2021699
25
26
Test
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:G100Expression=AND(B2<>"",COUNTIF($B$2:$B$100,B2)=COUNTIF(B$2:B2,B2))textNO
 
Upvote 0
OK, did my solution work for you?
 
Upvote 0
You are welcome.
Glad we were able to help.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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