Hello,
I am trying to work on a way to automatically fill in a schedule for where someone should be. What I have so far is in my 1st sheet I have a table of cells I want to fill, across the columns i have dates, and down the rows I have the locations. In my 2nd sheet I have the dates of when people are working going out three weeks. In my 3rd I have a list of names for the various locations in order of priority, I also have these as named ranges. What I would like to do is in the first blank cell of the table "B3" use the corresponding named range and use the first name in the list and check if it is in the other list(2nd sheet) for that date. If a name matches put that name in that cell and end loop, if not go to the next name until a name is used. while finding a name if also should check the other locations making sure that name isn't somewhere else if so then move to next name.
I don't know if this is possible I assume it is since excel can do it all, but I'm not sure on how to go about doing it. I think it might have to be in a do until loop or a for loop or a combination of the two. any sort of lead would be greatly appreciated thanks in advance.
I am trying to work on a way to automatically fill in a schedule for where someone should be. What I have so far is in my 1st sheet I have a table of cells I want to fill, across the columns i have dates, and down the rows I have the locations. In my 2nd sheet I have the dates of when people are working going out three weeks. In my 3rd I have a list of names for the various locations in order of priority, I also have these as named ranges. What I would like to do is in the first blank cell of the table "B3" use the corresponding named range and use the first name in the list and check if it is in the other list(2nd sheet) for that date. If a name matches put that name in that cell and end loop, if not go to the next name until a name is used. while finding a name if also should check the other locations making sure that name isn't somewhere else if so then move to next name.
I don't know if this is possible I assume it is since excel can do it all, but I'm not sure on how to go about doing it. I think it might have to be in a do until loop or a for loop or a combination of the two. any sort of lead would be greatly appreciated thanks in advance.