+ Reply to Thread
Results 1 to 6 of 6

Combine IF Statements with Other Functions to List of Numbers

  1. #1
    Registered User
    Join Date
    01-07-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    4

    Combine IF Statements with Other Functions to List of Numbers

    Hi Everyone,

    I have a list of over 700 numbers to that I want to label as follows:
    1. the largest;
    2. the smallest;
    3. A range between 3 million and 4 million;
    4. A range between 2 million and 2.9 million;
    5. A range between 1 million and 1.9 million.

    Can I use a combination of IF statements and MAX, MIN, AND greater than less than, etc.
    in one formula?

    Thanks so much for any help you can provide to me.

    Tom

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Combine IF Statements with Other Functions to List of Numbers

    Sure. Assuming A1:A700 is your range:

    B1:

    =if(A1=min($A$1:$A$700),"SMALLEST",IF(A1=MAX($A$1:$A$700),"LARGEST",IF(AND(A1>=3000000,A1<=4000000),"HIGH RANGE",IF(AND(A1<3000000,A1>=2000000),"MID RANGE",IF(AND(A1>=1000000,A1<2000000),"LOW RANGE")))))

    and copy down

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Combine IF Statements with Other Functions to List of Numbers

    When you use IF function you should specify what needs to be returned if condition is TRUE or FALSE.
    If you need to classify amount by category you can use something like this:

    Assuming your data starts in A1

    =LOOKUP(A1,{1000000,2000000,3000000,4000000},{"MIN","MID","LARGE","LARGEST"})

    Drag formula down.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Combine IF Statements with Other Functions to List of Numbers

    So using AlKey's ingenius example, you could truncate my previous solution to:

    =IF(A1=MIN($A$1:$A$700),"MIN",IF(A1=MAX($A$1:$A$700),"MAX",LOOKUP(A1,{1000000,2000000,3000000,4000000},{"MIN RANGE","MID RANGE","MAX RANGE"})))

  5. #5
    Registered User
    Join Date
    01-07-2012
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Combine IF Statements with Other Functions to List of Numbers

    Thank you both for two great solutions.

    Tom

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Combine IF Statements with Other Functions to List of Numbers

    You're welcome. Don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).
    Last edited by AlKey; 10-09-2013 at 10:28 AM.

+ 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. Need to combine 20 IF statements
    By CatMac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-06-2013, 04:58 AM
  2. Use functions to combine symbols and numbers
    By codefantom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2013, 09:01 PM
  3. Replies: 3
    Last Post: 07-11-2013, 12:35 AM
  4. Replies: 0
    Last Post: 09-12-2011, 06:32 PM
  5. Combine 2 If statements
    By m1066189 in forum Excel General
    Replies: 2
    Last Post: 06-23-2010, 07:58 PM

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