+ Reply to Thread
Results 1 to 3 of 3

Changing formulas to move multiple columns over but reference a single column over

  1. #1
    Registered User
    Join Date
    07-15-2014
    Location
    Ireland
    MS-Off Ver
    2019, 2016
    Posts
    52

    Changing formulas to move multiple columns over but reference a single column over

    Hi all,

    I have attached an example of what I am trying to do.

    I would run a simulation for a number of rooms and the results for each room within the simulation would be copied together and inserted into the sheet Solar Values. In the Sheet Solar Gain, column G takes data from the sheet Solar Values. For example column G takes the name of the room and the solar gain in kW from column C in Solar Values.

    What I am wanting to know is, is it possible to copy the structure from column E through to K to column M but having the column that references C in Sheet Solar Values to reference column D e.g.) copy the cells over 6 columns but have it reference only 1column over?


    Column A and C in Sheet Solar Gain takes the name from each room (G2) and the calculated solar gain (K3).
    Is it also possible to copy the formula in cell A2 to A3 but having it reference O3 instead of G3, e.g) copy the cell down one row but have it reference a cell 8 columns over?

    In the simulation there could be up to 200 rooms, and it would be tedious to do this manually for each room.
    Your help would be gratefully welcomed

    Regards,
    Stephen
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Changing formulas to move multiple columns over but reference a single column over

    I don't fully understand the complexity of what you are trying to do here but the INDIRECT function might be of use to you. It allows you to create a formula as a text string and is suited to this sort of challenge.

    If you can post an example showing what you expect the output to look like, this would help.
    Martin

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: Changing formulas to move multiple columns over but reference a single column over

    You can put this formula in G4:

    =INDEX('Solar Values'!$C$4:$G$23,ROWS($1:1),MATCH(G$2,'Solar Values'!$C$2:$G$2,0))

    then copy it down. Then put this formula in cell G2:

    =INDEX('Solar Values'!$C$2:$G$2,INT((COLUMNS($G:G)-1)/8)+1)

    Change the formula in A2 to this:

    =INDEX($G$2:$BA$2,(ROWS($1:1)-1)*8+1)

    then copy this down, and fill in appropriate values in column B.

    Then you can copy the block of cells in columns E:K across into M:S and into U:AA and so on.

    Hope this helps.

    Pete

+ 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: 11
    Last Post: 10-24-2014, 04:50 PM
  2. [SOLVED] Convert column B as multiple column titles and move data in column C into new columns?
    By princesscathryn in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 06-30-2014, 07:31 PM
  3. Replies: 4
    Last Post: 06-07-2014, 12:15 PM
  4. Replies: 4
    Last Post: 06-06-2014, 02:00 PM
  5. Macro to compare multiple columns between 2 spreadsheets based on a single reference
    By chandra79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2012, 11:13 AM
  6. [SOLVED] Multiple formulas in column with reference to single cell - Copy Issue
    By MarVil85 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-21-2012, 02:44 PM
  7. Replies: 2
    Last Post: 03-23-2010, 07:59 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