Too Many IF's!

JennyLeah331

New Member
Joined
May 16, 2011
Messages
3
In a nutshell, I'm running a schedule adherence report, finding out people's login and logout times, comparing them to their scheduled in and out times, and if they're off, the cells are blank, if they're not showing up on a day they're scheduled, I need it to return 0, and if they're arriving late or leaving early, I need it to return a 1. What I've got works. But I'm pushing the limit of the number of IF's I can use, which is a pet peeve. So once again, I'm asking you Excel gurus to help a girl out and streamline where possible:

=IF(('in | out times'!BE25="")*AND('in | out times'!BF25=""),(IF((schedule!D65="")*AND(schedule!E65=""),"",0)),(IF(('in | out times'!BE25<=(schedule!D65+0.002766))*AND('in | out times'!BF25>=(schedule!E65-0.002766)),2,(IF('in | out times'!BE25>(schedule!D65+0.002766),1,(IF('in | out times'!BF25<(schedule!E65-0.002766),1,0)))))))

Thanks so much!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try something like this. Substitute the words for cell references.
Code:
=IF(ShiftStart="","",
       IF(LogIn="",0,
            IF(OR(LogIn > ShiftStart,LogOut < ShiftEnd),1,
                    "They worked their shift")))

Wasn't sure what you want returned if they worked their shift on time.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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