Results 1 to 3 of 3

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

  1. #1
    Neophyte sakrams's Avatar
    Join Date
    Mar 2017
    Posts
    2
    Articles
    0
    Excel Version
    2016

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



    Register for a FREE account, and/
    or Log in to avoid these ads!

    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.

    Click image for larger version. 

Name:	X.jpg 
Views:	7 
Size:	61.5 KB 
ID:	9578

    01-Jan 02-Jan 03-Jan 04-Jan 05-Jan 06-Jan 07-Jan 08-Jan 09-Jan 10-Jan 11-Jan 12-Jan 13-Jan 14-Jan 15-Jan 16-Jan 17-Jan 18-Jan 19-Jan 20-Jan 21-Jan 22-Jan 23-Jan 24-Jan 25-Jan 26-Jan 27-Jan 28-Jan 29-Jan 30-Jan 31-Jan
    Schedule Start Schedule End Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri
    Employee 1 Sun Wed D X X X D D D D X X X D D D D X X X D D D D X X X D D D D X X
    Employee 2 Sat Tue X X X D D D D X X X D D D D X X X D D D D X X X D D D D X X X
    Employee 3 Mon Thu D D X X X D D D D X X X D D D D X X X D D D D X X X D D D D X
    Employee 4 Tue Fri X X D D D D X X X D D D D X X X D D D D X X X D D D D X X X D
    Employee 5 Sun Wed D X X X D D D D X X X D D D D X X X D D D D X X X D D D D X X


    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)

  2. #2
    Administrator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,692
    Articles
    0
    Excel Version
    2010 on Xubuntu
    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.
    Thank you Ken for this secure forum.

  3. #3
    Neophyte sakrams's Avatar
    Join Date
    Mar 2017
    Posts
    2
    Articles
    0
    Excel Version
    2016
    Question was answered. https://www.mrexcel.com/board/thread.../#post-5410997

    Quote Originally Posted by Pecoflyer View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •