+ Reply to Thread
Results 1 to 8 of 8

Count column value then adjacent column cell fill color

  1. #1
    Registered User
    Join Date
    02-18-2015
    Location
    HOLLAND MI
    MS-Off Ver
    WINDOWS 7 PROFESSIONAL
    Posts
    61

    Count column value then adjacent column cell fill color

    Good morning,

    This is above my pay grade... and any help would be greatly appreciated!

    Below is a pic... and further below is an attachment.

    I would like to count if: the values in Column A... and then... count if... the cell fill color is in Yellow... in Column B.

    I know a COUNTIF formula works for the first part... but the second part regarding color... has me stuck.

    I would like to calculate as in the "RESULTS" below.

    SAMPLE PIC.jpg

    COUNT COLUMN VALUE THEN ADJACENT COLUMN CELL FILL COLOR.xlsx

    Thanks!

    Kevin

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Count column value then adjacent column cell fill color

    How many CAR's you have? I can try to write a macro for 2 or 3, but if you have 100, my skills won't be enough.

  3. #3
    Registered User
    Join Date
    02-18-2015
    Location
    HOLLAND MI
    MS-Off Ver
    WINDOWS 7 PROFESSIONAL
    Posts
    61

    Re: Count column value then adjacent column cell fill color

    Thanks bmouse... but I do have a total of 19 cars.

    Thanks anyway!

  4. #4
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Count column value then adjacent column cell fill color

    19 is not much, but the way I would write this macro is through IF's. First determine the value of the cell, then the color, and that means I would have to write 19 cases of IF to count all cars and colors. That is not an efficient way of doing it, but sadly I haven't yet mastered another. Here's to hoping somebody comes up with a better idea

  5. #5
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Count column value then adjacent column cell fill color

    Hi MIGARDEIN,

    Please try this,
    You may use vb constant colour to change your preferred colour
    i.e. vbYellow, vbRed, VbBlue, etc. or customize colour using RGB (255,255,255) 'white

    Please Login or Register  to view this content.
    If the above helped you, please add reputation to me
    Last edited by Faridwahidi; 08-04-2015 at 11:45 AM.

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Count column value then adjacent column cell fill color

    Hi
    Try this udf function
    Please Login or Register  to view this content.
    In the attachment you will find help how to use it
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  7. #7
    Registered User
    Join Date
    07-22-2015
    Location
    Cambodia
    MS-Off Ver
    2013
    Posts
    7

    Re: Count column value then adjacent column cell fill color

    very Good example for both code above.

  8. #8
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Count column value then adjacent column cell fill color

    Thanks VBA_Learner for rep points ..

+ 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: 07-20-2015, 10:58 AM
  2. [SOLVED] count number of cells in Column C that have a lesser or equal value to the adjacent cell
    By Geoff Jones in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-18-2013, 11:01 AM
  3. Replies: 1
    Last Post: 11-05-2013, 07:58 PM
  4. [SOLVED] Count Unique Values in a Column that are not in adjacent Column
    By sskgintl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2013, 03:18 PM
  5. Replies: 4
    Last Post: 10-21-2010, 11:05 AM
  6. Replies: 0
    Last Post: 03-09-2005, 06:47 AM
  7. Using COUNTIF to count column entries if adjacent column contains data
    By johnfullerroot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-09-2005, 05:43 AM

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