Question Locked

Microsoft Office Excel

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
What is the excel formula to find the invoiced amount for the latest date for a specific contract number and contract line item number (CLIN)? Column A is a list of different contract numbers, Column B is the corresponding CLIN, Column C is the invoiced date and Column D is the invoiced amount. Thanks in advance for the help! I am using MS Office Excel 2013.

1 reply

by ava2

Assuming that:
- your data are in columns A:D, starting in row 2 (row 1 contains the headers) ;
- the desired Contractnumber is in E1 ;
- the desired CLIN is in F1 ;
then you can use this formula, confirmed with Control - Shift - Enter:
=IFERROR(INDEX(D$2:D$100;MATCH(MAX(IF(A$2:A$100=$E$1;IF(B$2:B$100=$F$1;C$2:C$100)));C$2:C$100;0));"")

This discussion is closed to new replies.