Results 1 to 11 of 11

populate cells in a matrix from goal seek values based on

Threaded View

  1. #1
    Registered User
    Join Date
    08-05-2009
    Location
    ny,ny
    MS-Off Ver
    Excel 2003
    Posts
    23

    populate cells in a matrix from goal seek values based on

    Novice user: wish to write an VB macro in Excel (2003) that populates a 6 row by 10 column matrix (for a 3 D graph) by inserting values from matrix row column headers in cells in another worksheet and using goal seek to derive a value which will be pasted in the respective cell in the 6X10 matrix

    Specific example: Matrix (Row Headers A2 to A7, Column Headers B1 to K1, Cell values are in B2 to K7). Please note row and column headers are numerical values since this is for a 3D graph

    Macro to be written

    Pick a value (numerical) from row header A3 in Sheet A and paste it in cell B6 in another sheet (Sheet B). Pick anothet value (numerical) from column header D1 in Sheet A and paste it in cell B7 in Sheet B.

    Run a goal seek scenario such that cell S10 in sheet B is equal to 50 by changing cell G8 in Sheet B

    Copy the value chosen/optimised by Goal Seek from cell G8 in Sheet B and paste it in Cell D3 (which is the relevant cell for the values for intersection of headers A3 and D1) in Sheet A

    Macro should populate all cells in the matrix in Sheet A (matrix cells to be populated are B2 to K7) in a similar fashion

    The macro should be locked in to the cells which are either being copied from or pasted into so that it still references them even if new columns or rows are inserted.

    Any help appreciated – please indicate exactly where I need to place any macro codes and in what editors

    Thanks
    Last edited by W2009; 08-06-2009 at 06:08 AM. Reason: Clarification

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