+ Reply to Thread
Results 1 to 2 of 2

Assign one number to a number range

  1. #1
    Sue
    Guest

    Assign one number to a number range

    For example,
    -assign 1 to any number between 50 and 64
    -assign 2 to any number betwen 65 to 79
    -assign 3 to any number between 80-100
    So that 62 (in column 1) will be coded as a 1 (in column 2), whereas 67
    would be coded a 2 and 83 would be coded a 3.


  2. #2
    CLR
    Guest

    Re: Assign one number to a number range

    In cell B1 put this formula and copy down..........

    =IF(OR(A1<50,A1>100),"Out of range",IF(A1>=80,3,IF(A1>=65,2,IF(A1>=50,1))))

    Vaya con Dios,
    Chuck, CABGx3



    "Sue" <[email protected]> wrote in message
    news:[email protected]...
    > For example,
    > -assign 1 to any number between 50 and 64
    > -assign 2 to any number betwen 65 to 79
    > -assign 3 to any number between 80-100
    > So that 62 (in column 1) will be coded as a 1 (in column 2), whereas 67
    > would be coded a 2 and 83 would be coded a 3.
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1