Using nested if in attendance tracker- need help

hisyedaduil

New Member
Joined
Nov 12, 2011
Messages
6
i am preparing an attendance tracker in excel 2007.
In a company the login time is 10 am. and as per the time their status should get updated
10:00am - 10:15am - late
10:15am - 11:30am - Permission
11:30am - 3:00pm - halfday
3:00pm onward - fullday off or leave

i have been able to use 2 nested ifs but not able to do it more than that. please help i am willing to share the excel sheet. if anyone is willing to help.

can you help? would you want to try?. please relpy

People if you have a good attendance tracker please share adildangerboy_2002@yahoo.co.in
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Try

=IF(A1>="15:00"+0,"Leave",IF(A1>="11:30"+0,"Half day",IF(A1>="10:15"+0,"Permission",IF(A1>"10:00"+0,"Late",""))))
 
Upvote 0
create a table elsewhere that looks like this

Excel Workbook
GH
10OK
210:00Late
310:15Permission
411:30Half Day
515:00Full Day or Leave
Sheet9
Excel 2007



Then, assuming your times start in A1

=LOOKUP(A1,$G$1:$H$5)

in B1 and copy down

HTH
 
Upvote 0
Weaver does not work fine will all entries.

10:46 OK (it should be Permission-which is incorrect)
11:11 Permission
10:21 Permission
10:04 Permission (it should be late - which is incorrect)
10:14 Late

can you improvise on it?
 
Upvote 0
Could you please have a look at your setup.

Here are my test results

Excel Workbook
AB
1timeformula
209:57OK
309:58OK
409:59OK
510:00Late
610:01Late
710:02Late
810:03Late
910:04Late
1010:05Late
1110:14Late
1210:15Permission
1310:55Permission
1411:00Permission
1511:28Permission
1611:29Permission
1711:30Half Day
1811:31Half Day
1911:32Half Day
2014:58Half Day
2114:59Half Day
2215:00Full Day or Leave
2315:01Full Day or Leave
2415:05Full Day or Leave
2515:06Full Day or Leave
2610:46Permission
2711:11Permission
2810:21Permission
2910:04Late
3010:14Late
Sheet9
Excel 2007
Cell Formulas
RangeFormula
B2=LOOKUP(A2,$G$1:$H$5)
B3=LOOKUP(A3,$G$1:$H$5)
B4=LOOKUP(A4,$G$1:$H$5)
B5=LOOKUP(A5,$G$1:$H$5)
B6=LOOKUP(A6,$G$1:$H$5)
B7=LOOKUP(A7,$G$1:$H$5)
B8=LOOKUP(A8,$G$1:$H$5)
B9=LOOKUP(A9,$G$1:$H$5)
B10=LOOKUP(A10,$G$1:$H$5)
B11=LOOKUP(A11,$G$1:$H$5)
B12=LOOKUP(A12,$G$1:$H$5)
B13=LOOKUP(A13,$G$1:$H$5)
B14=LOOKUP(A14,$G$1:$H$5)
B15=LOOKUP(A15,$G$1:$H$5)
B16=LOOKUP(A16,$G$1:$H$5)
B17=LOOKUP(A17,$G$1:$H$5)
B18=LOOKUP(A18,$G$1:$H$5)
B19=LOOKUP(A19,$G$1:$H$5)
B20=LOOKUP(A20,$G$1:$H$5)
B21=LOOKUP(A21,$G$1:$H$5)
B22=LOOKUP(A22,$G$1:$H$5)
B23=LOOKUP(A23,$G$1:$H$5)
B24=LOOKUP(A24,$G$1:$H$5)
B25=LOOKUP(A25,$G$1:$H$5)
B26=LOOKUP(A26,$G$1:$H$5)
B27=LOOKUP(A27,$G$1:$H$5)
B28=LOOKUP(A28,$G$1:$H$5)
B29=LOOKUP(A29,$G$1:$H$5)
B30=LOOKUP(A30,$G$1:$H$5)

 
Upvote 0
Not to worry. It's possible that the references had gotten jumbled.

I think it was worth persevering with because this format is easier to change and add to.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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