• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

paste formula verticaly|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / paste formula verticaly|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…paste formula verticaly
sp_PrintTopic sp_TopicIcon
paste formula verticaly
Avatar
David Johnson

New Member
Members
Level 0
Forum Posts: 2
Member Since:
February 14, 2019
sp_UserOfflineSmall Offline
1
February 14, 2019 - 11:20 pm
sp_Permalink sp_Print

Data comes in columns and I need rows.  I used the =A1 then =A2 then =A3 etc.  Very simple

Now i want to copy that row and past it to handle the rest of the columns.  I need the paste function to choose  B1 (the next horizontal row) and not A2 (the next vertical cell) as is the default.

 

Is it possible to force Excel to paste horizontally instead of vertically?

 

Thanks,

 

Dave

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
February 15, 2019 - 9:10 am
sp_Permalink sp_Print

Hi David

You could copy the required column and then use Paste - Paste Special - Transpose to do it column by column.

If you require a formula then one example is attached.

Hope this helps.

Sunny

Avatar
David Johnson

New Member
Members
Level 0
Forum Posts: 2
Member Since:
February 14, 2019
sp_UserOfflineSmall Offline
3
February 16, 2019 - 12:26 am
sp_Permalink sp_Print

Hi Sunny,

 

Thank you for the reply.  I have transposed and I even made a macro that will transpose over and over for me.  These are limited as transposing one at a time is tedious and the macro is limited to how many times I record.

 

My question is about pasting formulas.  When we create a formula and then paste that formula for the additional rows, Excel assumes that you want to change the formula for each row in a vertical (A1, A2, A3) fashion. 

 

As you can see in my attachment.  I manually used the =A1, =A2, A3 etc. to create my first row.  Now I want to copy and paste that as many times as I like but excel is pasting the 2nd row as A2, A3, A4.

 

I want to Force Excel to paste this as B1, B2, B3.  The next row would be C1, C2, C3 and so on.

 

Is there a way to force Excel to past right to left instead of up and down?

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
4
February 16, 2019 - 11:06 am
sp_Permalink sp_Print

At least now with your attachment we can see what you actually wanted.

I am not aware of any way that the formula can become B1, C1 etc when A1 is copied downwards.

There are other workarounds using OFFSET etc.

See if my example helps. 

Sunny

Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
5
February 16, 2019 - 1:33 pm
sp_Permalink sp_Print

If you need a macro then maybe you can try this.

Just make sure that there is nothing under the data. The number of rows in your data must be consistent i.e. 7 rows etc

The macro check the number of rows by looking at column A. The StartRow tells the macro which row to start pasting the data (I have set it to 15 in this example)

Sub TransposeData()
Dim LastColumn As Long
Dim LastRow As Long
Dim c As Long
Dim r As Long
Dim StartRow As Long

LastColumn = Cells(1, Columns.Count).End(xlToLeft).Column
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
StartRow = 15

Application.ScreenUpdating = False
For r = 1 To LastColumn
For c = 1 To LastRow
Cells(StartRow + r, c) = Cells(c, r)
Next
Next
Application.ScreenUpdating = True
End Sub

Good luck.

Sunny

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Philip Treacy, Moshe Arama
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6200
Posts: 27183

 

Member Stats:
Guest Posters: 49
Members: 31861
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.