How do I formulate (d-c) +(b-a) or d-a in the same cell?

I'm trying to create a formula in Numbers. I have 4 columns to enter time data (for daycare). On some days, kids have school. I need a formula that will total the hours depending on school (d-c) + (b-a) or for when I have them the full day (d-a). I need it to be able to use first formula if all 4 columns have entries and if not to use second formula.

Hello
Actually you only need one formula: D-A-(C-B).
A pitfall in Numbers is date-time value. There's no time-only value and if you input 12:00 in a cell, the date is automatically assumed to be today's date. Because of this, you'd have to be very careful in handling values which look like time-only value but actually date-time value. (If you input A, B, C and D on different days, simple D-A-(C-B) won't yield the expected result.)
One way around this annoying issue is to use HHMM or HHMMSS notation for time-only value which is indeed nothing but a number and calculate the quasi time-only value by TIME(HH,MM,SS) function. TIME() function returns a date-time value of which date is the constant epoch date, that is 1904-01-01.
E.g.,
Table 1
A1  a
A2  1200
A3  1300
A4 
B1  b
B2  1400
B3 
B4 
C1  c
C2  1430
C3 
C4 
D1  d
D2  1700
D3  1600
D4 
E1  d-a-(c-b)
E2  =I2-F2-(H2-G2)
E3  =I3-F3-(H3-G3)
E4  =I4-F4-(H4-G4)
F1 
F2  =TIME(INT(A2/100),MOD(A2,100),0)
F3  =TIME(INT(A3/100),MOD(A3,100),0)
F4  =TIME(INT(A4/100),MOD(A4,100),0)
G1 
G2  =TIME(INT(B2/100),MOD(B2,100),0)
G3  =TIME(INT(B3/100),MOD(B3,100),0)
G4  =TIME(INT(B4/100),MOD(B4,100),0)
H1 
H2  =TIME(INT(C2/100),MOD(C2,100),0)
H3  =TIME(INT(C3/100),MOD(C3,100),0)
H4  =TIME(INT(C4/100),MOD(C4,100),0)
I1 
I2  =TIME(INT(D2/100),MOD(D2,100),0)
I3  =TIME(INT(D3/100),MOD(D3,100),0)
I4  =TIME(INT(D4/100),MOD(D4,100),0)
* You may fill down and fill right the formula in F2 and fill down the formula in E2.
Table is built in Numbers v2.
Good luck,
H

