+ Reply to Thread
Results 1 to 5 of 5

Creating a formula

  1. #1
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    Creating a formula

    Need help with creating a formula

    If cell a1 is between
    0-14 then it equals 5
    15-42 then it equals 4
    43-63 then it equals 3
    64-81 then it equals 2
    84-100 then it equals 1
    above 100 "ERROR"

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    =LOOKUP(A1,{0,15,43,64,84,101},{5,4,3,2,1,"Error"})

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    thanks

    superstar thanks for all the help

  4. #4
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    error function how does it work ?

    Please Login or Register  to view this content.
    i need this to look up the table and if it cant find a match then to return "CHECK"

    any help peeps?

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    So your table has gaps ??

    Please give an example

    VBA Noob

+ 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