+ Reply to Thread
Results 1 to 52 of 52

Bills reminder - missing & required formula(s)?

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Bills reminder - missing & required formula(s)?

    Hi all,

    I stumbled across this webpage (http://www.get-digital-help.com/2011...nder-in-excel/) which has just what I need minus a few options I'm hoping you can help me with...

    The Bills Reminder template uses data from one worksheet (called Bills!) to display in another (called Reminder!) as a summary of those bills that are due within the 'dates' entered on the Reminder worksheet. See the 2 images of these 2 worksheets.

    Using the downloaded template I am able to recreate the tables (in my existing workbook) just like the template, & edit the formulas to reflect the name of my source worksheet (named 'FutureDebits!').

    - No Bill, Due Date or Amount is displayed, ie " " is displayed only. Is there meant to be anything in COLUMN $A$1:$L$1?
    - In each of the formulas it refers to ROW(A/B/C1), should anything be in ROW(A)?


    The formulas below show the reference:

    Array formula in cell B1:
    =IFERROR(INDEX(Bills!$B$3:$B$15, SMALL(IF((MONTH($C$2)=(MONTH(Bills!$C$3:$C$15)+(COLUMN($A$1:$L$1)-1)*Bills!$E$3:$E$15))*((DAY($C$2)<$C$4)*(DAY(Bills!$C$3:$C$15)>=$D$4)+(DAY($C$2)>=$C$4)*(DAY($C$2)<$D$4)*(DAY(Bills!$C$3:$C$15)>=$C$4)*(DAY(Bills!$C$3:$C$15)<$D$4)+(DAY($C$2)>=$D$4)*(DAY(Bills!$C$3:$C$15)>=$D$4)), ROW(Bills!$E$3:$E$15)-MIN(ROW(Bills!$E$3:$E$15))+1, ""), ROW(A1)), 1), "")

    Array formula in cell C1:
    =IFERROR(DAY(INDEX(Bills!$C$3:$C$15, SMALL(IF((MONTH($C$2)=(MONTH(Bills!$C$3:$C$15)+(COLUMN($A$1:$L$1)-1)*Bills!$E$3:$E$15))*((DAY($C$2)<$C$4)*(DAY(Bills!$C$3:$C$15)>=$D$4)+(DAY($C$2)>=$C$4)*(DAY($C$2)<$D$4)*(DAY(Bills!$C$3:$C$15)>=$C$4)*(DAY(Bills!$C$3:$C$15)<$D$4)+(DAY($C$2)>=$D$4)*(DAY(Bills!$C$3:$C$15)>=$D$4)), ROW(Bills!$E$3:$E$15)-MIN(ROW(Bills!$E$3:$E$15))+1, ""), ROW(B1)), 1)), "")

    Array formula in cell D1:
    =IFERROR(INDEX(Bills!$D$3:$D$15, SMALL(IF((MONTH($C$2)=(MONTH(Bills!$C$3:$C$15)+(COLUMN($A$1:$L$1)-1)*Bills!$E$3:$E$15))*((DAY($C$2)<$C$4)*(DAY(Bills!$C$3:$C$15)>=$D$4)+(DAY($C$2)>=$C$4)*(DAY($C$2)<$D$4)*(DAY(Bills!$C$3:$C$15)>=$C$4)*(DAY(Bills!$C$3:$C$15)<$D$4)+(DAY($C$2)>=$D$4)*(DAY(Bills!$C$3:$C$15)>=$D$4)), ROW(Bills!$E$3:$E$15)-MIN(ROW(Bills!$E$3:$E$15))+1, ""), ROW(C1)), 1), "")


    - Also... Is there a way to change/add to:
    a) the formula to show bills that have a 'Due Date' but do not have a 'Frequency' set (ie. single occurring bill)?
    b) filter the displayed bills on the Bills worksheet... instead of ranging between the 2 'Dates' fields & using todays date in Reminder! worksheet, make the range set by two date fields/cells, called 'Start date' & 'End date'?

    - Are the headings "Array formula in cell B1/C1/D1" meant to be "Array formula in cell B7/C7/D7"?

    Thanks in advance for your awesomeness..
    Attached Images Attached Images
    Last edited by the_trooper47; 09-08-2014 at 11:08 PM.

  2. #2
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    I have found something interesting... ROW($A$1:$L$1) does have data (possibly formulas), as the 'Trace Dependencies' showed the links of this row & COLUMN(A) between the cells ranging from >= B/C/D7. BillsReminder_TraceDependents_A2.JPG , BillsReminder_TraceDependents_B1.JPG

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Bills reminder - missing & required formula(s)?

    HI, welcome to the forum

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    - No Bill, Due Date or Amount is displayed, ie " " is displayed only. Is there meant to be anything in COLUMN $A$1:$L$1?
    NO
    it returns 1-12 = months 1 to 12

    - In each of the formulas it refers to ROW(A/B/C1), should anything be in ROW(A)?
    no,
    its to increment the small (k)


    - Also... Is there a way to change/add to:
    a) the formula to show bills that have a 'Due Date' but do not have a 'Frequency' set (ie. single occurring bill)?
    yes but wouldnt it be easier for you just to put 1 frequency for everything?


    b) filter the displayed bills on the Bills worksheet... instead of ranging between the 2 'Dates' fields & using todays date in Reminder! worksheet, make the range set by two date fields/cells, called 'Start date' & 'End date'?
    not sure what you mean by this


    - Are the headings "Array formula in cell B1/C1/D1" meant to be "Array formula in cell B7/C7/D7"?
    yes believe so
    Last edited by humdingaling; 09-09-2014 at 12:28 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  5. #5
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    I have taken your suggestion FDibbons, attached is the original spreadsheet with my MOCK worksheets.

    thanks for your reply humdingaling..

    in reply to your answers,

    Thanks for your first 2 answers, it makes sense... I had that feeling but couldnt 100% decifer the formula.

    a) The Freq sets the interval between occurrences, '1' would mean the bill would reoccur every month, 2 means every 2months, 3 means every 3 months, etc. So for a single occurrence i tried '0' for the Freq but that showed 12 rows of the same bill on the Reminder! worksheet. Any ideas?

    b) The way that the worksheet is setup atm (referring to Reminder! worksheet), is that it only displays bills within the month of 'todays date'. So today being the 09/09/14, the bills displayed will be those that fall due in September (relative to the Freq set in Bills! worksheet) - some may fall within or outside of the 'days' specified(on Reminder! worksheet).
    - I would like to be able to view bills for more than that month, for example I would prefer to view bills due 3 months in advance. (one way i know i could get around this is changing 'todays date' to view only the next month in advance... say October, but i wanted a better solution.) How can I do this without creating 3 separate 'reminders'?


    - Where it first came unstuck was when i copied the array formulas to my existing workbook in same fashion that the original was set up. All I got was blank cells. Until now, I worked out that the formulas don't work using data from a power query table (see Bill reminder.xlsx). When I entered new lines of test bills they appeared in the Reminder! worksheet. So here's a new question:

    - How do i create a filtered table that is kept up to date/ refreshes itself, & that will work with the reminder formulas?
    (the reason for filtering is to avoid the Reminder! worksheet displaying old/paid bills)
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    you had a REF in your small(K)
    which made your formula spit out blanks
    i looked at the formula closer

    ROW(Bills!$E$3:$E$15)-MIN(ROW(Bills!$E$3:$E$15))+1
    i didnt understand why this was needed the min(row) bit
    so i took it out and the formula continues to work with just
    ROW(FutureDebits!$P$2:$P$204)-1

    the engine of the formula is then just basically the IF Logic
    (MONTH($C$2)=(MONTH(FutureDebits!$O$2:$O$204)+(COLUMN($A$1:$L$1)-1)*FutureDebits!$P$2:$P$204))*((DAY($C$2)<$C$4)*(DAY(FutureDebits!$O$2:$O$204)>=$D$4)+(DAY($C$2)>=$C$4)*(DAY($C$2)<$D$4)*(DAY(FutureDebits!$O$2:$O$204)>=$C$4)*(DAY(FutureDebits!$O$2:$O$204)<$D$4)+(DAY($C$2)>=$D$4)*(DAY(FutureDebits!$O$2:$O$204)>=$D$4))

    this formula is rather difficult to maintain little alone change to fit within dates

    may i suggest a VBA solution instead?
    essentially have your table (with additional field for paid in full)

    create a new table with data in table PLUS every line of frequency (within finite amount of years 1-3?, maybe be rather large if you go over) minus the paid in full items

    from there you would be able to use advanced filter to filter on date?

  7. #7
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    ok thanks, with formulas this long its so easy to miss somethin!

    VBA would be awesome... I just dont know how to write the code. I have played around with VBA in Access, my extent of it is I can read it & alter it.. but not much else atm. Is there a template you could suggest, or put together?

    - In my Debits! worksheet there are expenses like electricity, gas, car rego, etc as well as purchases, some of which come with warranty (3,6,12,24,36 months). If there was a formula that was going to work for expenses in Debits! I was going to adapt it to show (in a new table) when the warranty will expire... a spin-off from the first idea of expenses.

    I like the idea of an additional field for 'paid in full', something like "Finalised" ?... which would filter those bills that are already paid so they will not be displayed (i have now added a new column called 'Status', with values "Recurring" & "Finalised" - using data validation), & I also think limiting the list in the table to 3 years (ie. current year + 2yrs) is a good idea.

    I appreciate your help so far

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    see attached my suggestion of vba

    takes your power query table
    fills in a sheet called list with full list including frequency
    frequency is how often it repeats...like you want it
    1 = 1 month
    2 = 2 month
    ..
    36= 36 months
    etc

    0 will be picked up only once


    from list you can then create new sheet called filtered using advanced filter (filter macro)


    issues i ran into
    the macro for advanced filter uses American date format
    mm-dd-yyyy instead of dd-mm-yyyy
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    if you want to focus on transaction type
    you can manually use advanced filter instead of macros

    maybe shift the data to columns to the side and have your filtered list in the same sheet
    ** you can copy to range for advanced filter in different sheet manually...it has to be done via VBA

  10. #10
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    ok cool! sorry for the delayed reply, its looking good...btw How do I refresh the Filtered! & List! sheets? I ran the macros (called 'Bills' & 'Filter') but there was a run time error 1004. [or is there a better way to refresh the data when I update/edit FutureDebits! sheet?]

    You'll see ive made a few changes to reflect how I envisaged the sheets to look, including more data that I reference from (ie. Data!) & mocked data (in Debits!) - attached.
    - The Warranty Reminder sheet I could use the original but edited/customized formulas, unless u have a better formula or vba idea?
    - In Data! sheet, the column 'Status' if u like can be changed to your .xlsm version which has it named 'Finalised' & uses Y (or N?).
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    where do you want reminder data coming from?
    filtered debits or just debits sheet?

    Re: warranty
    formula should work as it is single line no repeats?

  12. #12
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    maybe Filtered! is not needed now, thinking about it... the only reason Debits! was filtered was to cater for the formula I was originally using (ie. to show only recurring debits), if the vba doesnt need it then it'll be one less thing to do.. So yeah go off the Debits! sheet.

    Re:warranty that's right there's no repeats.
    Last edited by the_trooper47; 09-11-2014 at 02:32 AM.

  13. #13
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    ok filtered wont be needed by the looks of things
    futuredebits will be converted "LIST" like in my example in POST #8

    i may be slow to respond as it is budget re-forecast season

  14. #14
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    OK no worries ...looking fwd to it!

  15. #15
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    warranty section answered

    use formula for it because...only single occurrence
    makes it easier to manage

    i tried to use EDATE instead of date(year,etc etc) but i couldnt get it to work...

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

  16. #16
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    thanks humdingaling... I'll try it out in my worksheet now

  17. #17
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    The code for the 'warranty reminder' worked like a charm! cheers

  18. #18
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    Q:

    What significance does today() have in your reminder? because your just setting the from and to dates anyway?
    Last edited by humdingaling; 09-17-2014 at 03:21 AM. Reason: nevermind about advanced filters...they dont really work well for non america...using autofilter instead

  19. #19
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    Yeah it was only significant in the original formula, its just there now as a reference, you can omit/ignore it if you like

  20. #20
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    ok two step process

    Run bills to extract data from Debits sheet to Expandedlist (change as required)

    This will setup expandedlist with
    Debits data "expanded" to have recurring transactions repeat and excluding items which are "finalised"

    on expanded list there is a command button for refresh
    if no dates are entered msgbox appears stating so and nothing happens
    Attached Files Attached Files

  21. #21
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    changed the autofilter code because dates in VBA are finicky


    will always try to use US format which is mm-dd-yyyy
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    OK, sweet... I ran the macro 'Bills' & the expandedlist appeared, entered dates & pressed refresh. That worked well.. only thing I can see wrong is ... for example the birthday is repeated monthly when the repeat interval/frequency is set to 12 (months), same for Sydney water which is set for every 3 months, there may be some others.

    p.s. Thanks, & i'm about to head home so I wont be able to reply for about an hr.

  23. #23
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    i think the term frequency is being misinterpreted
    interval and frequency they are two distinctly different things
    frequency = how many times you want to repeat
    interval (which i dont have any coding for) is how long between repeats

    can be done but the logic of the loop needs to be rebuilt

  24. #24
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    I can see how that can be mistaken... sorry for the confusion! Looks like I used the term 'frequency' from the original bill reminder spreadsheet. I hope the rebuild doesn't cause u too much of a headache... i appreciate your help on this one

    * Just a thought... would/could you still use the 'Frequency' field, & add a new field/column called 'Interval' as a work-around? This i suppose (when multiplying the Frequency by the Intervals) would limit how many occurrences appear in the Expandedlist! sheet?

  25. #25
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    yes you would need the interval field would need to be added if you wish for it to occur
    otherwise it would be what it has now where the frequency is the interval limit

    however....i do see your expanded list growing substantially if for instance you have something that occurs monthly and you have it set to repeat for next 10 years
    10 x 12 = 120 lines for single item

    in this regard...today() may have relevant again....to "purge" anything less than today

    have a think about it....i will be quite again for awhile.....next iteration of budget has come around again

  26. #26
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    Ok, the Expanded List! sheet shows only those recurring bills (going off the 'due date' in Debits!) that fall between the 'start' & 'end' dates (in Expanded List!), the list then would show like your example above (possible past & all future) occurrences for those bills, there could be multiples that reoccur every month for several years.
    So the list would definitely be quite long... can the Expanded List! be set to purge any recurring bills from a field/cell called "PurgeBefore" (& possibly another called "PurgeAfter")? <--- acting as a filter. (with the default value of "PurgeBefore" being "today()-30" days - the reason for this default value is to still show in the list any recurrences (in the last 30 days) that still need attention, otherwise they could be forgotten/lost)

  27. #27
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    didn't work on purging yet, may not be required? if your macro becomes too long to update (as the filter works without having to update data every single time)

    added interval column and changed logic of the loop to calculate intervals
    ie birthday 12 months interval = frequency x interval
    in this example 12 x 12
    meaning 12 times appearing every 12 months

    council however is 12 x 3
    12 frequency
    3 months interval
    12 lines with 3 months in between
    etc
    play around with it to see if it all makes sense

    added filter button and clear button which works on the due date Start and end on expandedlist sheet
    Attached Files Attached Files

  28. #28
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    things to be mindful of
    must have start date in order to filter...cannot just put end

    **added subtotal in expandedlist
    Attached Files Attached Files

  29. #29
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    Lookin' good humdingaling! Nice touch with the SubTotal. I quickly added a 'Recalc' button to activate the 'Bills' macro so it can run while in the ExpandedList! sheet.... I'll throw some more data at it & will let u know how I go

  30. #30
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    I've thrown as many ideas at it as I could & it has done well! I realised that the 'Status' "Finalised" is case sensitive, but thats ok as the cells in the column will be a list (derived from data validation) so there shouldn't be any case issues

    - A few tweaking questions...
    a) is there a way in VBA to include/exclude certain columns? Can the code {Range(Cells(1, 1), Cells(1, 18))} be modified to suit or does it have to be a range? (eg. I want to add 'Notes' & 'Payment Type', & exclude columns like Qty, Unit Price, Freight, & a couple others)
    b) With a 'Recalc' button on ExpandedList sheet, when click it runs the Bills macro, when it is finished the active sheet becomes Debits. Can it be made so the active sheet remains/is ExpandedList sheet?
    c) I dont know if this is possible... as the xlsm is opened can the ExpandedList sheet be updated automatically by running the Bills macro?, & by default show the ExpandedList sheet (like above)?
    (the start & end dates would be blank, could i use something like ws1.Range("B1").FormulaR1C1 = "=Today()-30" & ws1.Range("B2").FormulaR1C1 = "=Today()+90" ?

  31. #31
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    can make "finalised" not case sensitive but i think you should be controlling it via DV anyway in case spelling is wrong

    a) is there a way in VBA to include/exclude certain columns? Can the code {Range(Cells(1, 1), Cells(1, 18))} be modified to suit or does it have to be a range? (eg. I want to add 'Notes' & 'Payment Type', & exclude columns like Qty, Unit Price, Freight, & a couple others)
    yes, probably several ways of doing it
    come back with exactly what you want and ill see what i can conjure up

    b) With a 'Recalc' button on ExpandedList sheet, when click it runs the Bills macro, when it is finished the active sheet becomes Debits. Can it be made so the active sheet remains/is ExpandedList sheet?

    small fix, just put a worksheet.select right at bottom of code

    c) I dont know if this is possible... as the xlsm is opened can the ExpandedList sheet be updated automatically by running the Bills macro?, & by default show the ExpandedList sheet (like above)?
    (the start & end dates would be blank, could i use something like ws1.Range("B1").FormulaR1C1 = "=Today()-30" & ws1.Range("B2").FormulaR1C1 = "=Today()+90" ?
    yes using workbook_open> call macro and yes ...add extra formula like you have noted
    do you want the set dates all the time or just when it opens?

    come back with part a and post your new file with the recalc in there
    ill do the next revision on the 3 tweaks
    may be a little time between though....next budget file is due....

  32. #32
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    Just quickly b4 i head home... revised MOCK attached.

    a) See ExpandedList (MOCK)! sheet
    b) i dont know how to do that bit
    c) i dont know how to do that bit too, Yep... set the dates 'all the time'. Giving the option to alter it at any time.

    Cheers

    ps. With different 'Transaction Types' I can simply use conditional formatting to make them stand out & then filter them later in ExpandedList sheet to make the Subtotal amount correct... or unless its possible to SUMIFS the different 'Transaction Types' separately?
    Attached Files Attached Files

  33. #33
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    so the minor changes have been added

    workbook open will run bills and filter macro
    i will put a 'infront on future updates as i really dont want it to run everytime i open the file when fixing code


    added two dates to bills macro so it will appear every time you update by default

    after bills is run it will return back to expandedlist sheet

    inserted application screen updating so the screen doesn't "flicker" as much
    Attached Files Attached Files

  34. #34
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    now onto your other issues

    your mock basically takes out
    Qty UnitPrice Freight Discount
    however in your debits sheet...total is a formula still
    im guessing you want to paste value instead of formula?


    sumif wouldnt work...maybe sumifs could work but it wouldnt update based on filter...it would update based on date
    so if you change filter without changing dates it wont update

    added sumproduct by subtotal formula which gets around that problem
    Attached Files Attached Files
    Last edited by humdingaling; 09-25-2014 at 11:55 PM.

  35. #35
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    normally you can bring across everything and hide or bring across in segments
    but you want it in different order to original data?

    TransactionType Category DOP-EntryDate POP POP-Location Recipient Sub-Recipient Sub-RecipientInfo TotalPrice Payment Type Notes Odometer (Kms Due) DueDate

    to confirm are you really sure these are the columns you want in this particular order
    if it a lot of work re-coding if you want changes afterwards

  36. #36
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    #33 Thanks.. I noticed some flickering also

    #34 Paste the '$x.xx value' plz (ie. not the formula)

    #35 My aim was to make it look simple (if i could), so if I needed more info I could just go to the debits! sheet & take a closer look... those columns you listed are definitely what I need... I can appreciate how long it might take to recode, can we use variables? just a thought, instead of hard-coding can the column # be listed/referenced from within say the Data! sheet?

    For example: could the code 'Range(Cells(1, 2), Cells(1, 15))' refer to a range like Data!(D2:D20) ? or a single cell or cells containing the 'code' or column/row No's? (see attached)
    Attached Files Attached Files

  37. #37
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    hmmm yes supposedly you can use variables....but what this will turn out to be
    would be instead of copying ranges you can copying single cells
    many many single cells
    i worry about performance

    order is my biggest concern at the moment
    if your order is the same as your debits sheet then i can possible use hiding and copy visible cells only approach

  38. #38
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    re:performance i see your point, who wants to be waiting for it to calculate.

    I checked/compared Debits! to ExpandedList!, the order of columns are the same (ie. they are in ascending order {column A to Z}) except for 'DueDate' which is on the end in ExpandedList! sheet, it doesn't have to be. If it solves the problem I reckon place/move/insert it after Total Price (column N), then use hide/visible approach?

    ExpandedList! sheet:

    TransType B
    Category C
    Entry date D
    POP E
    POP Loc F
    Recipient G
    Sub-Recip H
    Sub-RecInfo I
    TotalPrice N
    PaymType R
    Notes U
    Odomo. W

    DueDate O

    * after having a closer look at the ExpandedList! sheet, I could be wrong but it looks like the code needs to know where the DueDate & TotalPrice columns are to filter & sum, so perhaps using a variable probably wouldn't have worked anyway.
    Last edited by the_trooper47; 09-26-2014 at 02:36 AM. Reason: after having a closer look...

  39. #39
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    so took your suggestion...sort of
    used data Column D as what columns to exclude

    Please Login or Register  to view this content.
    essentially takes those columns and hides them

    problem i foresee with this variable column is.....the code for due date is fixed....i guess can put logic to look up this...maybe

    i put a table in there...make it look nicer
    havent put the conditional format for credit yet...shouldnt be hard to do later
    Attached Files Attached Files
    Last edited by humdingaling; 09-26-2014 at 03:08 AM. Reason: subtotal was incorrectly calculation.....revised file fixed

  40. #40
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    Awesome making that part of the ExpandedList customizable makes it that much more flexible!

    May have to remove 'subtotal'? unless s'thin needs changing, i noticed that the sum seems too large (eg. $925K) the formula seems correct tho

  41. #41
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    the problem with having variable headers if you would need the logic in the body of the macro to change the formulas for subtotal

    alternatively you can make it copy every applicable row and clean it up unwanted columns afterwards

  42. #42
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    which method would u suggest is better/cleaner/more efficient?

    & re:fixed Due Date - do u think there'd be any issues with the variable column D2? or just see how it goes?

  43. #43
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    copying every row and cleaning up unwanted columns would be easier and probably cleaner...
    will circumvent anything breaking the due date logic
    would also probably make the subtotal formula's easier to manage

    i am unsure if it would be more efficient though
    i have no idea on how big your eventual file will be

  44. #44
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    OK that'd be good!

    I'll see how the spreadsheet goes, if we end up goin nuts with it I may have to start clean every 3 to 5yrs... lol

    I'm entering bills etc in to Debits! & over the next week... so far its going well!
    Thank you immensly humdingaling! pure awesomeness! It's lookin pretty much complete now... what do u think?

    Oh.. If you've got time can you please modify the macro to 'copy & clean up' the unwanted columns?

    ...I reckon I should be able to do the conditional formatting for debits etc in ExpandedList!

  45. #45
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    Please Login or Register  to view this content.
    up to the end of the For loop....everything works fine
    then after that...it kind of goes pear shape if you touch the headers in Data sheet
    also bear in mind the filter macro runs off what column Due date is in
    along with all the formulas etc
    Attached Files Attached Files
    Last edited by humdingaling; 10-02-2014 at 04:15 AM.

  46. #46
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    Please Login or Register  to view this content.
    just call this macro at end of bills
    it will highlight credits red
    Attached Files Attached Files

  47. #47
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    What a busy week... sorry for not replying earlier!

    Re post #45 - I've taken the plunge & taken a bite out that proverbial pear.... there was a need to make a change to column headers & their position... all is good though - no errors! I had cross-referenced & made the needed adjustments to the code to reflect the differences in Debits! & Data! sheets. just wondering how to make the "credits" & "debits" & "subtotal" formulas dynamic like you have done in previous versions?

    ps. You'll see in the attached revised version that I have used the built in Macro Recorder to determine the vb code to insert...only problem is the rows referenced in the formula are static & dont cater for a growing list
    Attached Files Attached Files

  48. #48
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    Please Login or Register  to view this content.
    i combined 3 into one as i am unsure why you would need to do each one individually
    however...the issue remains if your Columns side your formula may not work
    Attached Files Attached Files

  49. #49
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    Sorry I musnt have been clear enuf, what i was wanting was each code/formula to insert in to the macro called 'Bills' to suit the updated version - for the subtotal, credit & debit located on the ExpandedList! sheet (I need this now because columns have been moved around, messing up your previously coded references, see example below), & if possible to find out how to write it like you have to be dynamic (ie. so the formula can calculate the whole range of displayed rows) - for my own future reference

    for example:

    previous code for Debit:
    "=SUMPRODUCT(--(R5C1:R" & k & "C1=R[-1]C[0]),SUBTOTAL(9,OFFSET(R5C9:R" & k & "C9,ROW(R5C9:R" & k & "C9)-MIN(ROW(R5C9:R" & k & "C9)),0,1)))"

    - oh, i was doing the Recorded Macros thru excel individually for clarity for myself (to recognise which formula was which).
    Last edited by the_trooper47; 10-07-2014 at 11:08 PM. Reason: more info

  50. #50
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    Please Login or Register  to view this content.
    This code now looks at where TOTAL PRICE header is and adjusts the formula accordingly

    likewise i have changed the filter macro to run and look for DUE DATE header

    of course...if either of these headers are omitted the whole thing will not work properly...however considering these are probably the two month important fields in the whole sheet...i doubt they will be omitted
    Attached Files Attached Files

  51. #51
    Registered User
    Join Date
    09-08-2014
    Location
    Sydney, Australia
    MS-Off Ver
    MS Office suite 2010. Access,excel, word,publisher
    Posts
    24

    Re: Bills reminder - missing & required formula(s)?

    Thank you humdingaling... you are a legend! The new code worked like a charm! .... You've inspired me to pick up where I left off & continue teaching myself vba!

    Man... I owe you a case of beer or somethin' for your efforts!!

  52. #52
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Bills reminder - missing & required formula(s)?

    phew~
    that was a long one i must admit
    i seldom make it page 4 of a thread and i certainly learnt a few new tricks or two

    great that i got you back on the wagon on teaching yourself VBA.....that's how i learnt most of what i know
    you can see it in my code...its mainly hack and slash but it does the job most of the time

    these forums were a great enabler in order for me to learn

    once you understand the basic fundamentals....the rest is mainly syntax and maths problems solving (and somewhat knowing limitations of excel itself) and there are many resources online or otherwise to help with that

+ 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. Replies: 3
    Last Post: 09-21-2013, 10:10 AM
  2. Replies: 4
    Last Post: 05-01-2013, 04:14 AM
  3. Bi-weekly budget - formula for entering bills by due date
    By Hstclair05 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 02-01-2013, 06:39 PM
  4. Replies: 1
    Last Post: 12-22-2011, 07:24 PM
  5. Replies: 14
    Last Post: 03-25-2011, 08:31 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