Hi,
I am trying to do an AVERAGEIFS formula but the provided answer is not correct. Current formula I have is
I have a long list of sequential dates in Column A, column B is the date a device was sent (or today if not sent), column C the date it was received, and column D is the difference between the two (so I can see how long it has been in stock).
I want to run a formula by date to see whether stock is on average getting older or younger.
My logic is, I want to average the differences, provided the device was received on or before X date, and sent on or after X date - this would give the average age of in stock items on that date (once a device has been sent, it is immediately not in stock).
The figure I am getting is about 7 days higher than it should be (I have taken today's date as an example, as everything currently in stock is easy enough to calculate).
Does anyone have any idea why this is happening and/or if there's a better way to do it?
I am trying to do an AVERAGEIFS formula but the provided answer is not correct. Current formula I have is
Code:
=AVERAGEIFS(D:D, B:B, ">="&A2, C:C, "<="&A2)
I have a long list of sequential dates in Column A, column B is the date a device was sent (or today if not sent), column C the date it was received, and column D is the difference between the two (so I can see how long it has been in stock).
I want to run a formula by date to see whether stock is on average getting older or younger.
My logic is, I want to average the differences, provided the device was received on or before X date, and sent on or after X date - this would give the average age of in stock items on that date (once a device has been sent, it is immediately not in stock).
The figure I am getting is about 7 days higher than it should be (I have taken today's date as an example, as everything currently in stock is easy enough to calculate).
Does anyone have any idea why this is happening and/or if there's a better way to do it?