+ Reply to Thread
Results 1 to 5 of 5

VBA Code - creating a percent for different categories in a column

  1. #1
    Registered User
    Join Date
    06-28-2018
    Location
    US
    MS-Off Ver
    2016
    Posts
    89

    Question VBA Code - creating a percent for different categories in a column

    I have an excel document where in one column there are 7 different categories that could be in it.
    The categories are "RTW, ACC, HBG, HOM, JWL, SLG, SHO" I am trying to code in a command button a way to scan hundreds of cells in this column and make a percent of how many are RTW, ACC, etc.

  2. #2
    Registered User
    Join Date
    06-28-2018
    Location
    US
    MS-Off Ver
    2016
    Posts
    89

    Re: VBA Code - creating a percent for different categories in a column

    Also how would I be able to demine which category is the most used in that column???

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA Code - creating a percent for different categories in a column

    Hi Rachel,

    I was working on this when you messaged me You'll need to enter the row and column numbers

    Please Login or Register  to view this content.
    Last edited by xladept; 06-28-2018 at 03:24 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    06-28-2018
    Location
    US
    MS-Off Ver
    2016
    Posts
    89

    Re: VBA Code - creating a percent for different categories in a column

    Thank you so much! Do you know how I would go about finding which category is most used in the column? Like doing it separate from the percent?

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA Code - creating a percent for different categories in a column

    Hi Rachel,

    Just got home from work. Why isn't the percentage amount enough - what, exactly do you want?

+ 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: 4
    Last Post: 12-06-2017, 04:45 AM
  2. Creating sub-categories within tables
    By eeacolyte in forum Access Tables & Databases
    Replies: 1
    Last Post: 11-20-2017, 11:05 AM
  3. Creating a Macro to sort categories into different sheets
    By jkitfc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2017, 03:26 PM
  4. Creating horizontal line chart with categories in y-axis
    By riya.arora. in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-09-2013, 04:55 AM
  5. Categories and Sub-Categories in Column Charts
    By theoneness in forum Excel General
    Replies: 2
    Last Post: 11-28-2009, 10:05 PM
  6. creating categories based on time
    By th_ooo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2007, 10:27 PM
  7. [SOLVED] Creating Column Headings from XML Categories When Linking Data Wit
    By JimR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2005, 01:10 PM

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