Skip to main content
Question

Add the values of a cell when another cell matches...

  • May 28, 2025
  • 5 replies
  • 28 views

Hi All,

 

I have a spreadsheet of currency values, each row has a value and a transaction ID.

Where one or more lines has a matching ID, I need to add the currency values together.

 

For example:

1111     $10

1111     $2

1111    $5

1112     $100

1112     $25

 

From that data set, I would like to get back:

1111     $17

1112     $125

 

Is this possible with Zapier?

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • May 28, 2025

Hi ​@Stevet 

Which spreadsheet app are you trying to use? (name)

  • GSheets - Lookup Rows

 

Formatter help: https://zapier.com/apps/formatter/integrations#help

 


  • Author
  • Beginner
  • May 28, 2025

Hi Troy,

The data is originally from an XLS file that has been parsed by docparser (extracting the rows I need) and resulting in a table of information in Zapier.

I have been playing with the sum formula, but I can’t see how to combine this with an IF.

(ie: if the ID for this row, match the ID with the next row, then sum the two cells.)

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • May 28, 2025

@Stevet 

If you are trying to sum data across different matching IDs, then you will need to use a custom Code step.

Code: https://zapier.com/apps/code/integrations#help

 

If you are looking to hire help, there is a directory of Certified Zapier Expertshttps://zapier.com/experts


  • Author
  • Beginner
  • May 28, 2025

Thanks, I was hoping to do this without cutting code, but it may be a step too far.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • May 28, 2025

Hi ​@Stevet 👋

Hope you don't mind me jumping in here. Just wanted to share that if you’re not super comfortable coding you could always try using our AI-powered feature for Code steps that can write the necessary code for you: Generate a Code step using AI (Beta)

But if you’d prefer some more hands-on help, connecting with a Zapier Expert as Troy mentioned, would be a great next step. 

Let us know how it goes or if you have more questions! 🙂