Creating a formula to indicate lapse years

jthompso

New Member
Joined
Aug 18, 2014
Messages
14
I'm using Excel 2013. I have my parameters, but am having trouble translating it into a formula.

Below I have columns of data actuals for each year. On the far right, there is a corresponding column for each year for lapsed ID's. Note that the second column from the left is a "total" count that adds up the columns of data.

Here is what I am trying to do:

  1. If a zero is given in any year, and there is a number greater than zero in the previous year, return “true” in the “Lapse” year column in which the zero occurs. Don't worry about the first year of data (2005).
  2. But, No “Lapse” year shall be indicated “true” until the year the Total count reaches at least 2, and only on the second instance. See the Row with the ID “Chris” for example. It would only return “true” for 2013, but not for 2008.

IDTotal 2005-201520052006200720082009201020112012201320142015InceptionLapse2006Lapse2007Lapse2008Lapse2009Lapse2010Lapse2011Lapse2012Lapse2013Lapse2014Lapse2015
Bob2513120000000002005
Mike621313121860000002005
Joe291487000000002005
Earl57311210120100002005
Jake2000000001102013
Chris3001000010012015

<tbody>
</tbody>
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi, this is the formula that I used in the Chris & Lapse2006 cell: =IF(AND(D10=0, C10>0, SUM($C10:D10)>=2), "True", ""). I hope this works for you.
 
Upvote 0
No. The problem is that it is returning "true" for 2008, which is not what I want, because for 2008, there was only one instance that had occurred by that year. So, when deciding whether Chris had lapsed in 2008, the answer was 'no' because he only had one instance. On the other hand, when deciding whether Chris had lapsed in 2013, the answer was 'yes' because he had two instances total by that year (in 2007 and 2012). Each year's calculations should have no knowledge of future years.

Did I explain that clearly?
 
Upvote 0
??? I did not receive a "true" for 2008 and did receive one for 2013. Obviously, I'm not getting the same results that you are. Though the information is not aligning properly in the copy and paste below; if you copy the below and paste in Excel, you can see the results I achieved using the formula provided. You may want to ensure that the formula row/column information matches the Excel file that you are using.

ID Lapse2006 Lapse2007 Lapse2008 Lapse2009 Lapse2010 Lapse2011 Lapse2012 Lapse2013 Lapse2014 Lapse2015
Bob TRUE
Mike TRUE
Joe TRUE
Earl TRUE TRUE
Jake TRUE
Chris TRUE
 
Upvote 0
Try this image instead.

ID Lapse2006 Lapse2007 Lapse2008 Lapse2009 Lapse2010 Lapse2011 Lapse2012 Lapse2013 Lapse2014 Lapse2015
Bob True
Mike True
Joe True
Earl True True
Jake True
Chris True
 
Upvote 0
Pecan,

I apologize. My mistake. The answer you gave works great! I had dropped it into my spreadsheet incorrectly.

Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,596
Messages
6,125,732
Members
449,255
Latest member
whatdoido

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