+ Reply to Thread
Results 1 to 7 of 7

Count red values from certain companies

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Scotland
    MS-Off Ver
    10
    Posts
    37

    Count red values from certain companies

    Please Login or Register  to view this content.
    I use this code to count red cells from a certain company
    It works although it only seems to count the first row in my range

    There must be a way to continue onto the next row!
    Please help

    Example:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Count red values from certain companies

    Hi,

    I think the problem is with parameters that you used in .Cells() method. It will be easier for me to give you the exact answer with a sample file. Could you please post it?

    Regards,
    Alex

  3. #3
    Registered User
    Join Date
    06-26-2014
    Location
    Scotland
    MS-Off Ver
    10
    Posts
    37

    Re: Count red values from certain companies

    samplefile.xlsm

    I have attached a sample file
    Thanks for your help!

  4. #4
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Count red values from certain companies

    OK. I think I've made it Here is the code:
    Please Login or Register  to view this content.
    And here is your sample file to test the macro.

    samplefile_s1.xlsm

    When you change a color of values, you need to press F9 button to recalculate function's results (I couldn't manage to avoid that).

    Regards,
    Alex

  5. #5
    Registered User
    Join Date
    06-26-2014
    Location
    Scotland
    MS-Off Ver
    10
    Posts
    37

    Re: Count red values from certain companies

    Thanks Alex

    Although every time I try this on my original workbook it freezes

  6. #6
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Count red values from certain companies

    It's weird. You might try to comment out a line with "Application.Volatile". Maybe it causes the freezing.

  7. #7
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Count red values from certain companies

    Please try this code:

    Please Login or Register  to view this content.
    Is your workbook freezing with sample data or the actual one?

+ 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. match items across companies
    By gaack in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-06-2014, 05:25 PM
  2. Replies: 2
    Last Post: 01-21-2014, 02:53 PM
  3. Consolidating companies
    By ab585 in forum Excel General
    Replies: 1
    Last Post: 10-01-2013, 12:43 AM
  4. Replies: 14
    Last Post: 07-28-2013, 10:44 AM
  5. Delet companies contain missed values
    By Miloud in forum Excel General
    Replies: 2
    Last Post: 12-30-2008, 01:11 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