+ Reply to Thread
Results 1 to 10 of 10

Help with IF function for a schedule

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    19

    Help with IF function for a schedule

    Hello,

    I am fairly new to the IF function but would like to simplify my scheduling process. Attached is the file I would like to use for my schedule.

    Here is what I am trying to do.

    FOH 6-12 Mar 14 is my master schedule. I want to only have to make changes to this sheet.

    FOH Team Sheet is the daily sheet that is printed and used by the Manager to see who is on shift for that day (don't ask why it is just how they do it).

    When I fill in the data on the FOH 6-12 Mar 14 (for example, cells A3 (name), A5 (position), B/C 3 (time). I want this to transfer over to FOH Team Sheet Cells A5, B5, C5 and D5. However the data will change depending who is on shift. I think I can use the IF function to tell the FOH team sheet to look for what ever name and fill in the position and time associated with that name. For example, Low Rent, Joe Montana, or Jimmy Doolittle could work the EXPO 1 position, therefore A5 might change depending who is working that day, the same for A6 and A7.

    Can anyone help me with this?
    Attached Files Attached Files

  2. #2
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Help with IF function for a schedule

    I actually do not believe what you are asking is possible with an IF function the way your data is currently formatted. I could be wrong!

  3. #3
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Help with IF function for a schedule

    It's definitely possible with a macro.

  4. #4
    Registered User
    Join Date
    09-27-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help with IF function for a schedule

    I am not familiar with Macro's.

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help with IF function for a schedule

    Up dated form to hopefully be able to use macros.
    Attached Files Attached Files

  6. #6
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Help with IF function for a schedule

    Nicely done. I made a couple of changes:

    1) I forgot to mention that no column headers should be merged. In fact, if you are going to get into macros it is best to completely avoid merging cells as merged cells can be tricky to work with. You can achieve the same effect by using Center Across Selection alignment.
    2) I unmerged the headers and gave each column header a unique name. A good database should avoid having multiple fields with the same name as it becomes a lot more difficult to programmatically reference the data you are seeking if there are multiple places it could be.
    3) I moved the WAGE column to be with the employee name and position as it made sense to me to keep that data together. This is not necessary.
    Attached Files Attached Files

  7. #7
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Help with IF function for a schedule

    Oh yeah, I also added a named range for the EMPLOYEES list so that we can just call it EMPLOYEES in our code rather than A2:Awherever it ends. I will help with the macro bit in a few.

  8. #8
    Registered User
    Join Date
    09-27-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help with IF function for a schedule

    I see the changes. Do I need to make any changes to the second worksheet?

  9. #9
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Help with IF function for a schedule

    We should definitely separate the DAY and DATE labels from their corresponding values instead of keeping the label and the value in the same cell. It will be much easier to work with if we do not have to programmatically separate the date info from the rest of the text. In A2 I would put the label. In B2, I would use a formula like =CHOOSE(WEEKDAY(TODAY()),"SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY") but instead of TODAY() I would reference the cell which will contain the date once we separate it from the label. Note that your date will have to be formatted as a proper Excel date for the WEEKDAY function to work.

    We will add some named ranges to the sheet as well but it's more important that the base data be formatted a certain way. We are going to be specific in the code about where the data goes, but the location of the data is going to vary depending on the day so it's important we are able to find the information easily. The named ranges I would suggest we add to the Team Sheet page are AMEMPLOYEES and PMEMPLOYEES.

    I will probably not give more instructions until tomorrow as I am finished working today. Talk to you soon!

  10. #10
    Registered User
    Join Date
    09-27-2012
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Help with IF function for a schedule

    I figured out how to use the IF function, FINALLY! I am still interested in the Macros though. Once I get the IF function file completed I will upload

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Future Payments Schedule: Function IF AND OR?
    By exc4libur in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-01-2013, 03:14 AM
  2. Excel formula or function for Depreciation schedule.
    By HALE1987 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2013, 04:20 AM
  3. IF Function AND? For Team Schedule.
    By rayvernlb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-21-2013, 07:27 PM
  4. How do I relate a Function to a schedule of dates
    By sasha162 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-25-2010, 11:22 AM
  5. Help me to build IF function for my production schedule>>>URGENT>>>>
    By sakuramalaya200 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2005, 12:18 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1