+ Reply to Thread
Results 1 to 5 of 5

calculating time with text

  1. #1

    calculating time with text

    I am trying to get my spreadsheet to calculate hours paid for an
    employee but I need it add overtime and subtact how late they were as
    well. I have it in text format and need it to calculate in time
    format. I am also trying to get it to read each cell. Is there any
    way I can get to read each cell and calculate the time.


    The formula you see here is what I am using.


    COUNTIF(F6,"P*")/6 +
    COUNTIF(G6:J6,"p*")/4.8 +
    COUNTIF(G6:J6,"eh*")/4.8 +
    COUNTIF(G6:J6,"mu*")/4.8 +
    COUNTIF(G6:J6,"l*")/4.8 +
    COUNTIF(G6:J6,"el*")/4.8 +
    IF(RIGHT(G6,4) =3D "0:15",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) =3D "0:15",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) =3D "0:15",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) =3D "0:15",RIGHT(J6,4),0) +
    IF(RIGHT(G6,4) =3D "0:30",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) =3D "0:30",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) =3D "0:30",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) =3D "0:30",RIGHT(J6,4),0) +
    IF(RIGHT(G6,4) =3D "0:45",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) =3D "0:45",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) =3D "0:45",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) =3D "0:45",RIGHT(J6,4),0) +
    IF(RIGHT(G6,4) =3D "0:60",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) =3D "0:60",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) =3D "0:60",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) =3D "0:60",RIGHT(J6,4),0) -
    IF(OR(AND(LEFT(G6,1)=3D"L",RIGHT=AD(G6,4)>=3D"0:08",RIGHT(G6,4)<"0:=AD23"),=
    RIGHT(G6,4)=3D"0:15"),"0:15=AD",0)

    -
    IF(OR(AND(LEFT(G6,1)=3D"L",RIGHT=AD(G6,4)>=3D"0:23",RIGHT(G6,4)<"0:=AD37"),=
    RIGHT(G6,4)=3D"0:30"),"0:30=AD",0)


  2. #2
    Biff
    Guest

    Re: calculating time with text

    Hi!

    Hmmm.....

    That sure is an "interesting" way to keep a timesheet!

    > I have it in text format


    What exactly does that mean?

    >COUNTIF(F6,"P*")


    What are the COUNTIFs counting?

    Can you post a sample of your data?

    Biff

    <[email protected]> wrote in message
    news:[email protected]...
    I am trying to get my spreadsheet to calculate hours paid for an
    employee but I need it add overtime and subtact how late they were as
    well. I have it in text format and need it to calculate in time
    format. I am also trying to get it to read each cell. Is there any
    way I can get to read each cell and calculate the time.


    The formula you see here is what I am using.


    COUNTIF(F6,"P*")/6 +
    COUNTIF(G6:J6,"p*")/4.8 +
    COUNTIF(G6:J6,"eh*")/4.8 +
    COUNTIF(G6:J6,"mu*")/4.8 +
    COUNTIF(G6:J6,"l*")/4.8 +
    COUNTIF(G6:J6,"el*")/4.8 +
    IF(RIGHT(G6,4) = "0:15",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) = "0:15",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) = "0:15",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) = "0:15",RIGHT(J6,4),0) +
    IF(RIGHT(G6,4) = "0:30",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) = "0:30",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) = "0:30",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) = "0:30",RIGHT(J6,4),0) +
    IF(RIGHT(G6,4) = "0:45",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) = "0:45",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) = "0:45",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) = "0:45",RIGHT(J6,4),0) +
    IF(RIGHT(G6,4) = "0:60",RIGHT(G6,4),0) +
    IF(RIGHT(H6,4) = "0:60",RIGHT(H6,4),0) +
    IF(RIGHT(I6,4) = "0:60",RIGHT(I6,4),0) +
    IF(RIGHT(J6,4) = "0:60",RIGHT(J6,4),0) -
    IF(OR(AND(LEFT(G6,1)="L",RIGHT*(G6,4)>="0:08",RIGHT(G6,4)<"0:*23"),RIGHT(G6,4)="0:15"),"0:15*",0)

    -
    IF(OR(AND(LEFT(G6,1)="L",RIGHT*(G6,4)>="0:23",RIGHT(G6,4)<"0:*37"),RIGHT(G6,4)="0:30"),"0:30*",0)



  3. #3

    Re: calculating time with text

    count if are counting p representing that the associate was present.

    Example 1

    F G H I J

    6 P P MU0:60 P P 25:00:00

    Example 2

    F G H I J

    6 P P P P P 24:00:00

    I have it to calculate the extra 60 minutes that you see in example 1
    other wise it would calculate 24:00:00 as you see in example 2

    What I need it to do is subtract if they leave early or if they are
    late.


  4. #4
    Biff
    Guest

    Re: calculating time with text

    Hi!

    Sorry, but I don't understand what you're trying to do with this.

    While you may very well have a good reason to use this type of setup, I just
    can't imagine doing a timesheet this way.

    Look how long and complicated your formula is. It doesn't have to be that
    way! Basically, timesheets are fairly simple and the formulas needed are
    really simple.

    I would highly recommend that you setup a "conventional" timesheet and use
    normal times: ie: time in, time out.

    I'd be more than glad to help you set it up, or you can search the internet
    and find lots of free timesheet templates and sample files.

    Biff

    <[email protected]> wrote in message
    news:[email protected]...
    > count if are counting p representing that the associate was present.
    >
    > Example 1
    >
    > F G H I J
    >
    > 6 P P MU0:60 P P 25:00:00
    >
    > Example 2
    >
    > F G H I J
    >
    > 6 P P P P P 24:00:00
    >
    > I have it to calculate the extra 60 minutes that you see in example 1
    > other wise it would calculate 24:00:00 as you see in example 2
    >
    > What I need it to do is subtract if they leave early or if they are
    > late.
    >




  5. #5

    Re: calculating time with text

    I work in a call center and the formula i am coming up with is for our
    attendance log in our new hire class. I need it to calculate in 15
    minute increments. thanks for your help but i figured it out. I used
    another sheet to do my calculations. if you want to see what i did let
    me have your email address by emailing me at
    [email protected]


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1