Hi, I am trying to sum the first and last values in a list where there are multiple entries of the same product. The formula works well for >1 entry, but it fails on a single entry. For some strange reason, it doubles the value of the single entry. Not quite sure how to fix it using XLookup. Your help would be greatly appreciated. Thank you.