need some help

sshah0349

New Member
Joined
Mar 16, 2020
Messages
3
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi guys,

I need a quick way to find rows where there is a 1 year lapse in "Created Date" but specific to the account name. In the example below, I have data for the 26DotTwo account, however, the master file I'm working with has hundreds of accounts. Is there any sort of IF combo formula that can be used to help highlight this?

The last row is the date we first engaged with this account, and above it are additional dates we worked with them. It's all sorted so the most recent date is shown at the top, and the oldest date at the bottom. What i'm trying to find are dates where there is a gap of 1 year or more.

For example, the 3rd to last row would be an example of this. We worked with them on 4/1/2013 where previously we last worked with them on 9/1/2010 which is almost a 3 year gap.

Does that make sense? Any help to automate this would be greatly appreciated! Thanks!

Account NameCreated Date
26 Dot Two3/4/2015
26 Dot Two1/27/2015
26 Dot Two12/31/2014
26 Dot Two12/4/2014
26 Dot Two10/14/2014
26 Dot Two9/17/2014
26 Dot Two8/19/2014
26 Dot Two10/8/2013
26 Dot Two8/5/2013
26 Dot Two7/24/2013
26 Dot Two5/28/2013
26 Dot Two4/1/2013
26 Dot Two9/1/2010
26 Dot Two8/30/2010
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
This will show the the number of days where the gap is greater than 1 year, is this something that you can work with?
Total Hours (version 1).xlsb
ABC
1Account NameCreated Date
226 Dot Two04/03/2015 
326 Dot Two27/01/2015 
426 Dot Two31/12/2014 
526 Dot Two04/12/2014 
626 Dot Two14/10/2014 
726 Dot Two17/09/2014 
826 Dot Two19/08/2014 
926 Dot Two08/10/2013 
1026 Dot Two05/08/2013 
1126 Dot Two24/07/2013 
1226 Dot Two28/05/2013 
1326 Dot Two01/04/2013 
1426 Dot Two01/09/2010943
1526 Dot Two30/08/2010 
Sheet7
Cell Formulas
RangeFormula
C2:C15C2=IFERROR(--TEXT(MINIFS(B$1:B1,A$1:A1,A2)-B2,"[>365]0;;;"),"")
 
Upvote 0
Thanks so much for the quick reply! I probably could have worded the question a bit better - but basically if there could be a third column added that shows the gap in years from the previous date (one row below). See below - i did this pretty quick using the YEARFRAC formula, but the main sheet i'm working on has around 4K rows with tons of different accounts so im looking for a formula that can help automate this.

Thanks again! any help is greatly appreciated

Account NameCreated DateYear Gap
26 Dot Two
3/4/2015​
0.10
26 Dot Two
1/27/2015​
0.07
26 Dot Two
12/31/2014​
0.07
26 Dot Two
12/4/2014​
0.14
26 Dot Two
10/14/2014​
0.07
26 Dot Two
9/17/2014​
0.08
26 Dot Two
8/19/2014​
0.86
26 Dot Two
10/8/2013​
0.18
26 Dot Two
8/5/2013​
0.03
26 Dot Two
7/24/2013​
0.16
26 Dot Two
5/28/2013​
0.16
26 Dot Two
4/1/2013​
2.58
26 Dot Two
9/1/2010​
0.01
26 Dot Two
8/30/2010​
 
Upvote 0
I guess the tough part is making the formula specific to just the range of the individual account
 
Upvote 0
Something like this?
Total Hours (version 1).xlsb
ABC
1Account NameCreated Date
226 Dot Two04/03/20150.10
326 Dot Two27/01/20150.08
426 Dot Two31/12/20140.08
526 Dot Two04/12/20140.14
626 Dot Two14/10/20140.08
726 Dot Two17/09/20140.08
826 Dot Two19/08/20140.86
926 Dot Two08/10/20130.18
1026 Dot Two05/08/20130.03
1126 Dot Two24/07/20130.16
1226 Dot Two28/05/20130.16
1326 Dot Two01/04/20132.58
1426 Dot Two01/09/20100.00
1526 Dot Two30/08/20100.00
Sheet7
Cell Formulas
RangeFormula
C2:C14C2=YEARFRAC(VLOOKUP(A2,A3:$B$15,2,0),B2)
C15C15=YEARFRAC(VLOOKUP(A15,A$15:$B16,2,0),B15)
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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