Share via

Data Validation: specified text or any number allowed in the same cell?

Anonymous
2010-09-01T15:31:30+00:00

Hi!  I would like to control the data entered into Excel cells.  I would like to allow the following entries: either text "N.A." or any number (but not a combination of a number and text.)  In other words the cell would contain either "N.A." or "30,6" but not "30,6 pg/mL".  Can somebody please help me?  Thanx a lot in advance!

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-09-01T16:40:33+00:00

Custom data validation formula for cell A1:

=OR(A1="N.A.",ISNUMBER(A1))

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2010-09-02T07:57:09+00:00

    Luke, thank you so much - it worked!  :)

    Was this answer helpful?

    0 comments No comments