Return Date above the Certain "TEXT" from the "NAME" in (Excel2021)

HKA_84

New Member
Joined
Oct 3, 2022
Messages
9
Office Version
  1. 2021
  2. 2011
  3. 2010
Platform
  1. Windows
  2. MacOS
Hello,

Good Day to you,

I've to Find the Public Holiday taken with different year for certain Name
In Sheet "Public Holiday" If I put the year next to PH 1, Example "PH 1 (2021)". it can return the value but I need match with the 'NAME"
I want to keep the PH 1 Separately from the year

Example:
Name: Mary
Search For: PH 1 (2021) - CELL (C3)&(C2)
Within: Sheet January,February,March
Return: Sheet "Public Holiday" into CELL "C5"

Example 2:
Name: Billy
Search For: PH 5 (2022) - CELL (G11)&(C10)
Within: Sheet January,February,March
Return: Sheet "Public Holiday" into CELL "G12"

Public Holiday
Example.xlsx
ABCDEFGHI
1
22021
3PH 1PH 2 (2021)PH 3PH 4PH 5PH 6
4BillyJanuary 13, 2022
5Mary
6Kate
7Sebastian
8Jack
9
102022
11PH 1PH 2PH 3PH 4PH 5PH 6
12BillyJanuary 10, 2022 
13Mary
14Kate
15Sebastian
16Jack
17
Public Holiday
Cell Formulas
RangeFormula
D4,C12:D12D4=IF(COUNTIF(January!$C$4:$I$12,D3),MIN(IF(January!$C$4:$I$12=D3,January!$C$3:$I$3,"")),"")


January
Example.xlsx
ABCDEFGHIJ
1
2WEEK 1
310-Jan-2211-Jan-2212-Jan-2213-Jan-2214-Jan-2215-Jan-2216-Jan-22
4MondayTuesdayWednesdayThursdayFridaySaturdaySunday
5BillyPH 110am10amPH 2 (2021)1pm1pmOFF
6Mary1pmPH11 (2021)1pmPH 12 (2021)10amOFF10am
7
8WEEK 2
917-Jan-2218-Jan-2219-Jan-2220-Jan-2221-Jan-2222-Jan-2223-Jan-22
10MondayTuesdayWednesdayThursdayFridaySaturdaySunday
11BillyPH 3 (2022)10am10amPH 4 (2022)1pm1pmOFF
12Mary1pmPH 1 (2022)1pmPH 2 (2022)10amOFF10am
13
January


February
Example.xlsx
ABCDEFGHIJ
1
2WEEK 1
32-Feb-223-Feb-224-Feb-225-Feb-226-Feb-227-Feb-228-Feb-22
4MondayTuesdayWednesdayThursdayFridaySaturdaySunday
5Billy10amPH5 (2022)10am10am1pm1pmPH6 (2022)
6Mary1pmPH 3 (2022)1pm1pmPH 4 (2022)OFF10am
7
8WEEK 2
99-Feb-2210-Feb-2211-Feb-2212-Feb-2213-Feb-2214-Feb-2215-Feb-22
10MondayTuesdayWednesdayThursdayFridaySaturdaySunday
11Billy10amPH7 (2022)10am10am1pm1pmPH8 (2022)
12Mary1pmPH 5 (2022)1pm1pmPH 6 (2022)OFF10am
13
February


March
Example.xlsx
ABCDEFGHIJ
1
2WEEK 1
315-Mar-2216-Mar-2217-Mar-2218-Mar-2219-Mar-2220-Mar-2221-Mar-22
4MondayTuesdayWednesdayThursdayFridaySaturdaySunday
5BillyPH 9 (2022)10am10amPH10 (2022)1pm1pmOFF
6Mary1pmPH7 (2022)1pmPH 8 (2022)10amOFF10am
7
March


Please help me with this
I hope I made the question right to understand
Thank you very much
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,256
Messages
6,123,903
Members
449,132
Latest member
Rosie14

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