Help with formula

Noxqss38242

Board Regular
Joined
Sep 15, 2017
Messages
225
Office Version
  1. 2016
I'm trying to find days elapsed based on dates but the dates are not chronological.
I tried putting in a helper column by using "rank" function.
Then tried to say if rank is greater than 1, index/match to pull the date and subtract current rank from previous rank's date but it errors out....

Qualifications.xlsx
CDE
317/12/20231 
32
334/20/20224#VALUE!
34
352/12/20233
36
371/8/20187
38
392/20/20225
40 
411/20/20226
42
437/10/20232
Sheet1
Cell Formulas
RangeFormula
D31,D43,D41,D39,D37,D35,D33D31=IF(ISBLANK(C31),"",RANK(C31,($C$31:$C$72),0))
E31,E33E31=IF(D31>1,INDEX($C$31:$C$72,MATCH(D31,$D$31:$D$72,0)-INDEX($C$31:$C$72,MATCH(D31-1,$D$31:$D$72,0))),"")
E40E40=IF(ISBLANK(C40),"",(ABS(C40-C38)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A31:AF72Expression=MOD(ROW(),2)=0textNO
 
I won't be the one using the sheet, otherwise I would, people that are NOT very experienced will be which is why I reached out for help....otherwise, yes...simple sort and apply....but that isn't the case which is why I was using a helper column.

Is there not a way to say rank 7's date next cell over MINUS rank 6's date next cell over?

That way they wouldn't have to sort, as it wouldn't matter since the helper column too would automatically rank them?
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Is this what you want
Fluff.xlsm
CDE
3112/07/202312
32 
3320/04/2022459
34 
3512/02/20233298
36 
3708/01/20187 
38 
3920/02/2022531
40 
4120/01/202261473
42 
4310/07/20232148
Checks
Cell Formulas
RangeFormula
D31,D43,D41,D39,D37,D35,D33D31=IF(ISBLANK(C31),"",RANK(C31,($C$31:$C$72),0))
E31:E43E31=IFERROR(C31-AGGREGATE(14,6,$C$31:$C$43/($C$31:$C$43<C31)/($C$31:$C$43<>""),1),"")
 
Upvote 1
Solution
SWEET! Much love!

Aggregate huh? I will definitely need to look into what all that can do....

They should have "mrexcel" links for functions, with everyone being able to share what they found the function can do for them....then the moderators can decide which ones are best, lock them and then shut down further posts to it. Would be quite a task at first....but one wanting to learn more about excel without just "youtubing" it....would be nice...
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top