Lookup list of name in one colum then go along the row of that name for a value and display the date in the "header" multiple matches

ashk0812

New Member
Joined
Sep 27, 2019
Messages
11
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Good morning I wonder if anyone can point me in the right direction I have a holiday tracker that I wish to create a lookup sheet so i enter a name and get the dates returned that they have booked.

The sheet contains a list of names in one column so i would want to match that then go along the row of that name for a few defined values (Holiday, ServiceDay) and display the date that is contained in row 7

I have included a sample sheet if this helps in my explination any better

Test Holiday Tracker.xlsx
BCDNPQRSTUVWXYZAAABAC
22021 Holiday TrackerLeftTOTAL PER DAY:01100  00110
3#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!#REF!
4Total Days Remaining: 242
5
6SatSunMonTueWedThuFriSatSunMonTueWedThuFri
7AreaRoleName02/0103/0104/0105/0106/0107/0108/0109/0110/0111/0112/0113/0114/0115/01
8G2SSupervisorName 13
9G2STeamleaderName 25
10G2SAssociate 01Name 36
11G2SAssociate 02Name 46AA
12G2SAssociate 03Name 57AA
13G2SAssociate 04Name 69
14G2SAssociate 05Name 710
15G2SAssociate 06Name 811
16G2SAssociate 07Name 911FH
17G2SAssociate 08Name 1013
18G2SAssociate 09Name 1114
19G2SAssociate 10Name 1214SERVICE
20G2SAssociate 11Name 1316DENIED
21G2SAssociate 12Name 1417
22G2SAssociate 13Name 1518
23G2SAssociate 14Name 1619
24G2SAssociate 15Name 1720
25G2SAssociate 16Name 1821
26G2SAssociate 17Name 1922
27 
28 
Holidays
Cell Formulas
RangeFormula
B2B2=Setup!$D$11&" Holiday Tracker"
R2:AC2R2=IF(R4="SH","",IF(R4="BH","", IF(WEEKDAY(R6)=1,"", IF(WEEKDAY(R6)=7,"",COUNTIF(R8:R28,Setup!$D$27)+COUNTIF(R8:R28,Setup!$D$28)+COUNTIF(R8:R28,Setup!$D$29)+COUNTIF(R8:R28,Setup!$D$30)+COUNTIF(R8:R28,Setup!$D$31)+COUNTIF(R8:R28,Setup!$D$32)+COUNTIF(R8:R28,Setup!$D$33)+COUNTIF(R8:R28,Setup!$D$34)+COUNTIF(R8:R28,Setup!$D$35)+COUNTIF(R8:R28,Setup!$D$36)+COUNTIF(R8:R28,Setup!$D$37)))))
P3:AA3P3=IF(P4="", IF(P7>=$I$3, IF(WEEKDAY(P6)=1, IF(Q3="SH",O5,""), IF(WEEKDAY(P6)=2,R5, IF(WEEKDAY(P6)=3,Q5, IF(WEEKDAY(P6)=4,P5, IF(WEEKDAY(P6)=5,O5, IF(WEEKDAY(P6)=6,N5, IF(WEEKDAY(P6)=7,""))))))),P3),P4)
AB3AB3=IF(AB4="", IF(AB7>=$I$3, IF(WEEKDAY(AB6)=1, IF(AC3="SH",AA5,""), IF(WEEKDAY(AB6)=2,#REF!, IF(WEEKDAY(AB6)=3,AC5, IF(WEEKDAY(AB6)=4,AB5, IF(WEEKDAY(AB6)=5,AA5, IF(WEEKDAY(AB6)=6,Z5, IF(WEEKDAY(AB6)=7,""))))))),AB3),AB4)
AC3AC3=IF(AC4="", IF(AC7>=$I$3, IF(WEEKDAY(AC6)=1, IF(#REF!="SH",AB5,""), IF(WEEKDAY(AC6)=2,#REF!, IF(WEEKDAY(AC6)=3,#REF!, IF(WEEKDAY(AC6)=4,AC5, IF(WEEKDAY(AC6)=5,AB5, IF(WEEKDAY(AC6)=6,AA5, IF(WEEKDAY(AC6)=7,""))))))),AC3),AC4)
B4B4="Total Days Remaining: "&SUM(N:N)
P6:Q6P6=WEEKDAY(P7)
R6:AC6R6=R7
P7:AC7P7=O7+1
N8:N28N8=IFERROR(IF(D8="","",SUM(K8+M8+L8-COUNTIF(O8:AD8,Setup!$D$27)-COUNTIF(O8:AD8,Setup!$D$28)-COUNTIF(O8:AD8,Setup!$D$29)-COUNTIF(O8:AD8,Setup!$D$30)-COUNTIF(O8:AD8,Setup!$D$31)-COUNTIF(O8:AD8,Setup!$D$32)-COUNTIF(O8:AD8,Setup!$D$33)-COUNTIF(O8:AD8,Setup!$D$34)-COUNTIF(O8:AD8,Setup!$D$35)-COUNTIF(O8:AD8,Setup!$D$36)-COUNTIF(O8:AD8,Setup!$D$37))),(IF(D8="","",SUM(K8+M8-COUNTIF(O8:AD8,Setup!$D$27)-COUNTIF(O8:AD8,Setup!$D$28)-COUNTIF(O8:AD8,Setup!$D$29)-COUNTIF(O8:AD8,Setup!$D$30)-COUNTIF(O8:AD8,Setup!$D$31)-COUNTIF(O8:AD8,Setup!$D$32)-COUNTIF(O8:AD8,Setup!$D$33)-COUNTIF(O8:AD8,Setup!$D$34)-COUNTIF(O8:AD8,Setup!$D$35)-COUNTIF(O8:AD8,Setup!$D$36)-COUNTIF(O8:AD8,Setup!$D$37)))))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B8:AD28Expression=$N8<0textNO
O8:AD28Cell Valuecontains "DENIED"textNO
O8:AD28Cell Valuecontains "ALLOC"textNO
O8:AD28Celldoes not contain a blank value textNO
O6:AD28Expression=O$3="BH"textNO
O5:AD7Expression=O$3="Nights"textNO
O5:AD7Expression=O$3="Backs"textNO
O5:AD7Expression=O$3="Days"textNO
D:ECell ValueduplicatestextNO
O5:AD5Expression=O$3="BH"textNO
O6:AD28Expression=O$3="SD"textNO
O5:AD5Expression=O$3="SD"textNO
O5:AD5Expression=O$3="SH"textNO
O6:AD28Expression=O$3="SH"textNO
O6:AD28Expression=IF(WEEKDAY(O$7)=7,TRUE)textNO
O6:AD28Expression=IF(WEEKDAY(O$7)=1,TRUE)textNO
O5:AD5Expression=IF(WEEKDAY(O$7)=7,TRUE)textYES
O5:AD5Expression=IF(WEEKDAY(O$7)=1,TRUE)textYES
O5:AD28,O2:P2,R2:AD2Expression=(O$2+0>=Setup!$D$17)textYES
O8:AD28Expression=$N8=0textNO
N2,N50:N1048576,N8:N28Expression=$N2=0textNO
Cells with Data Validation
CellAllowCriteria
O4:AC4List=Setup!$F$30:$F$33
O8:AC28List=Setup!$D$27:$D$38
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Could i reverse this formula to give me a list of names off on a given date?
 
Upvote 0
How about
Excel Formula:
=FILTER(Holidays!D8:D30,FILTER(Holidays!P8:AC30,Holidays!P7:AC7=A2)<>"","None")
where A2 holds the date you're interested in
 
Upvote 0
Sorry I need to exclude any Denied values as i understand it I need to add <>"denied" in somehere is that right
 
Upvote 0
How about
Excel Formula:
=LET(F,FILTER(Holidays!P8:AC30,Holidays!P7:AC7=A2),FILTER(Holidays!D8:D30,(F<>"")*(F<>"Denied"),"None"))
 
Upvote 0

Forum statistics

Threads
1,214,531
Messages
6,120,073
Members
448,943
Latest member
sharmarick

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