Hi Ananthi,
OK, this is a bit better. These are the three conditions that might occure.
If order completed before expected date then the order is “Done.”
If order is not completed but expected date is in the future then the order is “On Target”
If order is not completed and the expected date is in the past, then the order is “Outstanding.”
In ONE cell have the function TODAY() this will return today’s date. It is a volatile function, so you only need one cell otherwise it will slow your system down.
Compare the expected date to this cell if expected date is larger then it’s in the future, and thus the status will be “On Target”.
If expected date is smaller than TODAY() then it’s in the past and thus the order has a status of “Outstanding.”
If the order was done the order has a status of “Done.”
Now you can use the COUNTIF() function, in the statistical group to count the different statutes:
= COUNTIF(where to look, what to look for)
And I hope this helps.