Set a revision date based on document type and issue date

Simon Hook

New Member
Joined
Sep 8, 2023
Messages
3
Office Version
  1. 2021
Platform
  1. Windows
I have different document types and their review dates will vary according to type, 1 year or 2 years.

example, if a form or worksheet was issued today then the review date will be in 2 years. If a procedure then the review date will be 1 year from issue. Eventually there will be 6 or 7 document types.

See attachment for sheet layout .

Any help with the formula would be greatly appreciated.



Thanks
 

Attachments

  • Screenshot 2023-09-08 114307.png
    Screenshot 2023-09-08 114307.png
    15 KB · Views: 4

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hi & welcome to MrExcel.
How about
Excel Formula:
=EDATE(J2,SWITCH(C2,"Procedure",1,"Form",2,0)*12)
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=EDATE(J2,SWITCH(C2,"Procedure",1,"Form",2,0)*12)
thank you

I presume I can add additional document types by adding in this section:
(C2,"Procedure",1,"Form",2,0)

Can I ask what the 0 at at the end is for?

Simon
 
Upvote 0
The 0 is just a default value to prevent an error if C2 does not equal any of the values.
 
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,303
Members
449,218
Latest member
Excel Master

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