+ Reply to Thread
Results 1 to 14 of 14

Automatic invoice charges based on date selection

  1. #1
    Registered User
    Join Date
    11-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    27

    Automatic invoice charges based on date selection

    Hi guys,

    I'm having a pig of a time trying to do the above, so I thought I'd bounce my issue off you and ask for some feedback.

    At the moment I have an invoice worksheet, and with it, a secondary sheet listing periodic charges (name, charge, month the charge becomes active (mmm format)).

    I want to make the invoice self-completing based on date selected.

    Any suggestions/advice on how you would go about the above? I'm sure my current formulae are kinda overcomplicating the issue, and that there is a much simpler, more elegant way of doing things (not to mention one that works)!

    Thanks.
    Last edited by Kym-B; 11-14-2013 at 11:28 AM. Reason: Solved!

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Automatic invoice charges based on date selection

    Can you post a workbook that illustrates the problem and the expected result?
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    11-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    27

    Re: Automatic invoice charges based on date selection

    Sure!

    https://www.dropbox.com/s/8tcrd3j24j...0formula2.xlsx

    Selecting a date on the MainInv sheet should cascaded any charges relevant to that date (all listed in PeriodicSvcs sheet) into the yellow cels.

    Please excuse scruffiness; it's very much a WIP!

    And thanks!

  4. #4
    Registered User
    Join Date
    11-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    27

    Re: Automatic invoice charges based on date selection

    It works beautifully when selecting September, but fails on any other month lol

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Automatic invoice charges based on date selection

    For some reason I just couldn't get the text value for the months to work at all. I then changed the month to the number of the month and used a different formula to retrieve the data.

  6. #6
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Automatic invoice charges based on date selection

    Have you tested using capital letters in your formula i.e.

    Please Login or Register  to view this content.
    Alf
    Last edited by Alf; 11-12-2013 at 05:50 PM. Reason: changing delimeter from Swedish to US format

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Automatic invoice charges based on date selection

    Alf, thank you. I tried your suggestion (I had tried that but I just couldn't get the months to agree - must have been something in my workbook as I had several workbooks open at the time) This time I only had the one workbook open and used your suggestion and it works just fine.

    Amendment included:

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Automatic invoice charges based on date selection

    I should have known that something was amiss when I was entering ranges, I kept jumping into Windows Explorer or other workbooks.

  9. #9
    Registered User
    Join Date
    11-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    27

    Re: Automatic invoice charges based on date selection

    Dear NewDoverman and Alf,

    I've been out of the office on-site for the last couple of days and have come back to find not a gentle nudge in the direction I should be taking my formula, some advice, or even an explanation of how to do what I was so desperately failing in, but a completely rewritten formula with everything working like a charm.

    I sincerely appreciate all your help and I'm quite bowled over by it. I really didn't expect that. It's also quite educational for me as there are some functions in there I've never touched before, so it is interesting to see the mechanics of the formula and how these functions work.

    You've made this girl very happy (as well as saved her remaining braincells)!

    Thanks guys x

  10. #10
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Automatic invoice charges based on date selection

    Thanks for feed back!

    Alf

  11. #11
    Registered User
    Join Date
    11-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    27

    Re: Automatic invoice charges based on date selection

    Hi guys, would anyone be able to look at the attached workbook for me and tell me why my formula on A23:A30 isn't working?

    It's very curious as it's exactly the same formula as Alf & Newdoverman helped me with above, just on a different workbook. Everything is the same as before as far as I can see - not quite sure why it works on one workbook but not on another?

    Thanks!

    https://www.dropbox.com/s/me751u7mq2...20Invoice.xlsx

    I've done something stupid, and I'm not sure exactly what!
    Last edited by Kym-B; 11-21-2013 at 12:27 PM.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Automatic invoice charges based on date selection

    There is a mistake in the formula on the Dates worksheet in A20. The existing formula is referring to a non date cell.

    The formula should be:

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


    There is no way to test the rest of the workbook as it is linked to data not available.

    I hope this solves your problem.
    Last edited by newdoverman; 11-21-2013 at 12:35 PM.

  13. #13
    Registered User
    Join Date
    11-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    27

    Re: Automatic invoice charges based on date selection

    What an idiot I am.

    Well spotted - can't believe I overlooked that. I thought it may be something simple, didn't consider that, though!

    And thanks!!

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Automatic invoice charges based on date selection

    You're welcome.

    The small things are easily missed.

+ 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] Automatic date, but after a dropdown selection is made, not before
    By FlyFisherman in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-18-2013, 08:43 PM
  2. Automatic selection of Date from dropdown list
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2013, 08:57 AM
  3. Replies: 4
    Last Post: 11-04-2012, 12:43 PM
  4. Automatic date selection in Excel 2007, VBA?
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2011, 09:06 PM
  5. summing charges based on date range
    By keith0628 in forum Excel General
    Replies: 1
    Last Post: 07-20-2007, 11:08 PM

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