Forum Discussion
Return only one instance of value for a repeated Item Codes in Excel
- Aug 28, 2025
You want to avoid double-counting ad spend for an item that has multiple transactions in a month. Essentially, you want one value per item code per month, regardless of how many rows there are for that item, if I understand correctly.
You can use UNIQUE and FILTER (Excel 365 dynamic arrays)
If the value truly never changes within the month for an item, MAXIFS or MINIFS is the easiest and fastest.
If there’s a chance values differ and you want the first instance only, UNIQUE(FILTER(...)) is more precise.
hope this helps you
You want to avoid double-counting ad spend for an item that has multiple transactions in a month. Essentially, you want one value per item code per month, regardless of how many rows there are for that item, if I understand correctly.
You can use UNIQUE and FILTER (Excel 365 dynamic arrays)
If the value truly never changes within the month for an item, MAXIFS or MINIFS is the easiest and fastest.
If there’s a chance values differ and you want the first instance only, UNIQUE(FILTER(...)) is more precise.
hope this helps you