I am getting confused with Multi nesting could do with some pointers please.

madmiddle

New Member
Joined
Mar 8, 2012
Messages
45
Good morning people,

i working for a company where i work flexi time, I have over the years used many spreadsheets to try and track my time. I am now trying to create a unique spreadsheet for me to use in the several situations that i come across during the working week.

Now to my problem. in the columns that i have created i would like to have a status column that indicates what sort of of day it for example:

1 = Standard Day
2 = Holiday
3 = Half Holiday
4 = Flexday
5 = Half Flexday
6 = Half Flex Half Holiday
etc, etc

but trying to put the code into one cell for working out what time you have gained in the day is starting to confuse the hell out of me. i have managed to get them working in individual cells but trying to put the code into one i am struggling with as i always seem to find errors and can not clear them.

what i have so far is:

=IF(I4=1,(IF(U4=TRUE,Flexi_End,G4))-(IF(T4=TRUE,Flexi_Start,E4))-Full_Day-Lunch_Duration)
=IF(I4=2,0)
=IF(I4=3,IF(Q4=TRUE,(IF(U4=TRUE,Flexi_End-Lunch_End-Half_Day,G4-Lunch_End-Half_Day)),IF(R4=TRUE,(IF(T4=TRUE,Lunch_Start-Flexi_Start-Half_Day,Lunch_Start-E4-Half_Day)))))
=IF(I4=4,-Full_Day)
=IF(I4=5,IF(Q4=TRUE,(IF(U4=TRUE,Flexi_End-Lunch_End-Full_Day,G4-Lunch_End-Full_Day)),IF(R4=TRUE,(IF(T4=TRUE,Lunch_Start-Flexi_Start-Full_Day,Lunch_Start-E4-Full_Day)))))
=IF(I4=6,-Half_Day)
=IF(I4=7,0)
=IF(I4=8,0)
=IF(I4=9,0)
=IF(I4=10,((IF(G4<CORE_END,MED_END,IF(G4>Flexi_End,Flexi_End,G4)))-(IF(E4>Core_Start,med_start,IF(E4<<FLEXI_START,FLEXI_START,E4))))-FULL_DAY-LUNCH_DURATION)[ CODE]
Flexi_Start,Flexi_Start,E4))))-Full_Day-Lunch_Duration)

now for all the formulars that end with a 0 i can simplify them with the OR function but what ever i do i cannot add them all on the same line. Is there something hidden in excel that will help me create a levelled code? or any pointers or a simplier way of what i am trying to do would be much appreciated.

Thank you in advance

Andy

I am on a Windows 7 Enterprise Laptop running Office 2010.

Edit: i was going to attach the spreadsheet but can't find the function to do that.
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I have viewed your sheet , you are doing the thing too difficult
If I am not mistaken , you want to identify the type of day based on clock in and clock out (I.E Duration)

S.noDaysClock InClock OutDuration In Hours
1 Standard Day--
2 Holiday--
3 Half Holiday--
4 Flexday--
5 Half Flexday--
6 Half Flex Half Holiday--

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>


With reference to above , kindly speciy the duration of working hours in front of each day , so that things can become easier to understand and work
 
Upvote 0
I have viewed your sheet , you are doing the thing too difficult
If I am not mistaken , you want to identify the type of day based on clock in and clock out (I.E Duration)

S.no
Days
Clock In
Clock Out
Duration In Hours
1
Standard Day
8.48
16.547.24
2
Holiday
00
3
Half Holiday
8.48 or 13.12
12.30 or 16.543.42
4
Flexday
0-7.24
5
Half Flexday
8.48 or 13.12
12.30 or 16.54-3.42
6
Half Flex Half Holiday
0-3.42

<TBODY>
</TBODY>


With reference to above , kindly speciy the duration of working hours in front of each day , so that things can become easier to understand and work

First off thanks for looking.

Thats where i'm struggling really, i'm on flexi time which makes it complicated to keep track of.
standard hours are 8.48 to 16.54 with 42 minutes for lunch. Standard day is 7.24, half day is 3.42.

So if i clock in at 8.00 then i have gained 48 minutes flexi time. and i can earn flexi time between 7.00 and 18.30.
 
Upvote 0
hmmm you want the excel to identify the type of shift based on login and log out + duration of overtime shift and convert that to nearest match shift .

its quite complicated and lengthy . I think you need to make the things must simpler . Because in formula you have not used cell references which is quite lengthy to understand .
 
Upvote 0
hmmm you want the excel to identify the type of shift based on login and log out + duration of overtime shift and convert that to nearest match shift .

its quite complicated and lengthy . I think you need to make the things must simpler . Because in formula you have not used cell references which is quite lengthy to understand .

I did it that way so i didn't have to keep going backwards and forwards to the other sheet and if i gave them a name then i would understand what the sum was. For row 4, cells V4:AE4 seem to give me the answer i want in the given situation, but it's just sticking it in the one cell that i can't seem to do.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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