Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel Fomrula doesn't let me press enter and displays an error?

Why does this formula cause an error and prevent me from pressing enter? The individual components of the formula seem to work fine, but when combined, they do not function properly.

Here is the string:

.cict oem liab on file exp 11/10/19

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

This part of the formula is separate:

VSTACK(TRIM(SEQUENCE(10,,0)),{" ";"/";"-"})

Complete formula:

=COUNTIF(VSTACK(TRIM(SEQUENCE(10,,0)),{" ";"/";"-"}), TRIM(MID(A2,SEQUENCE(LEN(A2)),1)))=1

Error:

enter image description here

My Sheet

>Solution :

COUNTIF will not allow the use of Dynamic Array formulas as range inputs. It expects a range.

To get the desired TRUE/FALSE list we use MATCH():

=ISNUMBER(MATCH(TRIM(MID(A2,SEQUENCE(LEN(A2)),1)),VSTACK(SEQUENCE(10,,0),{" ";"/";"-"}),0))

enter image description here

If all you want is the date then use FILTER:

=FILTER(TEXTSPLIT(A2," "),ISNUMBER(--(TEXTSPLIT(A2," "))))

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading