# Matching order numbers

**URL:** https://community.glideapps.com/t/matching-order-numbers/33572
**Category:** Ask for Help
**Created:** [October 25, 2021, 1:16pm UTC](https://community.glideapps.com/t/matching-order-numbers/33572 "2021-10-25T13:16:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Siglide1110](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siglide1110/32/15991_2.png) [@Siglide1110](https://community.glideapps.com/u/Siglide1110)
#### Post date: [October 25, 2021, 1:16pm UTC](https://community.glideapps.com/t/matching-order-numbers/33572/1 "2021-10-25T13:16:32Z")

</div>

I am looking to match the reference number generated by staff orders with an external supplier delivery note.

I have a column with a unique order reference number, this number then forms part of a template which is sent to a supplier as an email and used as part of the email subject.

When the order is both acknowledged and delivered i recieve an email for both which come into a separate tab on the spreadsheet. Is there a way i can match the reference numbers from both tabs order/delivery which then updates a cell value if match is found?

---

<div class="post-metadata">

### Author: ![MegannLock](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/megannlock/32/19680_2.png) [@MegannLock](https://community.glideapps.com/u/MegannLock)
#### Post date: [October 26, 2021, 9:40am UTC](https://community.glideapps.com/t/matching-order-numbers/33572/2 "2021-10-26T09:40:07Z")

</div>

When you receive the acknowledgment/delivered emails, do those rows in your sheet contain the unique order ID?  
If so, you can click over to Data (⊞) when your app is opened from your dashboard and create two Relation columns from your orders table to look for matches on your related sheets. After relation columns are made, you can then use an IF/THEN column to determine if your relation columns are empty! This could act as your status label!

---

<div class="post-metadata">

### Author: ![Siglide1110](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/siglide1110/32/15991_2.png) [@Siglide1110](https://community.glideapps.com/u/Siglide1110)
#### Post date: [November 28, 2021, 8:23am UTC](https://community.glideapps.com/t/matching-order-numbers/33572/3 "2021-11-28T08:23:50Z")

</div>

Thanks for this!
