mary200668
New Member
- Joined
- Aug 30, 2017
- Messages
- 2
If cell A has a date, cell B has either MOT or Inspection. How do I create a formula for cell C to calculate one year on if cell b says MOT or 12 weeks on if cell B says Inspection?
03/08/2017 | mot | 03/08/2018 | ||||||||||
05/08/2017 | insp | 28/10/2017 | ||||||||||
07/08/2017 | mot | 07/08/2018 | ||||||||||
09/08/2017 | insp | 01/11/2017 | mytable | |||||||||
11/08/2017 | mot | 11/08/2018 | ||||||||||
13/08/2017 | insp | 05/11/2017 | ||||||||||
15/08/2017 | mot | 15/08/2018 | 01/08/2017 | 01/08/2018 | 24/10/2017 | |||||||
17/08/2017 | insp | 09/11/2017 | 02/08/2017 | 02/08/2018 | 25/10/2017 | |||||||
19/08/2017 | mot | 19/08/2018 | 03/08/2017 | 03/08/2018 | 26/10/2017 | |||||||
21/08/2017 | insp | 13/11/2017 | 04/08/2017 | 04/08/2018 | 27/10/2017 | |||||||
23/08/2017 | mot | 23/08/2018 | 05/08/2017 | 05/08/2018 | 28/10/2017 | |||||||
25/08/2017 | insp | 17/11/2017 | 06/08/2017 | 06/08/2018 | 29/10/2017 | |||||||
27/08/2017 | mot | 27/08/2018 | 07/08/2017 | 07/08/2018 | 30/10/2017 | |||||||
29/08/2017 | insp | 21/11/2017 | 08/08/2017 | 08/08/2018 | 31/10/2017 | |||||||
31/08/2017 | mot | 31/08/2018 | 09/08/2017 | 09/08/2018 | 01/11/2017 | |||||||
30/08/2017 | insp | 22/11/2017 | 10/08/2017 | 10/08/2018 | 02/11/2017 | |||||||
28/08/2017 | mot | 28/08/2018 | 11/08/2017 | 11/08/2018 | 03/11/2017 | |||||||
12/08/2017 | 12/08/2018 | 04/11/2017 | ||||||||||
13/08/2017 | 13/08/2018 | 05/11/2017 | ||||||||||
14/08/2017 | 14/08/2018 | 06/11/2017 | ||||||||||
15/08/2017 | 15/08/2018 | 07/11/2017 | ||||||||||
16/08/2017 | 16/08/2018 | 08/11/2017 | ||||||||||
C1 | 17/08/2017 | 17/08/2018 | 09/11/2017 | |||||||||
=IF(B1="mot",VLOOKUP(A1,mytable,2),VLOOKUP(A1,mytable,3)) | 18/08/2017 | 18/08/2018 | 10/11/2017 | |||||||||
19/08/2017 | 19/08/2018 | 11/11/2017 | ||||||||||
20/08/2017 | 20/08/2018 | 12/11/2017 | ||||||||||
21/08/2017 | 21/08/2018 | 13/11/2017 | ||||||||||
22/08/2017 | 22/08/2018 | 14/11/2017 | ||||||||||
23/08/2017 | 23/08/2018 | 15/11/2017 | ||||||||||
24/08/2017 | 24/08/2018 | 16/11/2017 | ||||||||||
25/08/2017 | 25/08/2018 | 17/11/2017 | ||||||||||
26/08/2017 | 26/08/2018 | 18/11/2017 | ||||||||||
27/08/2017 | 27/08/2018 | 19/11/2017 | ||||||||||
28/08/2017 | 28/08/2018 | 20/11/2017 | ||||||||||
29/08/2017 | 29/08/2018 | 21/11/2017 | ||||||||||
30/08/2017 | 30/08/2018 | 22/11/2017 | ||||||||||
31/08/2017 | 31/08/2018 | 23/11/2017 | ||||||||||