Trying to redeem myself from being an idiot!

anwaee2

Board Regular
Joined
Sep 13, 2012
Messages
151
Office Version
  1. 2011
Platform
  1. MacOS
I apologize, I really got reamed for my last post (and justifiably so) and I will try to make it right this time as not to waste your time again. I would like to get the number of days between the last two dates in the date column that has the task columns checked (columns C, D, E & etc.). There will be no blank cells in the Date column (A6:A41) as far as it goes. Example: Days between last two yard services would be 45 days.. Date 4/22/19 is in cell A6 and date 9/5/19 is in cell A29. At the very least I need the row number of the last and next to last checked cells in any one column. And in formula form please, I am willing to use helper cells if necessary. And there are many more task columns that I didn't list here. Hope this is enough information. Thank you again for all the help in the past and a big thank you for any help you may provide now.

[TABLE="width: 433"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Day[/TD]
[TD]Mow[/TD]
[TD]Weed Eat[/TD]
[TD]Yard Service[/TD]
[TD]Seeded[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]04/22/19[/TD]
[TD]Monday[/TD]
[TD][/TD]
[TD][/TD]
[TD]✔[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/14/19[/TD]
[TD]Tuesday[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/20/19[/TD]
[TD]Monday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/21/19[/TD]
[TD]Tuesday[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]05/30/19[/TD]
[TD]Thursday[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]06/10/19[/TD]
[TD]Monday[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]06/11/19[/TD]
[TD]Tuesday[/TD]
[TD][/TD]
[TD][/TD]
[TD]✔[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]06/17/19[/TD]
[TD]Monday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]06/24/19[/TD]
[TD]Monday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/09/19[/TD]
[TD]Tuesday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/10/19[/TD]
[TD]Wednesday[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/17/19[/TD]
[TD]Wednesday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/22/19[/TD]
[TD]Monday[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/23/19[/TD]
[TD]Tuesday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/26/19[/TD]
[TD]Friday[/TD]
[TD][/TD]
[TD][/TD]
[TD]✔[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]07/27/19[/TD]
[TD]Saturday[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]✔[/TD]
[/TR]
[TR]
[TD]08/01/19[/TD]
[TD]Thursday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/06/19[/TD]
[TD]Tuesday[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]✔[/TD]
[/TR]
[TR]
[TD]08/08/19[/TD]
[TD]Thursday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/15/19[/TD]
[TD]Thursday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/22/19[/TD]
[TD]Thursday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]08/29/19[/TD]
[TD]Thursday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]09/02/19[/TD]
[TD]Monday[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]✔[/TD]
[/TR]
[TR]
[TD]09/05/19[/TD]
[TD]Thursday[/TD]
[TD]✔[/TD]
[TD]✔[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Days From Today[/TD]
[TD][/TD]
[TD]0 days[/TD]
[TD]0 days[/TD]
[TD]41 days[/TD]
[TD]3 days[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Last Day Task Performed[/TD]
[TD][/TD]
[TD]09/05/19[/TD]
[TD]09/05/19[/TD]
[TD]07/26/19[/TD]
[TD]09/02/19[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]Days Between Last Two Tasks[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Something like this?


Book1
ABCDEF
1
2
3
4
5DateDayMowWeed EatYard ServiceSeeded
64/22/2019Monday????
75/14/2019Tuesday????
85/20/2019Monday????
95/21/2019Tuesday????
105/30/2019Thursday????
116/10/2019Monday????
126/11/2019Tuesday????
136/17/2019Monday????
146/24/2019Monday????
157/9/2019Tuesday????
167/10/2019Wednesday????
177/17/2019Wednesday????
187/22/2019Monday????
197/23/2019Tuesday????
207/26/2019Friday????
217/27/2019Saturday????
228/1/2019Thursday????
238/6/2019Tuesday????
248/8/2019Thursday????
258/15/2019Thursday????
268/22/2019Thursday????
278/29/2019Thursday????
289/2/2019Monday????
299/5/2019Thursday????
30????
31????
32Days From Today0 days0 days41 days3 days
33
34Last Day Task Performed9/5/20199/5/20197/26/20199/2/2019
35
36Days Between Last Two Tasks774527
Sheet4
Cell Formulas
RangeFormula
C36=INDEX($A:$A,AGGREGATE(14,6,ROW(C6:C31)/(C6:C31="✔"),1))-INDEX($A:$A,AGGREGATE(14,6,ROW(C6:C31)/(C6:C31="✔"),2))


You should also specify how you are creating the check marks. Is it by using a Wingdings type font? A UNICODE value? An actual check box? If so, is that linked to a cell we can reference for the TRUE/FALSE value? As it is, I just used the symbol in the formula, but that's easily changed.
 
Upvote 0
Also note that the HTML tool I used did not copy over the checks and boxes, but they should be the same as in your example.
 
Upvote 0
Thank you so much Eric. I have tried ever formula (at least 3 dozen different ones that was suppose to work) that could find on google and none worked. Yours worked perfectly except for when there is only one entry in the task column but that is to be expected. Many thanks again. You are the man.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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