I got the formula below from the board via a question. Never understood how it worked and now it returns a #VALUE.
=MID(B5,MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},B5,1),LEN(B5)+1)),LOOKUP(1,0/MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1),ROW(INDIRECT("1:"&LEN(B5)))) + 1 - MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},B5,1),LEN(B5)+1)))
This formula extracts a date from the following entry: Date: 1/7/2020. The above formula returns 1/7/202 so when it is referenced in another sheet I get the #VALUE error referenced above.
I can use =right(b5,9) to return the correct date, but I'm concerned when the month goes to 2 digits it will not work again.
How do I modify the above formula to return the correct date in all circumstances?
Thanks in advance.
Louis
=MID(B5,MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},B5,1),LEN(B5)+1)),LOOKUP(1,0/MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1),ROW(INDIRECT("1:"&LEN(B5)))) + 1 - MIN(IFERROR(FIND({0,1,2,3,4,5,6,7,8,9},B5,1),LEN(B5)+1)))
This formula extracts a date from the following entry: Date: 1/7/2020. The above formula returns 1/7/202 so when it is referenced in another sheet I get the #VALUE error referenced above.
I can use =right(b5,9) to return the correct date, but I'm concerned when the month goes to 2 digits it will not work again.
How do I modify the above formula to return the correct date in all circumstances?
Thanks in advance.
Louis