G
gg
I’m trying to create an equation that finds the difference between two dates. There are four columns: date, name, text1, text2; they are filtered bydate, oldest to newest. I need to find out if name equals text2, then whatis the date; then I need to search for the next time that name appears in the column and equals text1, and tell me that date. Then I want to know thedifference in those two dates.
Here’s an example:
10/12/2011 Bill C PC
10/20/2011 Jane C NA
12/22/2011 Jane A NA
02/10/2012 Bill A NA
So, if row 1 contains Bill’s name in column 2 and PC in column 4, what isthe date in column one? Then find the next row that contains Bill’s nameand the letter A in column 3, find the date in that row, and give the difference between the two. Ideally it would return the difference as the number of days, so this would return 121.
Here’s an example:
10/12/2011 Bill C PC
10/20/2011 Jane C NA
12/22/2011 Jane A NA
02/10/2012 Bill A NA
So, if row 1 contains Bill’s name in column 2 and PC in column 4, what isthe date in column one? Then find the next row that contains Bill’s nameand the letter A in column 3, find the date in that row, and give the difference between the two. Ideally it would return the difference as the number of days, so this would return 121.