+ Reply to Thread
Results 1 to 1 of 1

Creating table using equation based on three variables.

Hybrid View

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    Gainesville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    1

    Creating table using equation based on three variables.

    I have a worksheet that has three user input variables, let's call them Z, Y, and X, that iterates to arrive at the desired answer, A, using a macro. What I want to do is create a table with X and Y as my main axis and Z as a sub axis (paired with the Y axis). The data in the table would be this iterated A value that is calculated when those particular X, Y, & Z values are placed in the worksheet. The result would look something like shown below.

    Ai = (53Xi+Yi^2)/Zi

    ________X1____X2___X3____X4 ...
    Z1_Y1___A1____A2___A3____A4
    Z1_Y2___A5____A6___A7____A8
    Z1_Y3___A9___A10__A11___A12
    Z1_Y4__A13___A14__A15___A16
    Z2_Y1__A17___A18__A19___A20
    Z2_Y2__A21___A22__A23___A24
    Z2_Y3__A25___A26__A27___A28
    ...

    Obviously the formula isn't as simple as shown above or else I would just place it into each cell where I need the corresponding A value. I can't quite seem to figure out how to get a visual basic macro to work for this as I am relatively new to basic. In the worksheet that calculates the A value, all the variables are in different cells.
    Last edited by canunu1; 02-28-2013 at 07:10 PM.

+ 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