Hi everyone,
I have the following formula that retrieves the last value in a column B
The values in column B are an alphanumeric sequence, SN2023-1234, and I need to extract the number after the dash - which I can do so using the formula below.
However when I now combine the two formulas by replacing A1 with the first formula, it becomes the unwieldy mess below.
I am looking for a way to shorten this formula.
I have the following formula that retrieves the last value in a column B
Excel Formula:
=LOOKUP(2,1/(Quarterly_Sales!B:B<>""),Quarterly_Sales!B:B)
The values in column B are an alphanumeric sequence, SN2023-1234, and I need to extract the number after the dash - which I can do so using the formula below.
Excel Formula:
=RIGHT(A1,LEN(A1)-FIND("-",A1))
However when I now combine the two formulas by replacing A1 with the first formula, it becomes the unwieldy mess below.
Excel Formula:
=RIGHT(LOOKUP(2,1/(Quarterly_Sales!B:B<>""),Quarterly_Sales!B:B),LEN(LOOKUP(2,1/(Quarterly_Sales!B:B<>""),Quarterly_Sales!B:B))-FIND("-",LOOKUP(2,1/(Quarterly_Sales!B:B<>""),Quarterly_Sales!B:B)))
I am looking for a way to shorten this formula.