+ Reply to Thread
Results 1 to 3 of 3

Can a formula be moved down automatically

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    Orlando, Florida
    MS-Off Ver
    2010
    Posts
    1

    Can a formula be moved down automatically

    Hello All,

    I am working on a project for my boss who knows I love to solve impossible Excel problems.

    Here are the basics -

    Tab A lists any F&B Purchases we make, Tab B Lists any transfers to other departments that pay for the food

    What we want to do is whenever a entry is made in the Transfer Tab - an automatic entry is made in the Purchase tab to show a Credit.

    I have created an IF formula that does that - here is the problem though.

    New entries are constantly being made on Tab A so I can't pin down an exact cell to put the formula in. Is there a way to move a formula down to the next available blank line so that it picks up the entry from Tab B? And then once an entry is made in the B Tab, the formula in the A tab would change to read information inputted on the next line down in the B Tab.

    I thought about creating a Macro but I'm not quite sure where to start with it.
    Last edited by 6StringJazzer; 01-05-2019 at 11:28 AM. Reason: fixed typo in title (me->be)

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formula or Macro?

    If you format your data as a table then it will resize to inlcude any new rows of data added to the bottom. Any formulas in the table will automatically be copied to the new rows.

    Dynamic ranges are another thing you could look at.

    If you need more detailed help then a sample workbook, (not a picture of one) with any confidential info removed / fictionalised, showing before and after would be of use.

    To attach a sample workbook, click the Go Advanced button (bottom right), then scroll down and look for the Manage attachments link.

    Also, please edit your title to something more meaningful, that briefly describes what you want the formula / macro to do. This is a requirement of the rules that you read and agreed to when you joined. Hang on... You did read them, didn't you?

  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
    53,048

    Re: Formula or Macro?

    welcome to the forum

    Sounds to me like you need 2 columns in A - 1 for entries and 1 for transfers?

    For future reference, please take a moment to read the forum rules and use thread titles that are descriptive of your problem - not what you think the answer might be. (think google search terms?).

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    I have changed your title for you - this time
    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

+ 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. Macro to paste formula in colK after a macro executed
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-20-2017, 08:39 PM
  2. Macro to paste formula to selection that replaces a formula with a named range.
    By Evan69 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-26-2017, 05:46 AM
  3. Problem with recording a macro with long formula - works in Excel but not in macro
    By tonybeo2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2015, 11:25 AM
  4. VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2013, 02:57 PM
  5. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  6. Formula expected end of statement error, typing formula into cell as part of VBA macro
    By DavidGMullins@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2006, 03:05 PM

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