+ Reply to Thread
Results 1 to 28 of 28

Calculate invoice due date

  1. #1
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Calculate invoice due date

    Hi Guys!

    Can someone help me to create a formula for assigning a proper due date to the invoices i am creating?!

    I need the invoice to calculate 15 calendar days from the invoice date (including weekends ie WEEKDAYS function cannot be used here) and if the date hits a Saturday then the due date should be the previous day and if Sunday then the next day. So that the due date will never hit the weekend.

    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hi Studio52,

    Assuming you have invoice date in Cell A1 then try
    Formula: copy to clipboard
    Please Login or Register  to view this content.




    I hope it solve your purpose.
    Last edited by adhawan06; 04-16-2015 at 05:54 AM.
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  3. #3
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Hi Any!

    Unfortunately it doesn't work. I have am getting a false message and i cant fin where is the issue.

    Attached my file.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hi Studio52,

    Sorry I forget to add in last else condition. I also correct above in my last post.

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

  5. #5
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Unfortunately this didnt help either.

    Please see attached. The weekends are nor avoided.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hi there - the file shared by you is working perfectly fine here. Could you please check once again? It seems that you may have disabled the automatic caculation option and the moment you go to B2 -->F2-->Enter, you will have the non weekend date in front of you. Could you please check once again?
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    This is very strange as i can see that on your workbook the formula works perfectly, but when i copy the formula and implemented it into the invoice it doesn't work.

    Do you know where could be the issue? I checked and the automatic calculation is on.

  8. #8
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    hmmm....Whats your system date format? is it "mm/dd/yy" or "dd/mm/yy". Also can you try-->Put the formula in the cell-->Enter-->Go back to the same cell and just press F2-->Enter See if it works

  9. #9
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    its dd/mm/yy. My regional settings are Russian. I have tried your suggestion but unfortunately no success

  10. #10
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    It should not impact actually whatever setting you have .

    Is it giving any error? Can you do one thing close all workbooks and then open any file and then try again the given function?


    Cheers!!!

  11. #11
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Tried it now. No error. I am trying to set the invoice date to 17th April and i get the due date shown as 02.05.2015.
    Interesting why your workbook is fine but when i copy the formula to a new workbook it doesnt work.

    I have attached the original invoice, maybe you will find the difference.
    Attached Files Attached Files

  12. #12
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hi There - It will never match because you have changed my formula from
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    to

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


    The formula was not matching with the exact word as you have changed "dddd" to "d" which was returning to 2 instead Saturday which was exactly to be matched the words i have mentioned after = "Saturday" / ="Sunday". Hope it will clear all your doubt.

    Use my original formula i have given or refer to the attached sheet.

    Hope now there will not be any problem.

    Cheers!!!

    Anil Dhawan
    Attached Files Attached Files
    Last edited by adhawan06; 04-16-2015 at 08:51 AM.

  13. #13
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    This was me trying to fix the issue but changing it back to dddd doesn't help. You can try on the workbook i sent that it doesn't work.
    The formula is great that you made but there is some difference in the setting im afraid.

  14. #14
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hi- I did't made any changes in the attachment earlier have updated the just now. Please refer to the attachment. (I thought you will try at your end by checking it )

  15. #15
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Doesnt work. When i change the date to 18th it gives me the due date 03rd may.

  16. #16
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hi There - I don't know which cell are you referring to. When I m changing 17 to 18th in the same file, it gives me 4th May Due date.

    I also changed in the same book also for your reference, in the second sheet (Sheet3) i have also filled out some Invoice date and against that i have putted my formula for your reference (See Carefully and refer to Sheet 3 Column C & D)

    Let me know if still you have any doubt.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Dear Anil,

    I have taken now your file sheet 3 and copy pasted your formula to another cell and you can see that i am getting a another date.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    And when i go on the cell c2 and press F2 and hit enter the date changes.

  19. #19
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hmmm..Issue seems to be there...because the same formula is giving me the correct result and when you using the same it is not giving you exact result.

    Last thing, can you try replacing ( , ) with ( ; ) everywhere in the formula?

    waiting for your revert

    Anil

  20. #20
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Quote Originally Posted by studio52 View Post
    And when i go on the cell c2 and press F2 and hit enter the date changes.
    Same is happening here...When i try to hit enter after going into editing mode in Cell E2, it gives expected dates which is there in column c

  21. #21
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Tried that also and it didnt help.

  22. #22
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Quote Originally Posted by studio52 View Post
    Tried that also and it didnt help.
    Hope you didn't missed any comma
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  23. #23
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Copy paste = didn't work.

  24. #24
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hmmm...Let me see something how can i help you....Hmm tell Me what excel and OS are you using? Have you faced any such instance in past also?

    I am right now leaving but you can leave message here may be after an hour i will reply your query...But till then i will try to look for some other alternative...

  25. #25
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    I am using office 2013 on windows 7.
    My regional settings are as per attached screenshots.region1.JPGregion2.JPGregion3.JPG

  26. #26
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Hi there,

    Sorry for late reply. I just saw your response, and it was regional setting problem. I have corrected the file and attached for your reference.

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


    I have replaced the text function with weekday which will be easy to read to formula.

    Hope this time you will get your answer without any doubt.

    Cheers!!!

    Anil Dhawan
    Attached Files Attached Files

  27. #27
    Registered User
    Join Date
    02-09-2010
    Location
    Tallinn, Estonia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    42

    Re: Calculate invoice due date

    Dear Anil,

    Thanks so much for your help! The formula works perfectly now!

  28. #28
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Calculate invoice due date

    Glad It Worked finally .


    Please take few seconds marking this thread as SOLVED and *Add Reputation If I helped you.



    Cheers!!!

    Anil Dhawan

+ 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. Calculate number of days between invoice date and today's date
    By JHerrick in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-30-2020, 03:53 PM
  2. PivotTable to Calculate Invoice Margin - HELP
    By Alienontherun in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2015, 12:48 AM
  3. [SOLVED] Save invoice to folder by month and then save file by date and invoice
    By Val777 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2013, 02:57 AM
  4. Replies: 4
    Last Post: 11-04-2012, 12:43 PM
  5. calculate months in which invoice will be generated
    By Eee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-03-2007, 10:45 AM

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