Type what you want in normal words and get a formula you can paste straight into Excel. Paste a couple of rows from your sheet and the column references match your real layout instead of guessing A, B and C.
Each answer explains how the formula works and offers alternatives: a modern version with XLOOKUP and a version that runs in Excel 2019 and older.
Excel Formula Generator
Describe what you need in plain words and get a working Excel formula, with column references matched to your own sheet.
Open the tool — this example is already filled in