+ Reply to Thread
Results 1 to 1 of 1

Change order of static cells based on dynamic formula based cells

  1. #1
    Registered User
    Join Date
    08-03-2016
    Location
    Vilnius
    MS-Off Ver
    2010
    Posts
    2

    Change order of static cells based on dynamic formula based cells

    Hello, I hope someone can help me with this problem: (example worksheet link below)

    https://1drv.ms/x/s!AsKdy7Nfg_FbggvKMtsK7R5Dvp2V

    I have two sheets, Sheet1 is filled by hand, and the data from Sheet1 is used to form an automatic summary report on Sheet2. Each row in Sheet1 and Sheet2 accounts for a specific contract, and columns account for information about that contract, such as Date, Object, Amount, Buyer, etc. Sheet2 has columns A-G, where cells are filled with formulas, so as data is changed in Sheet1, cells in these columns are updated. Column H is called "Comments" and data is only entered by hand. I have set up columns A-G on Sheet2 so that it lists only contracts based on criteria, and in a specific order. (This order (sorting formula and the sorted list) is in Sheet1.)

    So, when I change information on Sheet1 and Sheet2 updates, the order (position) of contracts on Sheet2 (columns A-G) changes, whereas the order (position) of comments in column H stays the same. What i need is for the position of comments in column H to change according to the position of contracts in columns A-G.

    I'll give you an example:

    ________My initial report____________After data is changed in Sheet 1_____What I want it to look like after data change
    ___A-G_____________H_______________A-G____________H__________________A-G__________H
    Contract_1_____Comment_1-------->___Contract_3____Comment_1--------->___Contract_3___Comment_3
    Contract_2_____Comment_2-------->___Contract_1____Comment_2--------->___Contract_1___Comment_1
    Contract_3_____Comment_3-------->___Contract_4____Comment_3--------->___Contract_4___Comment_4

    I should mention, that the number of contracts in the report on Sheet2 changes, so data range is dynamic. That said, there is never more than 100 contracts in the report on Sheet2.

    I guess it is not possible to do without VBA, but a solution involving pressing a button every time to update the order would not suffice. It want the macro to update the position of cells in Column H each time data is changed (assuming it is not too time consuming).

    If anyone could help me solve this problem i would really appreciate it, it would also help me with similar problems i have with static vs dynamic cells. Thank you!
    Last edited by S_O_A_L; 08-03-2016 at 04:38 AM.

+ 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. Replies: 1
    Last Post: 12-23-2015, 02:08 PM
  2. [SOLVED] Change a cells Text based on the Values of 3 other cells
    By cityinbetween in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-08-2014, 06:58 PM
  3. Replies: 2
    Last Post: 08-18-2014, 05:20 AM
  4. [SOLVED] Dynamic repeating order that needs to change based on specific criteria
    By rcoope02 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-14-2013, 11:30 AM
  5. Can cells change color based on formula/data?
    By Bryy2001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-14-2012, 12:43 PM
  6. Format Cells based on criteria of static cell
    By Alley oop in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2012, 03:45 AM
  7. Replies: 2
    Last Post: 04-27-2006, 01:46 PM

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