Similar Messages

  • TS3280 How can i enable both paired bluetooth and ios keyboard input at the same time?

    How can i enable both paired bluetooth and ios keyboard input at the same time?
    This is needed for the app im working on. Need some user input via keypad as well as scanner input via a paired bluetooth scanner.

    You probably should not be using a keyboard bluetooth profile for a scanner, I am not a developer for apple so do not know the location for you to find out the correct profile you should be using for an input device that is not a keyboard. Sorry,
    I am sure if you navigate the apple developer site you will probaly finmd what you're looking for.
    https://developer.apple.com

  • How do i have an ipod touch and an ipad sync to the same pc?

    how do i have an ipad and an ipod touch sync on the same computer but they have different apps on them?
    i knopw it is possible but i just dont no how to do it. as my ipod touch is only 8gb and my ipad is 16gb so everything off the ipad is making the ipod slow as it has only 8gb memory,
    thanks,

    When you connect each device and select them on the left-hand side of your computer's iTunes, then on the right-hand side you can select what to sync to that device e.g. which apps via the Apps tab, music via the Music tab etc. Those selections for each device should be remembered each time you re-connect the device, so you shouldn't have to go through the selection process each time (unless you want to change what you want to sync).

  • How to integrate bing map for including or displaying multiple locations at the same time

    how to integrate bing map for including or displaying multiple locations at the same time

    Have you aware of the geolocation field that's been introduced with SharePoint 2013?  You can store location data within a list and then integrate this within Bing.  The second tutorial on this Bing team blog will show it well.
    https://www.bing.com/blogs/site_blogs/b/maps/archive/2013/03/26/connecting-a-sharepoint-list-to-bing-maps.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How do I share photos and music between different user accounts on the same macbook

    How do I share photos and music between different user accounts on the same Macbook? i.e. I want all to be able to access family photos when logged into their respective accounts. Same goes for the iTunes library. Hope this is possible...
    Thanks!

    To give other users read-only access to your iTunes library, use the Sharing features of iTunes. Sharing works over the local network as well as on the same computer. See the built-in help for details.
    To give others selective access to your iPhoto library, you have the option of using iCloud Photo Sharing, if the privacy implications don't bother you. The images will be stored temporarily on Apple servers.
    If you want to give full read/write access to more than one user, see the support articles linked below.
    iTunes: How to share music between different accounts on a single computer
    iPhoto: Sharing libraries among multiple users
    There is a way to share the library without moving it to a secondary volume. If you really need to do that, ask for instructions.

  • HT204053 How do I have my  wife's iphone 4s upload pics to the same icloud used for my ipad and iphone?  Phone does not allow changing icloud ID once established.

    How do I have my wife's iphone 4s upload pics to the same icloud I use for with my 4s and ipad?  Can seem to change her icloud ID to match mine.

    I can tell you how to do this but first wanted to be sure that's what you want to do.  You would then be sharing the same iCloud account and any synced data (contacts, calendars, etc.) would then be merged and the merge data would appear on her phone and your iPad (i.e., you'll end up with each other's contacts on your phone). You would also both be backing up your devices to the same account, sharing the 5GB of free storage (assuming you're both backing up to iCloud).
    There's an alternative setup that would allow her to set up your iCloud account on her phone as her primary account and just turn on photo stream in that account (allowing your to share you photo stream), then set up a secondary iCloud account on her phone that would sync her Mail, Notes, Contacts, Calendars and Reminders.  She would still have to back up her phone to your account, as well as syncing Safari, Documents and Find My iPhone (all of which can only be done in the primary account).  Also, her mail would be fetch, not push as push email is only supported in the primary account.
    I suppose a third option is to leave things as they are and share you photos with each other using shared photo streams.
    Let me know what you want to do and I'll give you the steps.

  • How do I add space between lines of text in the same cell on Numbers 3.0.1

    I just updated to Mavericks 10.9. In numbers, I used to be able to uncheck a box in the inspector that would make it so the Return key did not move to the next cell, but instead allowed me to add more space between lines of text in the same cell.
    How can I do this in the new version of numbers?

    HI ilb,
    Numbers 3 is a complete rewrite of the application. This preference option hasn't (yet) been included, but N3 is very much a 'work in progress. A word to Apple via Provide Numbers Feedback asking to have this option included in Numbers 3 might be a useful step. You'll find Provide Numbers Feedback in the Numbers menu in Numbers.
    Regards,
    Barry

  • For iTunes Match, how come some songs "match" on an album and other songs on the same album "upload" without matching?

    For iTunes Match, how come some songs "match" on an album and other songs on the same album "upload" without matching?  All songs are available on iTunes.  I don't get it!  Any way to manually match songs that iTunes apparently can't match?  I have hundreds in this unmatched state.

    gsl wrote:
    Shazam has NO problem determining what these songs are. Maybe Apple needs to consider licensing their technology as it seems MUCH more accurate than what they are doing.
    You aren't comparing like with like.
    The main task that Shazam has is to identify the name or a track and the artist. I believe that it suggests the album as well, but if it gets that wrong then it doesn't really matter too much.
    With iTunes Match, getting the album (i.e. identifying which version it is) is much more important. If it gets that wrong then it breaks up the flow of an album. This makes the task that match has very much harder.
    In fact, there is a strong argument to say that currently the problem iTunes has is that it is matching too many songs, resulting in matches from different albums.
    I'm sure that match is not struggling to identify whether it has a song or not, but whether it has the correct version of a song. When you introduce different masterings into the process then, depending on the thresholds set, it is probably correct in concluding that it hasn't got a particular version, even if you think it has.
    The solution would appear to me to be a tweaking of the matching thresholds along with the ability to force an upload, but we just don't know what restrictions they have (remember that if Shazam gets it wrong the it doesn't present you with a copy of a new track that you didn't have previously). It is almost certainly not just a case of improving their technology.

  • HT204053 How do i make icloud work if my husband and I share the same itunes account but we dont want to get each others contacts, messages, apps etc?

    How do i make icloud work if my husband and I share the same itunes account but we dont want to get each others contacts, messages, apps etc?

    Each of you should set up your separate iCloud account on your own computer using your Apple ID. This gives you two independent iCloud accounts.
    Note that an iPad is not a multi-user device. It can only be synced with one account.

  • I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    If all you want is an additional email address you can create up to three 'email aliases'  - these are additional addresses (not accounts) which deliver into the same inbox as the main account.
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account, move it to another account, or reactivate it if you delete it.
    More information on aliases here:
    http://help.apple.com/icloud/#mm6b1a490a
    If you want to keep her email separate from yours she will need to create a new Apple ID, and use it to create a new iCloud account either on a separate computer or on a separate User Account on your Mac.

  • HT4061 How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases?

    How do I consolidate purchases from two different ids that are on the same bank account, and eliminate the extra id without losing any purchases? I want my music to match on both ipad and computer.

    Purchases are forever tied to the AppleID they were bought with. There is currently no way to consolidate AppleIDs. Sorry.

  • How do I share microsoft software on a mac between users of the same mac?

    How do I share microsoft software on a mac between users of the same mac?
    New Mac
    Set up Microsoft tools on the mac but can't figure out how to share them between different logins we have setup on our computer

    Hello FritzMills3,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    FaceTime for Mac 1.x: Manage your FaceTime settings
    http://support.apple.com/kb/PH5652
    Open FaceTime preferences
    Choose FaceTime > Preferences.
    The Account field identifies the Apple ID you used to sign in to FaceTime.
    You can turn off and sign out of apple id.
    Have a nice day,
    Mario

  • How to transfer data from an account to a new account in the same mac

    How to transfer data from an account to a new account in the same mac (macbook)

    Search these forums for merge accounts and also peruse these:

  • How do I send a text message to family members all at the same time

    How do I send a text message to family members all at the same time

    Open a new message and then add all the contact in the to:

  • How do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    how do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    A bit vague as to what you intend, but the simple answer is to select all the files you want to delete then either drag to the Trash or CTRL- or RIGHT-click on the selection and choose Move to Trash from the contextual menu.

