+ Reply to Thread
Results 1 to 7 of 7

List Building Based on a Cell value or colour

  1. #1
    Registered User
    Join Date
    03-12-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    List Building Based on a Cell value or colour

    Hi I am trying to create a Macro/VB code that will build 4 lists based on a list (see attached example).

    I have a list of applications and the numbers of users having them installed on their computers, these applications are marked using a RAG status (Red, Amber, Green & NBR No Business Requirement) on a seperate work sheet i want to split them by these RAG statuses, the status of applications changes as they are packaged for SCCM, so the RAG status will be changed, so i want the code to be able to rebuild the lists at any time to obtain an accurate view of the numbers at each status.

    Any help would be appreciated as i am quite good with Excel but new'ish to coding.

    Thanks for reading.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: List Building Based on a Cell value or colour

    FORUM_D17_RAG.xlsxDoes this help, no macro, array formulas
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    03-12-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: List Building Based on a Cell value or colour

    I have just implemented your suggestion, work perfectly, great solution and quick and easy to maintain. Many thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: List Building Based on a Cell value or colour

    No worries.

    One thing to bear in mind is that the number of return rows has to be the same as the source, so 100 apps, 100 formulas, even though they could be 25% across each category.

  5. #5
    Registered User
    Join Date
    03-12-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: List Building Based on a Cell value or colour

    Thanks again, 1 question: What does the "ROWS(H$1:H2)-1" actually do?

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: List Building Based on a Cell value or colour

    ROWS(H$1:H2)-1

    This is the nifty bit. The whole thing relies on the small(array,k) formula, so the array is all the rows that meet the criteria, ROWS(H$1:H2)-1 increments by one each time, so dragging down it will be ROWS(H$1:H3)-1, ROWS(H$1:H4)-1, so it is inrementing the row count, which is incrementing our k value, which is the result you want small({1,2,6,8},1) gives 1small({1,2,6,8},4) gives 8

  7. #7
    Registered User
    Join Date
    03-12-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: List Building Based on a Cell value or colour

    Thanks Nathansav, i did manage to get it working across different sheets eventually and managed to work out what the ROWS(H...) was doing but I appreciate all your help and getting back to me.

    Thanks again.

+ 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. moving cell to top of list based on colour of background
    By kevinless in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 06-18-2014, 08:26 AM
  2. [SOLVED] Building a list of names based on intersections
    By Rocketeer76 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-19-2012, 12:43 PM
  3. [SOLVED] Re: Help on reply to...building a list in a col...based on another col
    By KimberlyC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2005, 03:06 PM
  4. Building list based on condition
    By Henrik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2005, 04:06 AM
  5. building a list in a col...based on another col
    By KimberlyC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2005, 07: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