Formula for figuring end date

bamacwby

New Member
Joined
Sep 27, 2008
Messages
30
Office Version
  1. 365
Good Morning,
I'm trying to figure out the formula if I have a drop down list of different warranty times and a known start date, how do I get a formula for the end date for the warranty that is selected form the dropdown list. Column G has the warranty drop down list. The second image shows the different warranties times. Thank you
 

Attachments

  • Untitled.png
    Untitled.png
    119.8 KB · Views: 9
  • Untitled1.png
    Untitled1.png
    137 KB · Views: 9

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
can you add a column with just the year number or months , rather than all the text
and then you can use a lookup , taking the startdate and adding 1 year or 2 years from the new column

=warranty end date

=DATE(YEAR(B2),MONTH(B2)+INDEX($H$2:$H$5,MATCH(A2,$G$2:$G$5,0)),DAY(B2))

see example , which can then be adapted

Book2
ABCDEFGH
1vendorstart dateend datemonth
2a1/1/241/1/25a12
3c3/23/243/23/26b6
4b6/15/2412/15/24c24
5a3/16/243/16/25d6
Sheet1
Cell Formulas
RangeFormula
D2:D5D2=DATE(YEAR(B2),MONTH(B2)+INDEX($H$2:$H$5,MATCH(A2,$G$2:$G$5,0)),DAY(B2))
 
Upvote 0
Here is a little shorter formula, based on efate's example:
Excel Formula:
=EDATE(B2,VLOOKUP(A2,$G$2:$H$5,2,0))
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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