+ Reply to Thread
Results 1 to 4 of 4

using the if formula with comparison operators

  1. #1
    Registered User
    Join Date
    06-06-2007
    Posts
    5

    using the if formula with comparison operators

    I have a problem using the if formula with comparison operators. I have a range of fields for geographic areas and the values in these fields are a percent. I want to categorize the data based on thier value.
    For example:

    If the value in the cell is between 0 and 9.9 percent, I would like the catagorize this as a "1" and so forth.

    The entire categories I have are:

    0-9.9% = 1
    10-30% = 2
    30.1-39.9% = 2,5
    40-60% = 3
    60.1-69.9% =3,5
    70-100% = 4

    Using the if formula I know how to obtain an answer if the condition is exact -if(A1=0:1:A1) but I would like to enter a range of values for the comparison such as -if A1 is between 0 and 9.9 then 1, if A1 is between 10 and 30 then 2 etc. Is this possible? I have not found any answer yet.
    Thanks for your help!
    Dan
    Last edited by dmorovitz; 10-09-2008 at 08:35 AM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: using the if formula with comparison operators

    FREQUENCY does just that. look in the help file. Copy the example and you have your solution.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: using the if formula with comparison operators

    Sorry for the previous answer. Did not read! Hope this helps
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-06-2007
    Posts
    5
    Thanks for the help! The index and match formula worked perfectly, fortunately changing the formula for the german version of excel wasn't too difficult!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula for bond price
    By Dracan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 11:17 AM
  2. A formula template
    By ajaysehgal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 06:12 AM
  3. Trouble returning correct formatting using comparison operators
    By mongo76 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2008, 01:26 PM
  4. Conditional formula question
    By odditie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2007, 09:47 PM
  5. How do I subsitute part of a formula linked to another workbook?
    By Scej12 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-03-2007, 10:10 AM

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