How to Skip Leads If Email Already Exists in Google Sheets (Prevent Duplicates)

Hi everyone,

I’m working on a simple automation but running into a logic issue, and I’d really appreciate some help.

:wrench: My Use Case

I have a workflow in n8n that processes incoming leads (name, company, email, etc.). I want to check if the lead’s email already exists in my Google Sheets CRM, and then:

  • :cross_mark: If the email exists, I want to skip the lead (do nothing)
  • :white_check_mark: If the email does not exist, I want to continue processing (add to the sheet, send an email, etc.)

:brain: What I’ve Tried

I used the Google Sheets “Lookup” node to search by email. The issue is that when the email does not exist, it returns nothing ([]), which makes it hard to filter properly in the next IF node.

In the IF node, I want to create a condition that says:

  • If no match is found → proceed
  • If a match is found → skip

But I can’t figure out the right expression or setup to check for an empty result from Google Sheets.

:receipt: My Setup:

  • My Google Sheet has a column called Email
  • I use “Lookup Spreadsheet Row” node, searching by Email
  • Leads come from an earlier node (AI-generated or webhook input)
  • I’m stuck on how to structure the IF node correctly after the lookup

:light_bulb: What I Need Help With:

  • How to write the correct condition in the IF node to detect if the email was not found in the sheet
  • Any best practices for preventing duplicates like this in Google Sheets

Thanks in advance! :folded_hands:
Really appreciate any help or node examples if possible.

Hello
In “if” node,you can use contains “@” to as true,so when the result is ,it will go to false node.

Hi there, you can do an if like this


so it checks if the previous node is empty, then if it is, it turns to true which on your case, if its empty, it means that the email are not duplicated or does not exist yet in the sheet

make sure that your previous sheet has the settings always output data turned on

if it helps you, please give this answer a like and mark it as the solution

1 Like

hi there, if i help solve your question please mark my answer as the solution @hassan133

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.