+ Reply to Thread
Results 1 to 6 of 6

Auto Invoice Help

  1. #1
    Registered User
    Join Date
    08-08-2016
    Location
    Hampshire, England
    MS-Off Ver
    Mac
    Posts
    2

    Question Auto Invoice Help

    Hello,

    It has been years since using excel to its full advantage not since I was at school.

    I would like to create an invoice that auto completes when given a start & finish time, and was wondering if anyone can help?

    So what I am trying to achieve;

    I have 7 Fields, These are required by the company I work for
    Date(A), Start(B), Finish(C), Reference 1, Reference 2, Total Hours(F), Amount Claimed(G)

    I would like to be able to put the start time and finish time in and it does the rest for me, with a few conditions;

    I need the formula to work out the following;

    Deference of (B & C) - 30 mins (For my break) and present it as a decimal to a whole number, so 11:30 would equal 11.5.

    The rest of the spread sheet is easy its just that formula I am having trouble working out due to an issue i can't explain;

    So I added a couple of extra cells to work out what I needed

    (H) =
    Please Login or Register  to view this content.
    (I) =
    Please Login or Register  to view this content.
    and

    (F) =
    Please Login or Register  to view this content.

    If I enter 06:00 & 18:00 in relevant cells, I get the correct output in (F) '11.5'

    but if I finish just a little later so the times are 06:00 & 18:07 I get an incorrect value '11.38' which is less.

    I understand the issue its less time between the the 2 number when calculated but in reality its more time, but I don't know how to get the correct answer that I need which in this case should be '11.62'

    I also need the calculation to work if I work a night shift so the times are switched, the current formula works if its a round number.

    Can anyone help with this, I have attached what I have created so far to look at if it doesn't make sense.


    Thank you in advance,

    Regards Larkum
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Auto Invoice Help

    HI, you have misplaced ON and OFF columns. See what happens if you have 08:00 - 18:00 (10 hrs-30 mins?) not - your formula returns 13.5

    So simply change Bs with Cs in addresses in formula
    Best Regards,

    Kaper

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Auto Invoice Help

    Try this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Auto Invoice Help

    This in H20 copied down:

    =IF(B20="",0,IF(B20>C20,(24-B20)+C20-I20,C20-B20-I20))

    will correctly calculate, I believe. You will then need to amend F20 to this:

    =HOUR(H20)+MINUTE(H20)/60*1

    and copy down.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    08-08-2016
    Location
    Hampshire, England
    MS-Off Ver
    Mac
    Posts
    2

    Re: Auto Invoice Help

    Thank you all for your help, massive help

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Auto Invoice Help

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Auto invoice update
    By robbo1172 in forum Excel General
    Replies: 11
    Last Post: 04-30-2015, 01:55 AM
  2. auto invoice numbering
    By hasanbirol in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-21-2012, 10:11 AM
  3. [SOLVED] Need Auto Invoicing and pickup details from the main sheet. Creating Auto Invoice.
    By kulins in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2012, 09:22 AM
  4. Auto Populate Invoice
    By xzimbo in forum Access Tables & Databases
    Replies: 5
    Last Post: 06-25-2011, 11:53 AM
  5. Invoice Number + 1, Auto Appear
    By Kohinoor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2009, 03:24 AM
  6. Invoice Number and Saving with Invoice Number (auto)
    By Markville in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2007, 06:28 AM
  7. Auto update Invoice
    By rough_terrain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-21-2005, 07:37 AM

Tags for this Thread

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