populate cells based on table criteria.

Sandyclaws

New Member
Joined
Feb 21, 2018
Messages
1
Hi, I have been trying to find a neat way to do this but i haven't been successful.

I have this sheet

Monday inMonday outTuesday inTuesday Out
Name105:0013:0005:0013:00
Name212:0018:0008:0017:00
Name312:0018:00
Name411:0015:00
Name506:0011:0007:0012:00

<tbody>
</tbody>

What i'm trying to do is check who works after 05:00 but before 12:00 and add them to a list 1 name per row for the "AM" workers and if they work after 12:00 put them in a list for the "PM" workers.

example

AMName1
Name5
PMName2
Name3

<tbody>
</tbody>

Unfortunately i haven't been successful, the best i could do is come up with the formula that will check wether they work morning or evening and apply it to every cell. Which means that for 17 employees i have to allocate 17 cells and replicate the formula 17 times to check each cell individually which leaves me with a lot of blank cells because they have days off etc.

SundayMondayTuesdayWednesdayThursdayFridaySaturday
Name1Name1Name1Name1Name1
Name3Name3
Name5
Name6

<tbody>
</tbody>

While i'm trying to make it write the results continuously like

SundayMondayTuesdayWednesdayThursdayFridaySaturday
Name1Name3Name1Name1Name1Name
Name3Name6
Name5

<tbody>
</tbody>


Any help would be appreciated.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,429
Messages
6,124,834
Members
449,192
Latest member
mcgeeaudrey

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