+ Reply to Thread
Results 1 to 6 of 6

Vertical Copy to Horizontal paste

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Vertical Copy to Horizontal paste

    Below is how the one cell comes in on the remote spreadsheet.


    ='C:\Users\cbeckwith\Documents\UtilityBill-MasterStorage\Sharepoint-Utilities2012FY(Actuals)\2012FISCAL YEAR COMPLETED\[2012 FY Utilities (UMCB-COMPLETE).xlsx]UMCBrack-CP'!$M5

    -CP'!$M5 The column M stays stagnant (Vertical on original), but having a problem in the sheet with the 5 increasing in value in the Horizontal direction, it just stays the same across 12 columns when I drag the link across the columns. Then I have to manually fix all the columns. Is there an easier way to fix this?

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Vertical Copy to Horizontal paste

    This will require the use of OFFSET. Something like this:
    =OFFSET($M5,COLUMN()-COLUMN($O5),0)

    Where the $M5 is replaced by your long reference above, and $O5 is replaced with whatever cell this equation is placed in your spreadsheet (it references itself).
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Vertical Copy to Horizontal paste

    Quote Originally Posted by Pauleyb View Post
    This will require the use of OFFSET. Something like this:
    =OFFSET($M5,COLUMN()-COLUMN($O5),0)

    Where the $M5 is replaced by your long reference above, and $O5 is replaced with whatever cell this equation is placed in your spreadsheet (it references itself).


    I appreciate your fast response, but what does the code look like below:
    I don't want the column "M" to change, only the row number, 5, then 6, then 7, etc.
    Remember, this is a linked spreadsheet

    I am going to assume the following
    ='C:\Users\cbeckwith\Documents\UtilityBill-MasterStorage\Sharepoint-Utilities2012FY(Actuals)\2012FISCAL YEAR COMPLETED\[2012 FY Utilities (UMCB-COMPLETE).xlsx]UMCBrack-CP'!=OFFSET($M5,COLUMN()-COLUMN($O5),12) I believe this is right adding the 12, instead of the 0, because I am wanting twelve columns across, is this right syntax?

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Vertical Copy to Horizontal paste

    No. Like I said, you need to replace the $M5 in my formula with your long one. I wanted to show you the technique which would be lost with such a long reference.

    Let's say you have this in cell A1='C:\Users\cbeckwith\Documents\UtilityBill-MasterStorage\Sharepoint-Utilities2012FY(Actuals)\2012FISCAL YEAR COMPLETED\[2012 FY Utilities (UMCB-COMPLETE).xlsx]UMCBrack-CP'!$M5

    Now, copy my equation exactly and paste it into A1. Then change the $M5 in my equation to your long reference (above). Then change the $O5 to $A1. You should be able to drag that horizontally and it will get the data from your reference vertically. Note: I am using A1 in my example now, you will need to change it to whatever cell this equation is in.

  5. #5
    Registered User
    Join Date
    08-31-2012
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Vertical Copy to Horizontal paste

    It is failing right where the bold is....I think it is right, but I must be missing something.

    =OFFSET('C:\Users\cbeckwith\Documents\UtilityBill-MasterStorage\Sharepoint-Utilities2012FY(Actuals)\2012FISCAL YEAR COMPLETED\[2012 FY Utilities (UMCB-COMPLETE).xlsx]UMCBrack-NT'!$P5,COLUMN()-COLUMN($C14),0)

  6. #6
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Vertical Copy to Horizontal paste

    What do you mean it is failing where the bold is? Are you getting some sort of error message? If so, what is it? Is the file you are referencing open?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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