I am trying to calculate values based on consecutive dates dates. The dates are ordered in the list.
I am including a Excel 2010 file to demonstrate. I have the dates in column A, and want to calculate the values in column B.
Regards
I am trying to calculate values based on consecutive dates dates. The dates are ordered in the list.
I am including a Excel 2010 file to demonstrate. I have the dates in column A, and want to calculate the values in column B.
Regards
You can use this formula in B2:
=IF(A2="","",IF(COUNTIF(A$2:A2,A2)=1,MAX(B$1:B1)+1,B1))
then copy down to the bottom of your list of dates.
Hope this helps.
Pete
Hi Pete, thank you perfect.
What if I have different years? I've tried adapting you formula, but I have no success.
Regards
The following formula yields the same values as those manually placed in column C:Formula:
Please Login or Register to view this content.
Let us know if you have any questions.
Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks