+ Reply to Thread
Results 1 to 5 of 5

If Formula containing text and numbers (SUM)

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    staffordshire, UK
    MS-Off Ver
    Excel 2003 excel 2010
    Posts
    18

    If Formula containing text and numbers (SUM)

    Hi All

    I am trying to sort a formula in a time sheet.

    I have got two formula's but can not nest them for some reason.

    =IF(P33="AL","07:30") - This however isn't returning 07:30 as number format.

    -IF(P33=""","",SUM(P35-N35)-""00:30")

    Day Date In Out Worked
    Saturday 13/04/13 07:00 15:00 7:30
    Sunday 14/04/13 AL AL 7:30

    Thanks for looking

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If Formula containing text and numbers (SUM)

    It will be better for all, if you upload a sample workbook, typing manually the expected results and explaing why you expect these.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    staffordshire, UK
    MS-Off Ver
    Excel 2003 excel 2010
    Posts
    18

    Re: If Formula containing text and numbers (SUM)

    Quote Originally Posted by Fotis1991 View Post
    It will be better for all, if you upload a sample workbook, typing manually the expected results and explaing why you expect these.
    Hi there

    Hopefully a sample is attached.

    I am trying to create a time sheet. working out clocking times is fine its just when I try and distingush A/L and make it SUM so the week total relfects both work time and leave.

    Regards
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: If Formula containing text and numbers (SUM)

    Do you mean?

    =IF(L3="AL","7:30",IF(L3="","",SUM(L3-J3)-"00:30"))

  5. #5
    Registered User
    Join Date
    10-25-2012
    Location
    staffordshire, UK
    MS-Off Ver
    Excel 2003 excel 2010
    Posts
    18

    Re: If Formula containing text and numbers (SUM)

    Quote Originally Posted by Fotis1991 View Post
    Do you mean?

    =IF(L3="AL","7:30",IF(L3="","",SUM(L3-J3)-"00:30"))
    Thanks Fotis

    I feel a little silly as I tried what I thought was everything similar to this but I couldn't get it spot on.

    Thanks for your time

+ 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