+ Reply to Thread
Results 1 to 6 of 6

Self-adding formula

  1. #1
    Registered User
    Join Date
    02-16-2012
    Location
    London, United Kingdom
    MS-Off Ver
    Excel365 Version 2210
    Posts
    46

    Self-adding formula

    Hello,

    I wonder whether there is a way excel would add a formula to a new column when the new value is added to the adjacent column?

    For example:

    Columns B:4 and C:4 are now empty. However, when I add value to these columns, a formula from D3 would be automatically added to D4. I know, I can drag formula down, but sometimes I have 100 values and sometimes 50 000 values.

    I attach a spreadsheet for the above.

    Thank you advance for your assistance on this.

    Kind regards,

    Jan
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,492

    Re: Self-adding formula

    You have two options that I can think of: one is to convert the table into a structured Excel table which will force formulae to copy down when you add rows, the second is VBA.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  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: Self-adding formula

    Another option would be to already have the formula there, but to have it 1st test for data (return "" if no data), then run the calc if data is there.

    Based on your formula, something like this...
    =IF(B3="","",IF(ABS(C3)>ABS(B3),"FAILS","PASS"))
    copied down as needed
    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
    Registered User
    Join Date
    02-16-2012
    Location
    London, United Kingdom
    MS-Off Ver
    Excel365 Version 2210
    Posts
    46

    Re: Self-adding formula

    Thank you for the responses. Much appreciated.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,492

    Re: Self-adding formula

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  6. #6
    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: Self-adding formula

    Happy to help, thanks for the feedback

+ 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. Update of iferror lookup formula by adding max formula
    By Jasminia in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-20-2022, 06:58 AM
  2. Replies: 3
    Last Post: 01-27-2020, 03:50 PM
  3. Replies: 4
    Last Post: 08-06-2018, 07:54 AM
  4. [SOLVED] Formula for adding a percentage from one cell and adding the total of 2 others
    By Kandra in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 06:48 AM
  5. adding Indirect formula to my current sum if array formula
    By Eastbay2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-13-2013, 09:41 AM
  6. Replies: 1
    Last Post: 02-24-2013, 06:27 PM
  7. Replies: 8
    Last Post: 03-21-2012, 12:04 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