Eligibility - need to build a physical presence calculator

crofty82

New Member
Joined
Mar 3, 2019
Messages
2
Hello, my wife and I are in the process of emigrating from the UK to Canada and I'm trying to build a spreadsheet that will calculate in real-time when we're eligible for Canadian Citizenship.

To qualify, you need to have spent 1095 days (3 years) out of the previous 5 physically present in Canada. I have column B which is the date and column C which is the country we spent that day in, which I will populate every couple of weeks

So far I've assumed for the sake of argument that we will complete a 'landing trip' to activate our permanent residence on May 6th and then just filled sample data in column C. I'm trying to calculate the earliest date we would be eligible for citizenship and have that date automatically update depending on how many days we spend in the country.

Does anyone have a suggestion for a formula that could work please?

https://www.dropbox.com/s/7k6i6l4h9rm2f8f/Capture.PNG?dl=0
Capture.PNG
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi & welcome to MrExcel.
How about


Excel 2013/2016
BCD
1DateLocation
206/05/2019Canada10/05/2022
307/05/2019Canada
408/05/2019Canada
509/05/2019UK
610/05/2019Canada
711/05/2019Canada
812/05/2019UK
913/05/2019UK
1014/05/2019UK
1115/05/2019Canada
1216/05/2019Canada
1317/05/2019Canada
1418/05/2019Canada
1519/05/2019Canada
1620/05/2019Canada
1721/05/2019Canada
1822/05/2019Canada
1923/05/2019Canada
2024/05/2019Canada
2125/05/2019Canada
2226/05/2019Canada
2327/05/2019Canada
2428/05/2019Canada
2529/05/2019Canada
Cover
Cell Formulas
RangeFormula
D2=B2+DAYS(EDATE(B2,36),B2)+COUNTIF(C2:C25,"<>Canada")
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
If you want to show just dates when residence changes, review the following.



Excel 2010
BCDE
1DateLocationCanada8-May-22
26-May-19Canada
39-May-19UK
410-May-19Canada
512-May-19UK
615-May-19Canada
7Canada
8Canada
9Canada
10Canada
11Canada
12Canada
13Canada
14Canada
15Canada
16Canada
17Canada
18Canada
19Canada
206-May-24
1ddd
Cell Formulas
RangeFormula
E1=B2+1095-1+SUMPRODUCT(--(C2:C19<>D1),B3:B20-B2:B19)
B20=EDATE(B2,60)




Excel 2010
BCDE
1DateLocationCanada8-Jun-22
26-May-19Canada
39-May-19UK
410-May-19Canada
512-May-19UK
615-May-19Canada
71-Jul-19UK
81-Aug-19Canada
9Canada
10Canada
11Canada
12Canada
13Canada
14Canada
15Canada
16Canada
17Canada
18Canada
19Canada
206-May-24
1ddd
Cell Formulas
RangeFormula
E1=B2+1095-1+SUMPRODUCT(--(C2:C19<>D1),B3:B20-B2:B19)
B20=EDATE(B2,60)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
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