Display conditional formatted rows in the top

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
I HAVE CREATED A BIRTHDAY LIST OF FAMILY AND FRIENDS. IF I GIVE A FORMULA IN CELL I1 AS = TODAY()

USING CONDITIONAL FORMATTING THE CELLS OF THAT ROW/ROWS ARE HIGHLIGHTED ON THE DAY MENTIONED IN CELL I1.

I HAVE TO SCROLL DOWN TO FIND OUT WHOSE BIRTHDAY IT IS TODAY.

IF THERE ARE MORE THAN 1 BIRHTDAY ON THAT DAY THEN IT DISPLAYS IN DIFFERENT ROWS.

IS THERE ANY WAY,TO CREATE A CODE, SO THAT THE BIRTHDAY ROWS ARE DISPLAYED IN THE TOP ROWS.
Untitled.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
@RAJESH1960 How did you end up doing this? I need to do something similar.
I created 2 macros with this code.
Option Explicit

Sub GoToBirthday()
'
' GoToBirthday Macro
'

'
Sheets("List of Birthdays").Select
Range("A2").Select
Selection.AutoFilter
ActiveWorkbook.Worksheets("List of Birthdays").AutoFilter.Sort.SortFields.Clear
ActiveWorkbook.Worksheets("List of Birthdays").AutoFilter.Sort.SortFields.Add( _
Range("I1:I262"), xlSortOnCellColor, xlAscending, , xlSortNormal).SortOnValue. _
Color = RGB(146, 208, 80)
With ActiveWorkbook.Worksheets("List of Birthdays").AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
Sub RefreshAll()
'
' RefreshAll Macro
'

'
Range("C1").Select
Sheets("List of Birthdays").Select
Range("B1").Select
Selection.AutoFilter
ActiveWorkbook.Worksheets("List of Birthdays").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("List of Birthdays").Sort.SortFields.Add2 Key:= _
Range("A2:A262"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption _
:=xlSortNormal
With ActiveWorkbook.Worksheets("List of Birthdays").Sort
.SetRange Range("A1:J262")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Range("B2").Select
End Sub

I have typed the formula in cell J1 as = today() and formula in range column J2:J =IF(MONTH(C2)<>MONTH($I$1),"",IF(DAY(C2)<>DAY($I$1),"","HAPPY BIRTHDAY"))
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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