Adding two time periods together, summing it up and misusing 30 minutes from it HELP!

SUPer tricky questions and brownie points for who can solve it!
Column B6 has 11:00 am, Column C6 has 1:00 pm, column D6 has the total hours calculated (i.e. work from 11:00 am to 1:00 pm = 2 hours) and i want column e6 to minus half an hour (.30 hours) and display -.30 OR minus .30 minutes from Colulmn D6... however, only if the total hours/time in column D6 is greater than 5 hours. PLEASE FOR THE LOVE OF GOD TELL ME THE FORMULA FOR THIS!!

Hi Chris,
No need to shout.
Formula in column C (calculates the Duration (time elapsed) between two Date and Time values:
=B-A
Formula in column D (Calculates the same Duration as above, but subtracts 30 minutes if the total Duration is greater than 5 hours):
=IF(DUR2HOURS(B-A)>5,B-A-DURATION(,,,30,,),B-A)
Note that any cell displaying a Date or a Time (of day) or both contains a Date and Time value.
If only the Date has been entered, the time part is set to 00:00:00 (midnight, at the beginning of that day).
If only the Time has been entered, the date part is set to the date the entry was made.
In the table above, the values in Row 18, the bottom row of the table are as follows:
A18: March 1, 2012 11:00:00 AM
B18: March 1, 2012 5:00:00 PM
C18: 6h
D18: 5h 30m
The first two are Date and Time values, the second two are Duration values.
Regards,
Barry

Similar Messages

  • Adding two time figures together

    Please forgive me I am not familiar with FormCalc or Javascript.
    I am creating a form for work and I need to add two time figures minutes and seconds (IE 02:30 + 02:30) I have looked all over the web and I can not find anything that is working,
    I can add the two figures together but I get (ie 4:60)
    please any help you can give will be be wonderful

    Hi Chris,
    No need to shout.
    Formula in column C (calculates the Duration (time elapsed) between two Date and Time values:
    =B-A
    Formula in column D (Calculates the same Duration as above, but subtracts 30 minutes if the total Duration is greater than 5 hours):
    =IF(DUR2HOURS(B-A)>5,B-A-DURATION(,,,30,,),B-A)
    Note that any cell displaying a Date or a Time (of day) or both contains a Date and Time value.
    If only the Date has been entered, the time part is set to 00:00:00 (midnight, at the beginning of that day).
    If only the Time has been entered, the date part is set to the date the entry was made.
    In the table above, the values in Row 18, the bottom row of the table are as follows:
    A18: March 1, 2012 11:00:00 AM
    B18: March 1, 2012 5:00:00 PM
    C18: 6h
    D18: 5h 30m
    The first two are Date and Time values, the second two are Duration values.
    Regards,
    Barry

  • HT4259 Direct Connect  Two Time Capsules together with Ethernet.

    I have TWO Time Capsules  ( One upstairs providing Time Machine backup to IMAC #1 )  and  (One downstairs providing Time Machine Backup to IMAC#2)
    I would like to extend the wireless network portion of this to reach the whiole house with ONE wireless network. I know I can EXTEND the network, but my question is can Connect the two time capsules together via Ethernet cable ( my house is pre wired).  This will essentially ensure that the two devices have a solid connection instead of relying on WIRELESS.
    Any reasons to NOT do this?
    Time Machine will be used differently on the two devices.
    Thanks
    Ron

    Hello!
    I have the same problem, i am trying to do this
    Timecapsule nr 1, ISP uplink to WAN.
    from this one i have LAN to the other timecapsule to WAN.
    On the first timecapsule i have DHCP/NAT enable.
    On the second i have, Bridge mode.
    But when i am connected with eth to the second one i wont recive dhcp addresses or anything... like it wont passtrough.
    Any ideas?

  • TS4268 Hello, it's been 5 days now since my imessage has not working..and i have chatted to the costumer for two times. I took thier advice and instructions just to enable to send and receive on it but unfortunately until now its still NOT working. Pls.he

    Hello, it's been 5 days now since my imessage has not working..and i have chatted to the costumer for two times. I took thier advice and instructions just to enable to send and receive on it but unfortunately until now its still NOT working. Is there anybody who could help me please?

    Try this even if you have already.  Just make sure to follow the steps specifically.
    Go to settings > Facetime > send and recieve > tap on your apple id and sign out.  If your not signed in then that will work as well.
    Go to settings > Messages > sent and recieve > tap on your apple id and sign out.
    Restart the iPad by doing the slide to power off setup.  Just hold the power button on the top right till it turns off.
    After the iPad has been restarted:
    Go to settings > Facetime > and sign in
    Go to settings > Messages > and sign in
    Wait about 3 min then restart the iPad again.  Same instructions as above.
    When you restart you should be able to use messages again.  If not then call support again and talk to someone higher than the first level support they have.

  • When trying to update Acrobat XI I get a 1328 error each time. I have uninstalled XI and reinstalled it from disk. When trying to update the newly installed XI I still get the 1328 error. I have searched my C: drive for the file C:\config\Msi\PTA082.tmp b

    When trying to update Acrobat XI I get a 1328 error each time. I have uninstalled XI and reinstalled it from disk. When trying to update the newly installed XI I still get the 1328 error. I have searched my C: drive for the file C:\config\Msi\PTA082.tmp but with no sucess. Any suggestions?

    Hi Berriedale,
    Please try the below steps and check.
    Turn off any antivirus or software security program.
    Download the update patch 11.0.10 manually from the below link and run it.
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=5859
    Regards,
    Anand

  • I downloaded a movie on my apple tv and now when I try to watch it tells me there is an error and to try later.  I have tried several times over the last 5 days and nothing changes.  Any help please?

    I downloaded a movie on my apple tv and now when I try to watch it tells me there is an error and to try later.  I have tried several times over the last 5 days and nothing changes.  Any help please?

    What is your current connection via speedtest.net
    Make sure DNS is set to auto (settings - general - network)
    If on wifi try ethernet

  • Directory being added two times in JTable rows.(JTable Incorrect add. Rows)

    hi,
    I have a problem, The scenario is that when I click any folder that is in my JTable's row, the table is update by removing all the rows and showing only the contents of my selected folder. If my selected folder contains sub-folders it is some how showing that sub-folder two time and if there are files too that are shown correctly. e.g. If I have a parent folder FG1 and inside that folder I have one more folder FG12 and two .java files then when I click on FG1 my table should show FG12 and two .java files in separate rows, right now it is showing me the contents of FG1 folder but some how FG12 is shown on two rows i.e. first row shows FG12 second row shows FG12 third row shows my .java file and fourth row shows my .java fil. FG12 should be shown only one time. The code is attached. The methods to look are upDateTabel(...) and clearTableData(....), after clearing all my rows then I proceed on adding my data to the Jtable and inserting rows. May be addRow(... method of DefaultTableModel is called two times if it is a directory I don't know why. Please see the code below what I am doing wrong and how to fix it. Any help is appreciated.
    Thanks
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.text.SimpleDateFormat;
    import java.util.*;
    public class SimpleTable extends JPanel {
         /** Formats the date */
         protected SimpleDateFormat           formatter;
    /** two-dimensional array to hold the information for each column */
    protected Object                     data[][];
    /** variable to hold the date and time in a raw form for the directory*/
    protected long                          dateDirectory;
    /** holds the readable form converted date for the directories*/
    protected String                     dirDate;
    /** holds the readable form converted date for the files*/
    protected String                     fileDate;
    /** variable to hold the date and time in a raw form for the file*/
    protected long                          dateFile;
    /** holds the length of the file in bytes */
    protected long                         totalLen;
    /** convert the length to the wrapper class */
    protected Long                         longe;
    /** Vector to hold the sub directories */
    protected Vector                     subDir;
    /** holds the name of the selected directory */
    protected String                    dirNameHold;
    /** converting vector to an Array and store the values in this */
    protected File                     directoryArray[];
    /** hashtable to store the key-value pair */
    protected static Hashtable hashTable = new Hashtable();
    /** refer to the TableModel that is the default*/
    protected DefaultTableModel      model;
    /** stores the path of the selected file */
    protected static String               fullPath;
    /** stores the currently selected file */
    protected static File selectedFilename;
    /** stores the extension of the selected file */
    protected static String           extension;
    /** holds the names of the columns */
    protected final String columnNames[] = {"Name", "Size", "Type", "Modified"};
         * Default constructor
         * @param File the list of files and directories to be shown in the JTable.
    public SimpleTable(File directoryArray[])
              this.setLayout(new BorderLayout());
              this.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              (SimpleTable.hashTable).clear();
              data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
              formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
              //this shows the data in the JTable i.e. the primary directory stuff.
              for(int k = 0; k < directoryArray.length; k++)
                   if(directoryArray[k].isDirectory())
                        data[k][0] = directoryArray[k].getName();
                        data[k][2] = "File Folder";
                        dateDirectory = directoryArray[k].lastModified();
                        dirDate = formatter.format(new java.util.Date(dateDirectory));
                        data[k][3] = dirDate;
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    
                   else if(directoryArray[k].isFile())
                        data[k][0] = directoryArray[k].getName();
                        totalLen = directoryArray[k].length();
                        longe = new Long(totalLen);
                        data[k][1] = longe + " Bytes";
                        dateFile = directoryArray[k].lastModified();
                        fileDate = formatter.format(new java.util.Date(dateFile));
                        data[k][3] = fileDate;
                        (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
    model = new DefaultTableModel();
    model.addTableModelListener( new TableModelListener(){
              public void tableChanged( javax.swing.event.TableModelEvent e )
              final JTable table = new JTable(model);
              table.getTableHeader().setReorderingAllowed(false);
              table.setRowSelectionAllowed(false);
              table.setBorder( BorderFactory.createEmptyBorder( 0, 0, 0, 0 ) );
              table.setShowHorizontalLines(false);
              table.setShowVerticalLines(false);
              table.addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    //TBD:- needs to handle the doubleClick of the mouse.
    System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
    if(e.getClickCount() >= 2 &&
    (table.getSelectedColumn() == 0) &&
    ((table.getColumnName(0)).equals(columnNames[0])))
         System.out.println("The clicked component is " + table.rowAtPoint(e.getPoint()) + "AND the number of clicks is " + e.getClickCount());
         upDateTable(table);
    upDateTable(table);
              /** set the columns */
              for(int c = 0; c < columnNames.length; c++)
                   model.addColumn(columnNames[c]);
              /** set the rows */
              for(int r = 0; r < data.length; r++)
                   model.addRow(data[r]);
              //this sets the tool-tip on the headers.
              DefaultTableCellRenderer D_headerRenderer = (DefaultTableCellRenderer ) table.getTableHeader().getDefaultRenderer();
              table.getColumnModel().getColumn(0).setHeaderRenderer(D_headerRenderer );
              ((DefaultTableCellRenderer)D_headerRenderer).setToolTipText("File and Folder in the Current Folder");
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    this.add(scrollPane, BorderLayout.CENTER);
    * Returns the number of columns
    * @return int number of columns
    public int getColumnTotal()
         return columnNames.length;
    * Returns the number of rows
    * @return int number of rows
    public int getRowTotal(Object directoryArray[])
         return directoryArray.length;
    * Update the table according to the selection made if a directory then searches and
    * shows the contents of the directory, if a file fills the appropriate fields.
    * @param JTable table we are working on
    * //TBD: handling of the files.
    private void upDateTable(JTable table)
    if((table.getSelectedColumn() == 0) && ((table.getColumnName(0)).equals(columnNames[0])))
         dirNameHold =(String) table.getValueAt(table.getSelectedRow(),table.getSelectedColumn());
                   File argument = findPath(dirNameHold);
                   if(argument.isFile())
                        CMRDialog.fileNameTextField.setText(argument.getName());
                        try
                             fullPath = argument.getCanonicalPath();                          
                             selectedFilename = argument.getCanonicalFile();                          
    CMRDialog.filtersComboBox.removeAllItems();
                             extension = fullPath.substring(fullPath.lastIndexOf('.'));
                             CMRDialog.filtersComboBox.addItem("( " + extension + " )" + " File");
                        catch(IOException e)
                             System.out.println("THE ERROR IS " + e);
                        return;
                   else if(argument.isDirectory())
                        String path = argument.getName();
                             //find the system dependent file separator
                             //String fileSeparator = System.getProperty("file.separator");
                        CMRDialog.driveComboBox.addItem(" " + path);
              subDir = Search.subDirs(argument);
              /**TBD:- needs a method to convert the vector to an array and return the array */
              directoryArray = new File[subDir.size()];
                   int indexCount = 0;
                   /** TBD:- This is inefficient way of converting a vector to an array */               
                   Iterator e = subDir.iterator();               
                   while( e.hasNext() )
                        directoryArray[indexCount] = (File)e.next();
                        indexCount++;
              /** now calls this method and clears the previous data */
              clearTableData(table);     
                   (SimpleTable.hashTable).clear();
                   data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
                   formatter = new SimpleDateFormat("mm/dd/yyyy hh:mm aaa");
                   data = null;
                   data = new Object[this.getRowTotal(directoryArray)][this.getColumnTotal()];
                   for(int k = 0; k < directoryArray.length; k++)
                        if(directoryArray[k].isDirectory())
                             data[k][0] = directoryArray[k].getName();
                             data[k][2] = "File Folder";
                             dateDirectory = directoryArray[k].lastModified();
                             dirDate = formatter.format(new java.util.Date(dateDirectory));
                             data[k][3] = dirDate;
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);
                             model.addRow(data[k]);
                             model.fireTableDataChanged();
                        else if(directoryArray[k].isFile())
                             data[k][0] = directoryArray[k].getName();
                             totalLen = directoryArray[k].length();
                             longe = new Long(totalLen);
                             data[k][1] = longe + " Bytes";
                             dateFile = directoryArray[k].lastModified();
                             fileDate = formatter.format(new java.util.Date(dateFile));
                             data[k][3] = fileDate;
                             (SimpleTable.hashTable).put(directoryArray[k].getName(), directoryArray[k]);                    }
                             model.addRow(data[k]);
                             model.fireTableDataChanged();
              table.revalidate();
              table.validate();               
    * Searches the Hashtable and returns the path of the folder or the value.
    * @param String name of the directory or file.
    * @return File     full-path of the selected file or directory.
    public File findPath(String value)
         return (File)((SimpleTable.hashTable).get(value));
    * This clears the previous data in the JTable and removes the rows.
    * @param     JTable table we are updating.
    public void clearTableData(JTable table)
         for(int row = table.getRowCount() - 1; row >= 0; --row)
                   model.removeRow(row);
              model.fireTableStructureChanged();

    java gurus any idea how ti fix this problem.
    thanks

  • Creation of Z reports for client adding two more column that is Purcahse order and delivery dates with Internal order wise

    HI Experts,
    Can any one help me to add two more column for standard report that is purchase order and delivery dates for Internal order wise.
    But here problem is when i checked with ABAP team they said there is no standard functional module to add two column.
    Please note below :
    Selection criteria is: 1) controlling area
                                  2) Fiscal Year
                                  3) From date and To date
                                  4) Plan Version
                                  5) Order Group.
    My client suggested : S_ALR_87012993 this tcode to run, but we suggested with S_ALR_87013019 as in this tcode we can get all the details
    That is required output fields, as it is showing all details but on yearly basis, he wants this to be period wise and also Abap team is not able to find standard functional module in the second tcode as well.
    Out Put fields to Pop up
    1) Orders.
    2) Budget
    3) Actual
    4) commitment
    5) Alloted
    6) Available
    These are two additional column
    7)Purchase order
    8) Delivery date.
    Require your help to know which all tables are included to extract above out put fields please help me.
    Thanks in Advance.
    Regards,
    Sudesh

    Hi Preeti,
    Thanks for reply, can you please let me know is there any other way to show the output fields.
    As my client is very specific to run the report on period wise, i also tried to execute the standard tcode S_ALR_87013019 and were we are getting all the required outputs to pop up but this is on year wise, but we can also check by period basis by clicking on order number and actual period basis where we can see period basis.
    Also one more question,what is the commitment table which is popping up in this, please advise.
    Thanks in advance.
    Regards,
    Sudesh

  • Adding two double's together??

    Hi,
    I want to add two prices which are Strings to start off with and to get the end calculation in J2ME.
    As I can't parse the string into a double, how do I go about doing all of this (String -> double -> end result which is the addition fo the two prices?
    i.e. �12.50 + �13.50 = calculatedResult ??
    Any help would be appreciated,
    Harry

    Hi again,
    I have another problem. If a value comes in for example at �1.995 and say is added to a value �0.005, how can this be dealt with when rounding up? This needs to go to �2 but using the code you provided will only get me to �10.95.
    I have to handle cases where the value may come at �1.995, �1.996, �1.997, �1.998 and �1.999. Each of these 5 values will be added to �0.005 and I really need the addition of the 2 values to be rounded properly. i.e. if �1.996 is added to �0.005 then the resultant answer is �2.00 and not �2.001. The last case �1.999 + �0.005 will come to �2.004 so the half pence will never become a full pence if you understand what I'm saying...? But �9.999 + �0.005 will become �10.004 so the pound has changed here and will need to be dealt with.
    Please help!

  • Adding two array lists together and a text file to an array list

    I'm having problems coding these two methods... Could someone explain how to do this? I can't find information on it anywhere... :(
    "MagazineList" is the class I'm coding in right now, and I already declared "list" as an array list of another class called "Magazine".
    public boolean addAll(MagazineList magazines)
           if (list == magazines) {
               return false;
            else {
                list.addAll(magazines);
           return true;
       public boolean addAll(String filename)
           Scanner in = ResourceUtil.openFileScanner(filename);
            if (in == null) {
               return false;
            String line = source.nextLine();
            while (!line.equals("")) {
              list.add(Magazine(source));
           in.close();
       }

    I assume "addAll(MagazineList magazines)" is defined in the MagazineList class?
    Then,
    list.addAll(magazines);probably needs to be something like:
    list.addAll(magazines.list);This uses the private variable ( should be private) list from the input MagazineList, and adds all of those Magazine objects to the list in the current MagazineList.
    But, yes, describe your problems more clearly, and you'll get better answers more quickly (because people will be able to understand you and give you a suggestion without asking you another question first).

  • How to specify two time periods in data manager

    Hi
    How to configure a data manager where in I have to provide option of coping INR data from last year period to the current year.
    Note:- Users do not want to use copy package as we have to run logic for only few accounts
    Regards
    Edited by: Rohit26 on Sep 24, 2011 9:36 AM
    Edited by: Rohit26 on Sep 24, 2011 9:36 AM

    I think that PROMPT SELECTINPUT should be able to do what you need: have 2 selections of same Dimension in one Package. Take a look at example given in the documentation [http://help.sap.com/saphelp_bpc75_nw/helpdata/en/e9/23ece2cfd7489f8aa457d78d306a38/frameset.htm].
    Let us know if this is not what you are looking for.
    Gersh

  • Adding two parsed values together

    Why does the following code give me an error of "invalid token +":
    String a = "100";
    String b = "200";
    double sum = Double.parseValue(a) + Double.parseValue(b);

    I am using Eclipse 3.1 --
    I seems to be an eclipse debug error. If Iclick on
    Double.parseDouble(a) + Double.parseDouble(b); and Iclick inspect or I try viewing the value in the Display window - I get the above error. However, when I run my code, it seems to work fine.
    Thanks for everyones help -

  • How do I daisy chain two time capsules as a wired router and use the hard of both as back-up?

    I have a newer time capsule tower and an older time capsule that I wasn't using. The older TC works fine I just decided to upgrade about 6 months ago. I decided to run an Ethernet cable from the room where the TC tower is to the room where the TV in order to create a wired connection to the TC tower. I wanted to use my Apple TV with a wired. In addition, I am in the process of buying a Channel Master DVR plus and besides wanting to use it with older TC wired also wanted to use the older TC’s hard drive to extend the recording time of the DVR. Will this work? If so, my questions are related to setup of all. I assuming I plug the Ethernet cable into the LAN port of the TC tower and the other end into the WAN port of the older TC. Is this correct? What settings do I need on the TC tower and the older TC to make this work as a wired connection? Do I need to turn off the wireless connection on the older TC? Will I just need to plug in the DVR into the older TC’s USB port to use its hard drive? Thanks for your assistance.

    I assuming I plug the Ethernet cable into the LAN port of the TC tower and the other end into the WAN port of the older TC. Is this correct?
    Yes
    What settings do I need on the TC tower and the older TC to make this work as a wired connection?
    The setup "wizard" will automatically provide the correct settings to the older TC to "extend a network using Ethernet" when you start from a factory default reset condition on the old TC.
    Do I need to turn off the wireless connection on the older TC?
    You can, but if the older TC is located some distance from the new TC, you might want to leave the wireless on to allow an "extended" network with more wireless coverage in the area near the old TC.
    Will I just need to plug in the DVR into the older TC’s USB port to use its hard drive?
    The USB port on the old TC (and new TC) will only support a normal computer hard drive.....not a DVR. If you want to connect a hard drive for more recording capacity, you will likely need to use a separate USB or SATA hard drive that is connected directly to the DVR, not to the old TC. 
    Check the documentation on the DVR to confirm how that device should be set up.

  • Can I daisy chain 2 time capsules together to increase my wired network capability from 3 to 6

    I am getting a new TC and would like to use my other one so I can hardwire other networked devices i.e Xbox, playstation, 2nd airport express

    Did you want to wireless bridge between the two TC??
    That is also possible.. but keeping everything ethernet is better.
    Note you lose a port on TC1 as the link port to TC2.. so with WAN used that means only 2x devices on TC1, but you can have 3 devices on TC2 in bridge. That adds up to 5.. do you need 6??
    Note you can use a switch.. it is far far cheaper than a second TC if you are networking it.

  • HT1657 its been two times i rent movies on itunes and this time there 44 mins left and cant watch the end didnt download correctly wasted money thanx

    is there any support somewhere f****g tired of renting movie i cant end and waste money

    You can try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account (Store > View My Apple ID on iTunes 11) and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that film and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.

Maybe you are looking for

  • Creation of cost center

    Hi, Can anyone tell me about,How to creation of cost center? Thanks

  • 24" iMac - light visible through case

    Soes anyone else have their 24" in a dark room ? At night when my room is pitch black, I can see a light shining through the case. It's NOT the sleep light, and I can see it even when the computer is turned off. The location of the light is immidiate

  • How do I import music and picture files from my Creative Zen?

    I have a Creative Zen media player, which uses Windows Media Player to operate. I have downloaded media player for Mac OS X, but cannot figure out how to import my music. On my old PC, when I plugged in my mp3 player, it automatically was recognized.

  • Where do I update CS3 to open images from cd

    My friend gave me some images to edit from my daughters wedding on a cd. I have CS3 and the bridge and it will not allow me to open and edit the images. She has a new Canon 5D camera and I don't know if that is reason, but she said I need an update,

  • Bookmarks opening when Safari starts

    As you might have noticed, if you open Safari, and you have no pages left open from the last session, it will bring up the bookmarks menu no matter what. This is annoying because most of the time I open Safari I just want to do a quick search on goog