Mahaveer
If the answer should be $1,850 which is the profit up to and including the last sale
use: =SUMPRODUCT((A$3:A6<=MAX($F$3:$F6))*(E$3:E6)-(F$3:F6<=MAX($F$3:$F6))*(I$3:I6))
Otherwise Please explain how to get to $2,000
Mahaveer
If the answer should be $1,850 which is the profit up to and including the last sale
use: =SUMPRODUCT((A$3:A6<=MAX($F$3:$F6))*(E$3:E6)-(F$3:F6<=MAX($F$3:$F6))*(I$3:I6))
Otherwise Please explain how to get to $2,000