Text to display Invalid code
Prep for a pre-employment Excel test with Job Test Prep
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Text to display Invalid code

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    134
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi, My question is how do I display the text Invalid code if a number is more than 49 or less than 30 in this formula =INDEX(Countries,20,1)

    [ This Message was edited by: Charlie on 2002-03-04 04:08 ]

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Brampton
    Posts
    328
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    What about this formula:

    =IF(OR(INDEX(Countries,20,1)>49,INDEX(Countries,20,1)<30),"INVALID CODE",INDEX(Countries,20,1))

    [ This Message was edited by: Corni on 2002-03-04 19:06 ]

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Posts
    134
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Firstly thanks for answering, the formula looks good, the only trouble is when its copied down the whole row reads Invalid Code, so I think I must have made a mistake somewhere, perhaps I should have made a cell reference absolute.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com