---
title: "How do I compare two or more cells that are in different samplers?"
description: "Comparing cells in different samplers in Geneos involves using path aliases to reference each cell's XPath. The process includes selecting a main sampler, obtaining XPaths for state cells from both samplers, and creating rule logic in the Rule Block."
url: "https://docs.itrsgroup.com/docs/faq/geneos/115004030769-geneos-how-do-i-compare-two-or-more-cells-that-are-in-different-samplers/index.html"
---
The setup below explains this method (use of path alias). Do the following steps:

1. Choose a main sampler. This will be the target of the rule.

![Geneos main sampler](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-primary-state-tracker.png)

![Geneos secondary sampler](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-secondary-state-tracker.png)

2. Get the Xpath of the state cell of the main state tracker sampler then paste it on the target text box.

![Geneos targets for main sampler](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-main-targets-in-rule.png)

3. Get the Xpath of the state cell of the secondary state tracker sampler then paste it on the target text box.

![Geneos targets for secondary sampler](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-path-alias-advanced.png)

4. Create the rule logic in the Rule Block section.

![Geneos rule block](https://docscdn.itrsgroup.com/faq/images/geneos/geneos-rule-block.png)


