shamrock1118
New Member
- Joined
- May 4, 2017
- Messages
- 3
SO I have employee schedules sent to me like this:
[TABLE="width: 887"]
<tbody>[TR]
[TD="class: xl66, width: 136, bgcolor: transparent"]Employee Name:[/TD]
[TD="class: xl66, width: 136, bgcolor: transparent"] [/TD]
[TD="class: xl70, width: 196, bgcolor: transparent"]name[/TD]
[TD="class: xl67, width: 42, bgcolor: transparent"] [/TD]
[TD="class: xl66, width: 84, bgcolor: transparent"] [/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Sunday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Monday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Tuesday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Wednesday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Thursday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Friday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Saturday[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: transparent"]Start/End Time:[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl70, bgcolor: transparent, align: right"]8:30 AM[/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"]Week 1[/TD]
[TD="class: xl71, bgcolor: transparent"] [/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
And I'm getting them in by the hundreds and I would like to write a formula that reads it for me and tells me,
based on certain criteria, which arbitrary schedule number it is. (Schedule numbers were assigned randomly. They are just being used as a reference.) Each schedule number has a unique start time.
So this is the formula I have going on here for the above schedule:
=IF($C6=BV$4,IF($F6="",IF($G6="X",IF($H6="X",IF($I6="X",IF($J6="X",IF($K6="x",IF($L6="",BV$5,""),""),""),""),""),""),""),"")
[TABLE="width: 513, align: center"]
<tbody>[TR]
[TD="align: center"]BP[/TD]
[TD="align: center"]BQ[/TD]
[TD="align: center"]BR[/TD]
[TD="align: center"]BS[/TD]
[TD="align: center"]BT[/TD]
[TD="align: center"]BU[/TD]
[TD="align: center"]BV[/TD]
[TD="align: center"]BW[/TD]
[TD="align: center"]BX[/TD]
[/TR]
[TR]
[TD="align: center"]7:00 AM[/TD]
[TD="align: center"]7:15 AM[/TD]
[TD="align: center"]7:30 AM[/TD]
[TD="align: center"]7:45 AM[/TD]
[TD="align: center"]8:00 AM[/TD]
[TD="align: center"]8:15 AM[/TD]
[TD="align: center"]8:30 AM[/TD]
[TD="align: center"]8:45 AM[/TD]
[TD="align: center"]9:00 AM[/TD]
[/TR]
[TR]
[TD="align: center"]55[/TD]
[TD="align: center"]56[/TD]
[TD="align: center"]57[/TD]
[TD="align: center"]58[/TD]
[TD="align: center"]59[/TD]
[TD="align: center"]60[/TD]
[TD="align: center"]61[/TD]
[TD="align: center"]62[/TD]
[TD="align: center"]63[/TD]
[/TR]
</tbody><colgroup><col><col span="7"><col></colgroup>[/TABLE]
C6 is the column with start time that was sent to me, BV$4 is the column containing the start time that matches the criteria of the schedule number in BV$5.
Now, for SOME UNGODLY REASON my formula works for MOST of the schedules EXCEPT for a select number of schedules. Schedule number 61 for example will not work. I don't understand.
PLEASE HELP.
[TABLE="width: 887"]
<tbody>[TR]
[TD="class: xl66, width: 136, bgcolor: transparent"]Employee Name:[/TD]
[TD="class: xl66, width: 136, bgcolor: transparent"] [/TD]
[TD="class: xl70, width: 196, bgcolor: transparent"]name[/TD]
[TD="class: xl67, width: 42, bgcolor: transparent"] [/TD]
[TD="class: xl66, width: 84, bgcolor: transparent"] [/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Sunday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Monday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Tuesday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Wednesday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Thursday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Friday[/TD]
[TD="class: xl68, width: 84, bgcolor: transparent"]Saturday[/TD]
[/TR]
[TR]
[TD="class: xl66, bgcolor: transparent"]Start/End Time:[/TD]
[TD="class: xl66, bgcolor: transparent"] [/TD]
[TD="class: xl70, bgcolor: transparent, align: right"]8:30 AM[/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"]Week 1[/TD]
[TD="class: xl71, bgcolor: transparent"] [/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"]X[/TD]
[TD="class: xl71, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
And I'm getting them in by the hundreds and I would like to write a formula that reads it for me and tells me,
based on certain criteria, which arbitrary schedule number it is. (Schedule numbers were assigned randomly. They are just being used as a reference.) Each schedule number has a unique start time.
So this is the formula I have going on here for the above schedule:
=IF($C6=BV$4,IF($F6="",IF($G6="X",IF($H6="X",IF($I6="X",IF($J6="X",IF($K6="x",IF($L6="",BV$5,""),""),""),""),""),""),""),"")
[TABLE="width: 513, align: center"]
<tbody>[TR]
[TD="align: center"]BP[/TD]
[TD="align: center"]BQ[/TD]
[TD="align: center"]BR[/TD]
[TD="align: center"]BS[/TD]
[TD="align: center"]BT[/TD]
[TD="align: center"]BU[/TD]
[TD="align: center"]BV[/TD]
[TD="align: center"]BW[/TD]
[TD="align: center"]BX[/TD]
[/TR]
[TR]
[TD="align: center"]7:00 AM[/TD]
[TD="align: center"]7:15 AM[/TD]
[TD="align: center"]7:30 AM[/TD]
[TD="align: center"]7:45 AM[/TD]
[TD="align: center"]8:00 AM[/TD]
[TD="align: center"]8:15 AM[/TD]
[TD="align: center"]8:30 AM[/TD]
[TD="align: center"]8:45 AM[/TD]
[TD="align: center"]9:00 AM[/TD]
[/TR]
[TR]
[TD="align: center"]55[/TD]
[TD="align: center"]56[/TD]
[TD="align: center"]57[/TD]
[TD="align: center"]58[/TD]
[TD="align: center"]59[/TD]
[TD="align: center"]60[/TD]
[TD="align: center"]61[/TD]
[TD="align: center"]62[/TD]
[TD="align: center"]63[/TD]
[/TR]
</tbody><colgroup><col><col span="7"><col></colgroup>[/TABLE]
C6 is the column with start time that was sent to me, BV$4 is the column containing the start time that matches the criteria of the schedule number in BV$5.
Now, for SOME UNGODLY REASON my formula works for MOST of the schedules EXCEPT for a select number of schedules. Schedule number 61 for example will not work. I don't understand.
PLEASE HELP.