Time between 2 dates, 1 date needs to be pulled from a range of cells

JoeG2124

New Member
Joined
Sep 1, 2017
Messages
8
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
January
February
March
April
May
June
July
August
September
October
November
December
Month of last Visit
Past Due?
Extention Approved
Tom
May-17
May-16
Mike
Nov-17
Oct-16
Harry
Aug-17
Sep-16
So this may be a bit confusing….. In O3-O5 (Past Due Column), I want it to say "Yes/No", however, I want that to come from the difference between the two dates in row 3 (for "tom", column F and N), N is always the EARLIER date.
If the difference is 12 months or above, I want it to automatically populate as "Yes" and if it is 11 months or below I want it to populate as "No".
Since the "newer" date is not always in the same column (month), I need the function to be able to determine the one cell in the row that is populated. There will only ever be one cell populated (from column B-M) for each name.
Me writing out in words for row 3 is like this, "if the difference between N3 and the cell populated between B3 and M3 is greater than or equal to 12, then YES. If the difference between N3 and the cell populated between B3 and M3 is less than 12, then NO"
So for Tom and Mike, it should say "Yes", since it has been 12+ months.
For Harry, it should say "No", since it has only been 11 months.
I don't know if this is even possible to do but this is hurting my brain. So I need help before I go insane because I will not stop trying/looking for an answer.

(I hope this doesn't look awful when posted, can't add gridlines)

<tbody>
</tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
you could use
=DATEDIF(N3,MAX(C3:M3),"Y")
if its a 1 then its 1 year

=if ( DATEDIF(N3,MAX(C3:M3),"Y") >0 , "Yes", "No")
 
Last edited:
Upvote 0
Excel Workbook
ABCDEFGHIJKLMNOPQR
2JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberMonth of last VisitPast Due?Extention Approved
3TomMay-17May-16yes1
4MikeNov-17Oct-16yes1
5HarryAug-17Sep-16no0
Sheet1
 
Upvote 0
Thank you @etaf! I appreciate the help. Worked perfectly.

I am trying to get better with Excel, this site is awesome.
 
Upvote 0

Forum statistics

Threads
1,215,588
Messages
6,125,691
Members
449,250
Latest member
azur3

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