moldy thread punt time.
got bored tonight while cleaning guns. decided I needed to answer another useless question.
How many rounds fired since last cleaning?
Code:
Cleaned Date:
=TEXT(LOOKUP(2,1/(('Purchase Log'!$H$4:$H$1003='Ammo Report'!M4)*('Purchase Log'!$I$4:$I$1003=$C$1)),'Purchase Log'!$A$4:$A$1003),"yyyy/mm/dd")
Rounds:
=ABS(SUMIFS('Purchase Log'!$E:$E,'Purchase Log'!$E:$E,"<0",'Purchase Log'!$H:$H,'Ammo Report'!M4,'Purchase Log'!$A:$A,">"&IFERROR(C2,0)))
note: IFERROR needed to handle condition of Cleaned Date returning #N/A because I haven't cleaned that firearm at all yet!