KutoolsforOffice — One Suite. Five Tools. Get More Done.February Sale: 20% Off

How to transpose and link values in Excel?

AuthorSunLast modified

In Excel, working with data often requires you to reorganize or present information in a different format. For instance, you may need to transpose a range - switching rows to columns or vice versa - and ensure that the transposed values remain linked to the original data so that any updates to the source are reflected instantly in the transposed set. By default, Excel allows you to paste copied data as links and also perform basic transpose operations, but combining both tasks into a single step is less straightforward. This article introduces several approaches to transpose and link values efficiently, with step-by-step instructions and practical tips.

Transpose and link pasted values by Name and formula

Transpose and link by Find and Replace function

Transpose and link using VBA macro for dynamic updates


arrow blue right bubbleTranspose and link pasted values by Name and formula

This method allows you to transpose a group of values and keep them dynamically linked with the original data. By using a named range and a formula, any changes you make to the source data will be instantly reflected in the transposed group.

1. Select the data range you intend to transpose and link. In the Name box (next to the formula bar), type a descriptive name for this range (e.g., SPORT), and press Enter. Naming helps reference the range easily throughout the workbook.
A screenshot of Excel with Name box entry for creating a range name

2. If you’re using Excel 365, Excel 2021, or newer versions, select a single cell where you want the transposed data to start, enter the formula =TRANSPOSE(SPORT) (replace "SPORT" with your range name), and press Enter. Excel will automatically distribute the transposed data across multiple cells.
If you’re using Excel 2019 and earlier versions, highlight the target cells where you want the transposed and linked data displayed, type the same formula, and press Shift + Ctrl + Enter to create an array formula.

A screenshot showing the Transpose formula applied to link and transpose named ranges in Excel

Your transposed data will appear and will stay synchronized with the original. Whenever the data in the named range is changed, the transposed display updates automatically.
A screenshot of linked and transposed data in Excel updated dynamically

Tips and precautions:

  • In Excel 2019 and earlier, array formulas require selecting a range that matches the output shape. For example, if your source data has 5 rows, select 5 columns before entering the formula.
  • Named ranges make formulas easier and more reliable - avoid using generic names and double-check spelling.
  • If you need to expand the original data range later, you must update the named range reference accordingly for the transposed area to capture new data.
  • If you see errors (#VALUE!), double-check cell selection and ensure you complete the formula with Shift + Ctrl + Enter, not just Enter.

arrow blue right bubbleTranspose and link by Find and Replace function

This technique utilizes Excel's Find and Replace function along with Paste Special options to achieve both transposing and linking. While somewhat indirect, it is useful when array formulas are not ideal, or for users preferring menu-driven steps.

1. Highlight your original data range. Press Ctrl + C to copy. Right-click the cell where you want to place the data, and from the Paste Special submenu, choose Link. This step pastes references instead of static values.
A screenshot showing Paste Special with Link option for linking data in Excel

2. Now, open the Find and Replace dialog by pressing Ctrl + H. In the Find what box, enter = and in the Replace with box, type #=. This temporarily changes formulas to prevent issues with transposing later.
A screenshot of Find and Replace dialog in Excel to replace equal signs in linked data

3. Click Replace All. You’ll see a dialog showing how many replacements were made. Click OK, then Close.
A screenshot of replacement confirmation dialog

4. Copy the modified range by pressing Ctrl + C again. Right-click at your target destination, select Paste Special and then Transpose. This switches the orientation for you.
A screenshot of Paste Special with Transpose option in Excel

5. With the transposed data still selected, open Find and Replace again (Ctrl + H). In Find what, type #=; in Replace with, enter = to restore active links.
A screenshot of Find and Replace dialog in Excel to restore linking symbols in transposed data

6. Choose Replace All once more, confirm the dialog, and close out. Your values are now transposed and remain linked to the original inputs.
A screenshot of transposed and linked data in Excel after final linking steps

Tips and precautions:

  • Ensure you replace all equal signs before transposing, or you may get formula errors.
  • After the steps, double-check that the transposed values change when you adjust original data, confirming the link is active.
  • If you encounter formula errors, verify both your Find and Replace actions and your cell selections.

Tip. If you want to quickly find and replace across workbooks or specified sheets, please try to use the Kutools for Excel’s advanced Find and Replace utility as shown in the following screenshot. Download and have a free trial now!

A screenshot showing Kutools Find and Replace utility options in Excel

arrow blue right bubbleTranspose and link using VBA macro for dynamic updates

For users who need a scalable, automated solution - such as when the linked and transposed data spans a large range, or where frequent updates are required - a VBA macro can be used to dynamically generate transposed links. This approach is particularly useful in large or frequently edited sheets where manual methods are time-consuming, and where you want the transposed area to always be up to date with the source data.

1. Go to the Developer tab and click Visual Basic to open the Microsoft Visual Basic for Applications editor. If the Developer tab isn’t visible, see this guide: Show the Developer tab in Excel.

2. In the VBA editor, click Insert > Module to create a new module. Then, paste the following code into the editor window:

Sub TransposeLinkDynamic()
    Dim SourceRange As Range
    Dim DestCell As Range
    Dim r As Long, c As Long
    Dim nRows As Long, nCols As Long
    
    On Error Resume Next
    xTitleId = "KutoolsforExcel"
    
    Set SourceRange = Application.InputBox("Select the range to transpose and link", xTitleId, "", Type:=8)
    Set DestCell = Application.InputBox("Select the top-left cell of transposed linked output", xTitleId, "", Type:=8)
    
    nRows = SourceRange.Rows.Count
    nCols = SourceRange.Columns.Count
    
    For r = 1 To nCols
        For c = 1 To nRows
            DestCell.Offset(r - 1, c - 1).Formula = "=" & SourceRange.Cells(c, r).Address(ReferenceStyle:=xlA1, External:=True)
        Next c
    Next r
End Sub

3. To run the macro, click the Run button button, or press F5. You’ll first be prompted to select the source range to transpose. Then, choose the top-left cell of the output area, where the transposed and linked data will appear.

All data in the output area will contain formulas dynamically linked to the original range, but shown in transposed format. This means any updates you make to the original data range are immediately reflected in the linked transposed area, and you won’t need to redo the process.

Tips and precautions:

  • All formulas are constructed dynamically-if you move or resize the source range, rerun the macro as needed.
  • If you get permissions errors or cannot run macros, check that macro security is enabled for your workbook, and save as .xlsm format.

Best Office Productivity Tools

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

ExcelWordOutlookTabsPowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in