How to cut content into differerent excel worksheet

Hi all!

I’m trying to do something that sounds so simple but I’m running into one limitation after another:

I want to copy content from one excel sheet into another and delete it from the original sheet, the runs will be timed. Important: I cannot just delete the whole original table as there are functions running in that sheet, waiting for new content to be filled in.

First, I’ve run into the problem that it wouldn’t let me delete from the original file because that would “move cells in a table“, whether the worksheet contained a table or not.

Then, the deletion itself worked when I changed all modules to the “worksheet” instead of the “table” ones. But in this case, it just keeps deleting indefinitely or incompletely. Two solutions I’ve tried:

  1. A high number of Delete modules (always deleting Row 2) following one another with a filter to specify the row isn’t empty. That way it also deletes indefinitely, as (from what I understand) it only knows Row 2 isn’t empty from the list rows module.
  2. Map the Row ID from Module 1 into the Delete module. That way, it seems to delete exactly half of the rows but using as many Operations as it would actually need to delete all. My explanation: It deletes Row 1, which makes Row2 turn into Row 1. Then it deletes Row 2, so Row 1 is left standing.

ChatGPT is suggesting I make it delete from the bottom but I cannot make that work using the solution ChatGPT suggests, not sure it’s actually workable.

Grateful for any help!
Denise

We’d love to help, however, you have not provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any issue/s and/or error/s.

To allow others to assist you with your scenario, please provide the following:

1. All Relevant Screenshots

We need to see what you’re working with to give you the best advice. Screenshots are extremely important because Make is a visual editor — a picture provides us with more context.

It would help us identify the issue by having screenshots of:

  • the full scenario,
  • any error messages,
  • individual module fields,
  • relevant filter settings (conditions), and
  • each module’s output bundles
  • any external services (spreadsheet headers, sample data, regex101.com, etc.)

You can upload images here using the Upload icon in the text editor:

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and avoid tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Module Output Bundles

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
Here are some ways to provide text content in a way that it won’t be modified by the forum.

  • Method 1: Type code fence manually
    Add three backticks ``` in a separate line before and after the content, like this,

    ```
    text goes here
    ```
    
  • Method 2: Highlight and click the “preformatted text” button in the editor

  • Method 3: Upload your file and share the public link
    (this method is only recommended for large files exceeding the forum upload limit)

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved, and help you with mapping the raw property names from collections.

Sharing these details will make it easier for others to assist you.

Hi there, I’ve finally gotten around to it now:

A&M Archiv anlegen - List rows in a worksheet Iteration.blueprint.json (106.9 KB)

This is the latest scenario. I cannot show you any error messages, as the scenario runs through. The problem is that it does not reliably delete all rows with content in them, but just every second row.

The three modules are attached:

  1. M365 Excel - List Worksheet Rows

    1a: a filter that specifies row D cannot be empty

  2. M365 Excel - Add Worksheet Row (into another excel file, which is supposed to be an archive)

  3. M365 Excel - Delete a Worksheet Row (in the original file from which step 1 listed the rows)

    Output bundles:

    bundle1.txt (35.3 KB)

    bundle2 operation1.txt (3.2 KB)

    bundle2 operation2.txt (3.4 KB)

    bundle.json (14 Bytes) (bundle3 operation1)
    bundle.json (14 Bytes) (bundle3 operation2)

In the run I made to create those bundles, it seems to have again successfully run module 1 and 2 (it copied the content of the two rows over into the “archive” excel sheet) but not reliably module 3 (it only deleted one of those rows in the original excel sheet).

Thank you!
Denise

Hi again, maybe samliew you can help now with the new information provided?
Thank you
Denise

Sure, just aggregate the trigger module, then in another Iterator, use the built-in function reverse.

That’s how you delete from the bottom row first.

@samliew

1 Like

Fantastic, thank you!