+ Reply to Thread
Results 1 to 4 of 4

assign values to categories

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    11

    assign values to categories

    Hello community,

    I'm having the following issue:
    I have data set with different values (between 1 and 0.9). I'd like to create a column with categories for those values i.e. values =1 should be in category 1; values between 0.99 and 0.95 should be in category 2, values between 0.94 and 0.90 should be in category 3 ...
    Is there a formula for such problem?

    Thanks so much for your help in advance,

    Neico

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: assign values to categories

    Your request is a bit vague but you could do something like...
    =IF(A2=1,"category 1",IF(AND(A2<1,A2>0.94),"category 2",IF(A2<0.95,"category 3","")))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: assign values to categories

    Look at the attached for one solution:
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    09-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2011
    Posts
    11

    Re: assign values to categories

    Thanks that was helpful!

+ 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. Replies: 1
    Last Post: 05-15-2013, 06:55 AM
  2. Replies: 8
    Last Post: 07-28-2012, 03:22 PM
  3. [SOLVED] Sum with VLOOKUP? - Calling values by categories
    By degross77 in forum Excel General
    Replies: 4
    Last Post: 06-06-2012, 10:53 PM
  4. Sum Values Based on Categories in Different Column
    By BScott22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2010, 06:54 PM
  5. how do I get the x-axis to plot values rather than categories in .
    By Boggins in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-15-2005, 04:06 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