+ Reply to Thread
Results 1 to 5 of 5

Need a Formula that Categorizes Cell Value Based On Value Range

  1. #1
    Registered User
    Join Date
    10-03-2017
    Location
    INDIANAPOLIS
    MS-Off Ver
    2013
    Posts
    2

    Need a Formula that Categorizes Cell Value Based On Value Range

    I have a prospect list of various companies in our area and I am trying to categorize them by their annual revenue. Based on the companies annual revenue value, I want to put a formula in an adjacent cell that will label thje revenue value as one of the following:

    $1 - $5MM
    $5 - $10MM
    $10 - $25MM
    $25 - 50MM
    I have this set up on another sheet (see below), but am trying to figure out how to make a formula that will make use of this table. I'm thinking something along the lines of a VLOOKUP funciton, but it has to be more complex than that.
    Revenue Threshold Category
    1 $1 - $5MM
    5 $5 - $10MM
    10 $10 - $25MM
    25 $25 - 50MM
    50

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Need a Formula that Categorizes Cell Value Based On Value Range

    With 1 in A2, try this in B2:

    =LOOKUP(A2,{1,5,10,25},{"$1 - $5MM","$5 - $10MM","$10 - $25MM","$25 - 50MM"})

    Or you can reference your table like this:

    =LOOKUP(A2,C1:C4,D1:D4) adjusting the ranges as needed.

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Need a Formula that Categorizes Cell Value Based On Value Range

    If your threshold values are in ascending order, you can use INDEX/MATCH with a "Match Type" of 1 on the threshold values to return the proper category. In the attached sample, the threshold table is in G2:H6, the company revenue is in B2, and the lookup in C2 is:

    =INDEX($H$2:$H$6,MATCH($B2,$G$2:$G$6,1))

    Fill down for other companies. Take a look at the attachment to see if it'll do the trick:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  4. #4
    Registered User
    Join Date
    10-03-2017
    Location
    INDIANAPOLIS
    MS-Off Ver
    2013
    Posts
    2

    Re: Need a Formula that Categorizes Cell Value Based On Value Range

    The second solution worked perfectly (not to say the first solution wouldn't). Thank you!

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Need a Formula that Categorizes Cell Value Based On Value Range

    Glad we could help, good luck!

+ 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 to insert text in a cell based on the date range of another cell
    By MTC2016 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2016, 09:36 AM
  2. [SOLVED] Formula to count frequency of data in cell range based on data in different cell range
    By jrosko1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 09:47 AM
  3. Figuring a formula based on a cell value range
    By scottypete in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2012, 11:10 AM
  4. Formula based on colours in cell range
    By karobonas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2012, 06:47 AM
  5. Dynamic cell range based on a formula
    By mljs54 in forum Excel General
    Replies: 1
    Last Post: 10-20-2011, 09:59 AM
  6. Replies: 2
    Last Post: 01-26-2011, 05:56 PM
  7. [SOLVED] formula for named cell/range based on cell values
    By alex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2005, 10:05 AM

Tags for this Thread

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