+ Reply to Thread
Results 1 to 6 of 6

VBA to fill table with results of all variable combinations in separate calculation module

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    5

    VBA to fill table with results of all variable combinations in separate calculation module

    Hi,

    I tried to search the forum for possible solutions but my search returns too many threads. I'm looking for help to create a macro which would calculate all the results of combinations of values from two columns in a calculation module and fill the table with the results. See attached workbook, which is a simplified version to make it easier to understand.

    In range B6:C8 I have a calculation module, which calculates the charge (C8) based on the selected month (C6) and rate plan (C7). I use vlookup formula to determine the number of days and multiply by the daily rate based on the plan.

    In colums K and L, I have listed all possible combinations of Months and Rate Plans. I'd like to find out how I can run all these combinations in the calculation module and complete column M with the result of each combination.

    Many thanks for your assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: VBA to fill table with results of all variable combinations in separate calculation mo

    Welcome to the board!

    Am I missing something? Isn't it the same formula as in C8, just adjusted for L-M?

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: VBA to fill table with results of all variable combinations in separate calculation mo

    Thank you for reaching out.

    As stated, this is a simplified version. In reality I have much more variables in the calculation module (and some of them are linked to other sheets) and over 3000 combinations. I can't solve this with a formula and try to find a way to calculate the outcome of every combination and store it as a value in column M. If somebody could help me with this, then I could apply the technique to my spreadsheet.

  4. #4
    Registered User
    Join Date
    07-25-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: VBA to fill table with results of all variable combinations in separate calculation mo

    Bump, no response.

  5. #5
    Registered User
    Join Date
    07-25-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: VBA to fill table with results of all variable combinations in separate calculation mo

    Any VBA specialist out there who could help me with this?

  6. #6
    Registered User
    Join Date
    07-25-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: VBA to fill table with results of all variable combinations in separate calculation mo

    Hello VBA wizzards Is my request not clear enough or too difficult?

+ 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. Dynamic Variable in a pivot table calculation field
    By jwongsf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2012, 11:48 AM
  2. Correlation calculation of combinations
    By Myria in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-08-2012, 06:50 AM
  3. [SOLVED] Test dropdown combinations for negative results
    By nataliarizzatti in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2012, 04:19 PM
  4. How to run a separate private procedure within the same module
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2012, 05:07 PM
  5. VBA variable combinations
    By chintsmusk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2011, 03:04 AM

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