Need Formula

M

Mac

Hi. Using Excel 2007. I want to be able to force certain information into a
cell. Example: Column B must contain either the text: SAI or Passport. If
Column B says SAI, then column C must only (force it) allow for a 13-digit ID
number (numeric). If for instance you enter only 12 digits instead of 13
digits into column C - it must not allow this and give you an error.
However, IF Column B says "Passport", then Column C must default to an
alphanumeric with no length limitation (some passport no's are 9 digits,
others are 6 digits etc).

I'm not sure if Excel can handle this within its normal functions? Can you
please help?
 
J

joel

Use Data Validation and select custom option. Then put a formula into
the formula box.
 

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