ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need Formula (https://www.excelbanter.com/excel-programming/438366-need-formula.html)

Mac

Need Formula
 
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?

joel[_523_]

Need Formula
 

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


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=169479

Microsoft Office Help


joel[_524_]

Need Formula
 

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


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=169479

Microsoft Office Help


joel[_525_]

Need Formula
 

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


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=169479

Microsoft Office Help


joel[_526_]

Need Formula
 

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


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=169479

Microsoft Office Help



All times are GMT +1. The time now is 02:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com