+ Reply to Thread
Results 1 to 6 of 6

Copy a formula x times sideways based on value in a cell

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    florida
    MS-Off Ver
    excel 2007
    Posts
    13

    Copy a formula x times sideways based on value in a cell

    Hi guys, im not an expert on Excel and i been breaking my head over this , i have the attached workbook, where i have an amount and a formula dividing this amount into payments based on the number in column C ( the original workbook has same but in different Cells but concept is the same ).

    Is there a way to copy and paste this formula sideways automatically based in the same number on cell C without doing manually.

    Lets say if cell C is 10 payments then copy the formula 10 times starting in column # in the same row but also the formula use this number to divide the amount of the payments.

    I dont know if i explained it correctly. Thanks for the help in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy a formula x times sideways based on value in a cell

    Put this formula in E3, then copy down and across the table as far as you want. It will only show the payments needed, otherwise blank.

    =IF($C3>=COLUMN(A$1), $A3/$C3, "")

    Do not edit the part in red, that translates to "payment #1". That part indicates to the formula which payment should appear in that cell.
    Last edited by JBeaucaire; 03-08-2013 at 01:53 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Copy a formula x times sideways based on value in a cell

    Payments_Harribone.xlsx

    See attached file.

    There is a new column showing what a monthly payment is and then there are formulas for each month which will auto populate the cells as required. Note the numbers above the months are to determine if that month has a payment required (if you need more than 12 months contiue across with jan -13 feb - 14 etc).
    Say thanks, click *

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Copy a formula x times sideways based on value in a cell

    Hi fokeiro

    And also you could use, in E3 copy across and down:
    =IF(SUM($D3:D3)=$A3,"",$A3/$C3)
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  5. #5
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Copy a formula x times sideways based on value in a cell

    Always good to see several solutions to a problem, shows that we all think differently!

    Don't forget to mark the thread as SOLVED if these solutions do the job.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy a formula x times sideways based on value in a cell

    Thanks for the feedback, Fokeiro. If that takes care of your original query, please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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