+ Reply to Thread
Results 1 to 4 of 4

If formula with many conditions

  1. #1
    Forum Contributor
    Join Date
    07-21-2010
    Location
    Alta, Norway
    MS-Off Ver
    Excel 2003
    Posts
    119

    If formula with many conditions

    Hi,

    Original Post as I remember it:
    I have a sheet with values in row 1.
    The values are in the range of -100 to 100.
    I am trying to create a IF formula to categorize the values in line A by ranges.
    Eg. If value in cell B1 is equal to or greater than -100 and less than -80, the IF soultion is "-5"
    If value in cell B1 is equal to or greater than -80 and less than -60, the IF soultion is "-4"
    ....
    If value in cell B1 is equal to or greater than 40 and less than 60, the IF soultion is "3"
    .....

    Thanks to DonkeyOte

    Gnoke
    Last edited by gnoke; 08-12-2010 at 08:23 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: If formula with many conditions

    Not very clear I'm afraid - the bands seem a little inconsistent but perhaps:

    =SIGN(A1)*CEILING(ABS(A1);20)/20

    edit: always good to waste some time...

  3. #3
    Forum Contributor
    Join Date
    07-21-2010
    Location
    Alta, Norway
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: If formula with many conditions

    Thanks DonkeyOte,
    For me your help was not a waste of time, I needed a similiar formula in the sheet after all

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If formula with many conditions

    gnoke, please repost the original question.. as perhaps it could help someone else in the future with similar problem and they will have DonkeyOte's helpful solution.

    thanks.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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