Data Validation for text only formula

K

Kimberly

I was given this formula and I am trying to enter it in a cell to only allow
the user to enter text howerver it does not fit. Any suggestions?
=SUMPRODUCT(--(ISNUMBER(MATCH(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),ROW(INDIRECT("97:122")),0))))+SUMPRODUCT(--(ISNUMBER(MATCH(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),ROW(INDIRECT("65:90")),0))))=LEN(A1)
 
G

Gord Dibben

Kimberly

The formula does not go into a cell.....it goes into the Custom Formula dialog
box in Data>Validation>Custom

Just CTRL + C the formula from your post then CTRL + V into that dialog box.

NOTE: this formula is written to limit A1 only to text.

Adjust the cell ref if placing in other cells.


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top