Consulting

Results 1 to 5 of 5

Thread: Solved: evaluate some numbers

  1. #1
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location

    Unhappy Solved: evaluate some numbers

    I’m trying to evaluate some numbers

    So if any values between 1 to 25 equals = 1

    between 26 to 75 = 2
    between 76 to 100 = 3
    between 101 to125 = 4
    Etc.

    and I’ve got this formula so far
    =(INT(A1/25))*25/25

    but it does not work, If I enter 24 I get 1 but if I enter 25 I get 2 should be 1

    Help please

  2. #2
    VBAX Regular
    Joined
    Dec 2007
    Posts
    21
    Location
    Try

    =LOOKUP(A1,{0,26,76,101},{1,2,3,4})

  3. #3
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    thanks Vog

    works like a treat

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,455
    Location
    You can also use

    =MATCH(A1,{0,26,76,101})
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    thanks xld.

Posting Permissions

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