Lookup and If (Need help find the best way to do this)

sakrams

New member
Joined
Mar 13, 2017
Messages
2
Reaction score
0
Points
0
Excel Version(s)
2016
Greetings Excel Gurus,


Wondering if you could help me with a formula to achieve this automatically. I am trying to generate a employee schedule and want to achieve the below.

X.jpg

01-Jan02-Jan03-Jan04-Jan05-Jan06-Jan07-Jan08-Jan09-Jan10-Jan11-Jan12-Jan13-Jan14-Jan15-Jan16-Jan17-Jan18-Jan19-Jan20-Jan21-Jan22-Jan23-Jan24-Jan25-Jan26-Jan27-Jan28-Jan29-Jan30-Jan31-Jan
Schedule StartSchedule EndWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFriSatSunMonTueWedThuFri
Employee 1SunWedDXXXDDDDXXXDDDDXXXDDDDXXXDDDDXX
Employee 2SatTueXXXDDDDXXXDDDDXXXDDDDXXXDDDDXXX
Employee 3MonThuDDXXXDDDDXXXDDDDXXXDDDDXXXDDDDX
Employee 4TueFriXXDDDDXXXDDDDXXXDDDDXXXDDDDXXXD
Employee 5SunWedDXXXDDDDXXXDDDDXXXDDDDXXXDDDDXX


If Employee 1 Schedule start is Sun, then lookup the day from row 2 and enter "D" if (Sun, Mon, Tue, Wed) and "X" if (Thu, Fri, Sat)

If Employee 2 Schedule start is Sat, then lookup the day from row 2 and enter "D" if (Sat, Sun, Mon, Tue) and "X" if (Wed, Thu, Fri)

If Employee 3 Schedule start is Mon, then lookup the day from row 2 and enter "D" if (Mon, Tue, Wed, Thu) and "X" if (Fri, Sat, Sun)
 
Hi and welcome
Please,do not crosspost your question on multiple forums without including links here to the other threads on other forums.

Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question

Do not post any further responses in this thread until a link has been provided to these cross posts.
 
Question was answered. https://www.mrexcel.com/board/threads/if-or-lookup.1121566/#post-5410997

Hi and welcome
Please,do not crosspost your question on multiple forums without including links here to the other threads on other forums.

Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question

Do not post any further responses in this thread until a link has been provided to these cross posts.
 
Back
Top