+ Reply to Thread
Results 1 to 7 of 7

Repeat a formula after every nth column

  1. #1
    Registered User
    Join Date
    12-20-2012
    Location
    houston
    MS-Off Ver
    Excel 2010
    Posts
    12

    Repeat a formula after every nth column

    Hello All,

    I am trying to create a formula by which I can calculate sales of a product after every n months.

    For example

    Inputs:
    Number of Units = 10
    Price per unit = 50
    Frequency of sale = every 6 months
    First sale in 2nd month.

    Output:
    Month 2 = 500
    Month 8 = 500

    Example is attached for refrence.

    Thank you for the help.
    Attached Files Attached Files

  2. #2
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Repeat a formula after every nth column

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by BMV; 01-18-2020 at 05:20 PM.

  3. #3
    Registered User
    Join Date
    12-01-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    21

    Re: Repeat a formula after every nth column

    See attached. The general logic is:

    Please Login or Register  to view this content.
    EDIT: Bit cleaner with the MOD function from the example above. Also attached.
    Attached Files Attached Files
    Last edited by alexdi; 01-18-2020 at 05:42 PM.

  4. #4
    Registered User
    Join Date
    12-20-2012
    Location
    houston
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Repeat a formula after every nth column

    Thank you for posting the solution. All three formulas work except if the Frequency < First sale month.

    For example if the Frequency is every 2 months and first sale is month 5, the first calculation does not show in the correct month.

    Thanks for the help.

  5. #5
    Registered User
    Join Date
    12-01-2019
    Location
    USA
    MS-Off Ver
    365
    Posts
    21

    Re: Repeat a formula after every nth column

    Added a clause to check if it's after the first sale month.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-20-2012
    Location
    houston
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Repeat a formula after every nth column

    Thank you alexdi, Calc3 works perfectly. Thanks for the quick response.

  7. #7
    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,371

    Re: Repeat a formula after every nth column

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    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.

+ 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. [SOLVED] Formula to repeat column headings to a new column...
    By LesleyB ATL in forum Excel General
    Replies: 5
    Last Post: 11-26-2019, 10:27 AM
  2. [SOLVED] Formula to count how many times does a 0 repeat in a column of 1 and 0
    By MrW00dy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-19-2016, 06:53 AM
  3. Repeat formula in column H until the last row with data in column G
    By matteobsuetti in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2015, 08:36 AM
  4. [SOLVED] Repeat Column of Data Down a Row Using a Formula
    By pookyman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-10-2014, 11:56 AM
  5. [SOLVED] VBA to detect next empty cell in column and add formula, then repeat for next column, ...
    By Marijke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2013, 07:28 AM
  6. Formula to count how many numbers repeat in a column.
    By simonheller in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2010, 06:43 PM
  7. Replies: 2
    Last Post: 07-10-2006, 03:29 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