=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
=IF(A1<400000,A1,DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)))
As Jeff mentioned it is hard to advise without seeing the data.Thank you, I have some dates in the correct format in the same collum, how do I keep them unchanged from above formula?
Row Labels |
20210112 |
N/A |
Not Paid as of 1/6/2025 |
Offset |
Paid in 2019 |
12/24/2020 |
1/7/2021 |
Book1 | ||||
---|---|---|---|---|
A | B | |||
1 | Row labels | formatted m/d/yy | ||
2 | 20210112 | 1/12/21 | ||
3 | N/A | N/A | ||
4 | Not Paid as of 1/6/2025 | Not Paid as of 1/6/2025 | ||
5 | Offset | Offset | ||
6 | Paid in 2019 | Paid in 2019 | ||
7 | 12/24/2020 | 12/24/20 | ||
8 | 1/7/2021 | 1/7/21 | ||
Sheet5 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B8 | B2 | =LET(a,A2:A8,IF(ISERROR(--a),a,IF(ISNUMBER(SEARCH("/",a))*ISNUMBER(--a),--a,DATE(LEFT(a,4),MID(a,5,2),RIGHT(a,2))))) |
Dynamic array formulas. |
Clearing Date | |
N/A | N/A |
Offset | Offset |
Offset | Offset |
Offset | Offset |
N/A | N/A |
Offset | Offset |
Offset | Offset |
Offset | Offset |
Offset | Offset |
N/A | N/A |
Offset | Offset |
00000000 | #NUM! |
20240109 | 1/9/2024 |
Clearing Date | Clearing date |
N/A | #SPILL! |
Offset | #SPILL! |
Offset | #SPILL! |
Offset | #SPILL! |
N/A | #SPILL! |
=LET(a,A2:A8,IF(ISERROR(--a),a,IF(ISNUMBER(SEARCH("/",a))*ISNUMBER(--a),--a,IFERROR(DATE(LEFT(a,4),MID(a,5,2),RIGHT(a,2)),a))))
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Row labels | formatted m/d/yy | |||
2 | 20210112 | 1/12/21 | <-Insert formula here only | ||
3 | N/A | N/A | |||
4 | Not Paid as of 1/6/2025 | Not Paid as of 1/6/2025 | |||
5 | Offset | Offset | |||
6 | 00000000 | 00000000 | |||
7 | 12/24/2020 | 12/24/20 | |||
8 | 1/7/2021 | 1/7/21 | |||
Sheet5 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B8 | B2 | =LET(a,A2:A8,IF(ISERROR(--a),a,IF(ISNUMBER(SEARCH("/",a))*ISNUMBER(--a),--a,IFERROR(DATE(LEFT(a,4),MID(a,5,2),RIGHT(a,2)),a)))) |
Dynamic array formulas. |