Tool

Move dimension

The Google Sheets Move Dimension tool enables users to seamlessly move rows or columns within a spreadsheet, optimizing data organization and workflow efficiency. It leverages the Google Sheets API to reposition selected dimensions precisely as needed.

Google Sheets

Features

  • Supports moving entire rows or columns within a spreadsheet.
  • Allows selection of specific ranges using start and end indices for precise repositioning.
  • Integrates with Shared Drives and My Drive for flexible source selection.
  • Automatically shifts existing data to accommodate moved dimensions without data loss.
  • Utilizes zero-based indexing for accurate dimension placement before removal from the original location.

Benefits

  • Enhances spreadsheet data management and organization with ease.
  • Saves time by automating manual cutting and pasting operations in Google Sheets.
  • Reduces errors by providing precise control over dimension movement.
  • Improves collaboration by supporting both personal and shared drive spreadsheets.
  • Streamlines complex spreadsheet restructuring tasks for better productivity.

Description

Move a dimension in a spreadsheet. See the documentation

Parameters

6 parameters

NameTypeDescription
drivestring

Defaults to My Drive. To select a Shared Drive instead, select it from this list.

You can use the "retrieve_options" tool using these parameters to get the values. key: google_sheets-move-dimension, propName: drive.

sheetIdrequiredstring

Select a spreadsheet or provide a spreadsheet ID

You can use the "retrieve_options" tool using these parameters to get the values. key: google_sheets-move-dimension, propName: sheetId.

dimensionrequiredenum

The dimension to move

startIndexrequiredinteger

The start (inclusive) of the span

endIndexrequiredinteger

The end (exclusive) of the span

destinationIndexrequiredinteger

The zero-based start index of where to move the source data to, based on the coordinates before the source data is removed from the grid. Existing data will be shifted down or right (depending on the dimension) to make room for the moved dimensions. The source dimensions are removed from the grid, so the the data may end up in a different index than specified. For example, given A1..A5 of 0, 1, 2, 3, 4 and wanting to move "1" and "2" to between "3" and "4", the source would be ROWS [1..3),and the destination index would be "4" (the zero-based index of row 5). The end result would be A1..A5 of 0, 3, 1, 2, 4

Ready to vibe automate?

Join thousands of people who have transformed their workflows.

Workflows

Automations with AI agents

Collections

All your data, searchable

Chat Widget

Drop-in widget for your website

Developer API

Build AI-powered apps with ease

    We use cookies to enhance your experience on Needle and keep your data secure. Privacy Policy