Hi, and welcome to the forum.
PeterV wrote: ↑Sun Dec 24, 2023 9:01 pmBing AI
Ha! But thank you for trying. It's more than most visitors here do. We do have topics in the forum about this subject, though I appreciate they may be difficult to locate.
PeterV wrote: ↑Sun Dec 24, 2023 9:01 pm
What is the formula to find the value of a cell in a column of the last previous row that has a corresponding value in a another column?
Formulas in yellow cells must be entered as
Array formulas.
Press ⇪⌘Enter (Shift+Command+Enter) on a Mac or Ctrl+Shift+Enter on other platforms; if you press Enter by mistake, use Edit → Delete Contents → Formulas, then try again. Do not attempt to
drag an array formula to other cells using the
Fill Handle. You can fill the formula down by double-clicking the Fill Handle, or you can use Copy and Paste. D2 is the constant
0 because that row never has a previous value.
If this solved your problem please go to your first post use the Edit ☐ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.
[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.6.3, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).