+ Reply to Thread
Results 1 to 6 of 6

Help with Macro for Prefilling Pay on Dynamic Dates

  1. #1
    Registered User
    Join Date
    07-01-2019
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    3

    Help with Macro for Prefilling Pay on Dynamic Dates

    Hi All,

    New around here so thanks for your time in advance.

    I am building a complex finance planner/tracker for distribution to a wide audience.

    I have become stuck with a particular part of the planner I am trying to build.

    I have a table that lists every day in the 2019/2020 financial year. I want for the user to first choose the date of their first pay and the interval of pay (e.g. fortnightly, monthly etc) so very simple two points of data input. From there I want the table with the dates to be pre-populated with the pay amount against each relevant date.

    Is this possible and if so could someone please help me with the formula to get it to work?

    Any advice appreciated.

    Cheers,

    Jay

    EDIT: The key here is that different users will select different intervals (from a drop down preferably) and the function still needs to work appropriately.
    Attached Files Attached Files
    Last edited by Jay_85; 07-01-2019 at 03:24 AM.

  2. #2
    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,882

    Re: Help with Formula for Prefilling Pay on Dynamic Dates

    Welcome to the form!

    Yes it's possible, but there isn't a simple plug-and-go formula for it.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Registered User
    Join Date
    07-01-2019
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: Help with Formula for Prefilling Pay on Dynamic Dates

    Many thanks Ali, I have done as you advised. Hopefully that makes life easier.
    Last edited by AliGW; 07-01-2019 at 01:27 AM. Reason: Please don't quote unnecessarily!

  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,882

    Re: Help with Formula for Prefilling Pay on Dynamic Dates

    Thanks. Can I just clarify: you want the amount to appear, but for the entire incomings/outgoings table to be editable? The thing is, you can't have both a formula and manual entry in a cell, so for what you seem to want, for a wide audience, I suspect you are going to need VBA. Please clarify.

  5. #5
    Registered User
    Join Date
    07-01-2019
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    3

    Re: Help with Formula for Prefilling Pay on Dynamic Dates

    You're quite correct, Ali. I would be hoping for a solution that allows a prefill (maybe a macro attached to a button is a better option) as well as the ability to add additional values to cells in the incomings and outgoings column. Not being able to have both is a good point and perhaps macro's/VBA is a better option.

  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,882

    Re: Help with Formula for Prefilling Pay on Dynamic Dates

    I will move this to the VBA section for you.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.

+ 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. Targeting dynamic department capacity between two dynamic dates
    By tpieken333 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2015, 02:46 PM
  2. Prefilling 10 rows in one column based on 1 row from another
    By Farmer Ali in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2015, 02:13 PM
  3. Conditional Weekly Average Formula for Dynamic Dates
    By roychirodeep in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2013, 01:51 AM
  4. [SOLVED] Calling and prefilling a form from another form
    By jlt199 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2012, 04:18 PM
  5. Prefilling cells with IF statment?
    By qvp in forum Excel General
    Replies: 3
    Last Post: 02-24-2012, 05:29 AM
  6. Replies: 0
    Last Post: 02-28-2006, 09:10 PM
  7. Replies: 2
    Last Post: 02-02-2006, 04:10 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