Jazz Engineer
New Member
- Joined
- Feb 1, 2022
- Messages
- 15
- Office Version
- 365
- Platform
- Windows
I purchased a Kindle copy of Bill Jelen's Excel 2021 Inside Out. Chapter 9 discusses how, thanks to Dynamic Arrays, a single XLookUp formula can return multiple values. The example used on page 229 is what I want to discuss. At first this seems like a cool idea. But that's because the Inventory By Month range is not sorted by Item ID. If you sort the range on that field, you'll find that, in many instances, there is more than one occurrence of an ID. It seems to me that the destination range, A4:N12, is intended to sum the monthly inventory of each item ID. This formula does NOT do that.
My question is: Could a single formula be written that locates all occurrences of each Item ID and sums the inventory values per month.
The formula looks like this: =XLOOKUP(B6,$B$19:$B$14058,$C$19:$N$14058).
If you assign names to the ranges, it looks like this: =XLOOKUP(B5,InventoryID,MonthlyInventory)
My PC kept hanging when I installed XL2BB. When I tried SnagIt, the file, though only about 15 rows plus the formula bar, was too big.
Thanks,
Steve / JazzEngineer
My question is: Could a single formula be written that locates all occurrences of each Item ID and sums the inventory values per month.
The formula looks like this: =XLOOKUP(B6,$B$19:$B$14058,$C$19:$N$14058).
If you assign names to the ranges, it looks like this: =XLOOKUP(B5,InventoryID,MonthlyInventory)
My PC kept hanging when I installed XL2BB. When I tried SnagIt, the file, though only about 15 rows plus the formula bar, was too big.
Thanks,
Steve / JazzEngineer