close

Hi;

is there a way to validate CND postal codes in a spreadsheet? If not how can
I format the column to accept only A9A9A9 type of data? (Upper case,
number,uppercase, etc.)
Thank you,

Veronika
You can use the custom data validation formula that J.E. McGimpsey shows
in this message:groups.google.ca/group/micros...d254817?hl=enamp;

If you want to check for upper case, you can add the Exact function to
the formula. However, the formula would then be too long for the data
validation formula box:=AND(EXACT(A1,UPPER(A1)),(LEFT(A1)gt;=quot;Aquot;)*(LEFT(A1) lt;=quot;Zquot;)*(MID(A1,2,1)gt;=quot;0quot;)*(MID(A1,2,1)lt;=quot;9quot;)*(

MID(A1,3,1)gt;=quot;Aquot;)*(MID(A1,3,1)lt;=quot;Zquot;)*(MID(A1,4,1)gt; =quot;0quot;)*(MID(A1,4,1)lt;=quot;9

quot;)*(MID(A1,5,1)gt;=quot;Aquot;)*(MID(A1,5,1)lt;=quot;Zquot;)*(MID(A1,6 ,1)gt;=quot;0quot;)*(MID(A1,6,1)
lt;=quot;9quot;)*(LEN(A1)=6))

You could enter the formula in an adjacent cell, and in the cell where
the postal code is entered, use data validation to check that the
formula result is true.

Veronika wrote:
gt; Hi;
gt;
gt; is there a way to validate CND postal codes in a spreadsheet? If not how can
gt; I format the column to accept only A9A9A9 type of data? (Upper case,
gt; number,uppercase, etc.)
gt; Thank you,
gt;
gt; Veronika
gt;
gt;--
Debra Dalgleish
Excel FAQ, Tips amp; Book List
www.contextures.com/tiptech.html

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()