+ Reply to Thread
Results 1 to 8 of 8

Copy values from horizontal to vertical

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    Waianae, HI
    MS-Off Ver
    MSO 365 version 1909
    Posts
    38

    Copy values from horizontal to vertical

    I come bearing gifts in the form of Excel questions, once again!

    This time, I have totals from columns in a horizontal row (B53:AA53), on a sheet (Sheet1). What I would like to do is automatically have those values carry over to my other sheet (Unit Totals) which is listed vertically (C3:C28).
    The tricky part is that since the totals from 'Sheet1' are generated from a formula, Excel won't let me copy/paste using the "transpose" format.

    Any help would be appreciated! On my spreadsheet, I have over 2600 cells to copy over, this was condensed for an example.

    File is attached for your viewing pleasure!

    Mahalo
    James
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-05-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2019
    Posts
    74

    Re: Copy values from horizontal to vertical

    When you paste special > select Value (under paste) & Transpose (under operation) > OK

  3. #3
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Copy values from horizontal to vertical

    Hi there,

    The following code will copy the transposed VALUES to the "Unit Totals" worksheet:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  4. #4
    Registered User
    Join Date
    07-30-2012
    Location
    Waianae, HI
    MS-Off Ver
    MSO 365 version 1909
    Posts
    38

    Re: Copy values from horizontal to vertical

    Thanks Greg! Works like a charm! Only issue now is how to have the "units total" sheet update the quantities automatically when changes are made in "sheet1"?

  5. #5
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Copy values from horizontal to vertical

    I don't know what version this came out in, but you should be able to use the Transpose formula. Type this in the cell you want to start the values:

    =TRANSPOSE(Sheet1!B53:AA53)

    This is a dynamic array formula so as your values change on sheet one, these values will also change.

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Copy values from horizontal to vertical

    Hi again,

    Many thanks for your feedback.

    If the values displayed on the Unit Totals worksheet are "just for looking at" (i.e. those values are not used for calculations in other worksheets) then a possible cheap 'n' cheerful solution would be to place the following code in the VBA CodeModule of the Unit Totals worksheet (i.e. not in a standard VBA CodeModule).

    The result of this will be that the values on the Unit Totals worksheet will NOT be updated every time a value is changed on the Sheet1 worksheet, but whenever a User needs to view the Unit Totals worksheet (s)he will need to activate that worksheet, and the activation event will trigger the routine which updates the transposed values.

    Please Login or Register  to view this content.

    Hope this helps - as before, please let me know how you get on.

    Regards,

    Greg M

  7. #7
    Registered User
    Join Date
    07-30-2012
    Location
    Waianae, HI
    MS-Off Ver
    MSO 365 version 1909
    Posts
    38

    Re: Copy values from horizontal to vertical

    Thanks Greg! This solution is much easier to work with, thanks for the formula!

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Copy values from horizontal to vertical

    You're welcome! Glad it worked.

+ 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. [SOLVED] return horizontal values to vertical using a key
    By NicBKK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2020, 09:41 AM
  2. Copy Horizontal and Paste Vertical
    By Mhiggins87 in forum Excel General
    Replies: 10
    Last Post: 07-14-2017, 03:41 PM
  3. Copy and paste from Vertical to Horizontal
    By kisanvikas2015 in forum Excel General
    Replies: 2
    Last Post: 06-08-2015, 05:30 AM
  4. [SOLVED] Copy and paste from Vertical to Horizontal
    By mardskee in forum Excel General
    Replies: 5
    Last Post: 09-03-2012, 09:08 AM
  5. Vertical Copy to Horizontal paste
    By cbeckwith in forum Excel General
    Replies: 5
    Last Post: 08-31-2012, 05:13 PM
  6. Return horizontal and vertical values
    By tsanodze in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-27-2008, 07:04 PM
  7. Copy horizontal row to vertical column
    By xcelisgr8 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2007, 01:41 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