'Create a formula that takes the 4th symbol of a cell, If the 4th symbol is 8 the result from the formula needs to be 2018

Please help me with the formula for this:

Create a formula that takes the 4th symbol of column A (Product_ID). If the 4th symbol is 8 the result from the formula needs to be 2018, if the symbol is 9 the result needs to be 2019

Product ID: IP1966712 IP1867546

I would really appreciate your help!

Thank you!!!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source