Maybe you are looking for

  • Yet another Music Store Connection Problem

    First time iPod/iTunes user. Just Installed iTunes 5.0.1.4. I Get The Error Message: iTunes could not connect to the music store. The network connection Timed Out. I tried many of the suggestions that were posted to no avail. Whatever iTunes is doing

  • Self-assigned IP !!! Can't connect via Ethernet

    Hi all, This is my problem: - Now every time I connect my MBP (running 10.6.4) to my hall's network (staying on campus, in uni) it appears as "Self-assigned IP" and cannot connect to the internet for the Ethernet. It suddenly happened a few days ago

  • Using an Excel file as a dynamic data source? Opinions needed...

    I have posted this topic before, but as always; in order to get the relevant correct answer you have to ask the correct question. I'm trying to create a number of Pricelists linked to an Excel/CSV file. I have a Excel file that contains Pricelist inf

  • Cold weather

    i live in minnesota and, twice now, my ipod photo (fourth generation) has had troubles while using it outdoors. while walking, the device stored in my coat pocket, the music has stopped playing and i cannot get the ipod to respond. then after keeping

  • Digital Booklet PDF is damaged and won't open

    Hi, I purchased Negramaro- Mentre tutto scorre on the iTunes music store yesterday, but whenever I try to open the interactive booklet pdf file in acrobat reader, I get a message saying "There was an error opening this document. The file is damaged a