Create formula to show an individual employee's schedule

mjswenson84

New Member
Joined
Apr 21, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have created a 12 month schedule in Excel. In column A are the different locations. In columns B-M are the individuals. In each B-M column an individual only appears once.
For instance:
In A2 is location alpha. Employee1 appears in B2 (July), employee2 appears in C2 (August), employee3 appears in D2 (September), etc.
In A3 is location beta. Employee3 appears in B3 (July), employee1 appears in C3 (August), employee2 appears in D3 (September), etc.

I now want to create a formula so that I can see where each employee works each month. I need to answer the question "where is employee1 in July, August, September, etc."
So I want a formula to look something like "when employee1 appears in column B, what is the text of column A in that same row"

This is for a large schedule with multiple locations and employees. I need to be able to see an individual employee's schedule for the year to make sure the schedule does not create undo burden on the employee during any given period
 

Attachments

  • Picture1.png
    Picture1.png
    37.1 KB · Views: 12

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
try:

mr excel questions 25.xlsm
ABCDEFGHIJKLM
1JanFebMarAprMayJunJulAugSepOctNovDec
2General Surgery5B5C5D5A5D5C5B5A4A4B4C4D
3General Surgery3D3E3A3B3C3E3A3C3B3A3E3D
4General Surgery1G1K1F1J1C1H1A1B1L1D1i1E
5General Surgery1H1L1G1K1D1A1i1C1B1E1J1F
6General SurgeryTTTTTTTTTTTT
8Specialty5C5D5A5B5A5D5C5B4C4D4A4B
10MIS5D5A5B5C5B5A5D5C4D4A4B4C
11MIS3B3C3D3E2D2C2B2A2B2D2A2C
13CVT3E3A3B3C3D3A3B3A3E3D3C3B
14CVT1i1B1D1A1E1C1J1L1H1F1K1G
16Nights1B1F1L1E1J1K1H1D1i1G1A1C
17
18
191A   CVT General SurgeryGeneral Surgery   Nights 
201BNightsCVT     General SurgeryGeneral Surgery   
211C    General SurgeryCVT General Surgery   Nights
221D  CVT General Surgery  Nights General Surgery  
231E   NightsCVT    General Surgery General Surgery
241F NightsGeneral Surgery      CVT General Surgery
251GGeneral Surgery General Surgery      Nights CVT
261HGeneral Surgery    General SurgeryNights CVT   
271iCVT     General Surgery Nights General Surgery 
281J   General SurgeryNights CVT   General Surgery 
291K General Surgery General Surgery Nights    CVT 
301L General SurgeryNights    CVTGeneral Surgery   
312A       MIS  MIS 
322B      MIS MIS   
332C     MIS     MIS
342D    MIS    MIS  
353A CVTGeneral Surgery  CVTGeneral SurgeryCVT General Surgery  
363BMIS CVTGeneral Surgery  CVT General Surgery  CVT
373C MIS CVTGeneral Surgery  General Surgery  CVT 
383DGeneral Surgery MIS CVT    CVT General Surgery
393ECVTGeneral Surgery MIS General Surgery  CVT General Surgery 
404A        General SurgeryMISSpecialty 
414B         General SurgeryMISSpecialty
424C        Specialty General SurgeryMIS
434D        MISSpecialty General Surgery
445A MISSpecialtyGeneral SurgerySpecialtyMIS General Surgery    
455BGeneral Surgery MISSpecialtyMIS General SurgerySpecialty    
465CSpecialtyGeneral Surgery MIS General SurgerySpecialtyMIS    
475DMISSpecialtyGeneral Surgery General SurgerySpecialtyMIS     
48TGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral SurgeryGeneral Surgery
mjswenson84
Cell Formulas
RangeFormula
B1B1=DATE(2023,1,1)
C1:M1C1=EDATE(B1,1)
A19:A48A19=UNIQUE(SORT(TRANSPOSE(HSTACK(B4:M4,B5:M5,B6:M6,B8:M8,B10:M10,B11:M11,B13:M13,B14:M14,B16:M16))))
B19:M48B19=IFERROR(INDEX($A$2:$A$16,MATCH($A19,B$2:B$16,0)),"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,406
Messages
6,119,330
Members
448,888
Latest member
Arle8907

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