The lookup function in Excel can save you a lot of time and effort, but only if you actually know how to use its many forms ...
DGET doesn't work with horizontal tables (where the categories ... and XLOOKUP, some of Excel's best-known lookup functions. However, it would be remiss of me not to mention INDEX and MATCH ...
Unlike its predecessors, it works seamlessly with both vertical and horizontal data ... alternative to older functions like VLOOKUP and HLOOKUP. Available in Excel 2021 and Microsoft 365, XLOOKUP ...