+ Reply to Thread
Results 1 to 5 of 5

If cell=/ white then

  1. #1
    Registered User
    Join Date
    10-12-2013
    Location
    Krakow
    MS-Off Ver
    Excel 2003
    Posts
    2

    If cell=/ white then

    Hi guys, beginner to excel here.

    I am looking for a simple function which would give me back a value if the color of the cell where anything other than white.
    And by simple I mean one that will work while using the spreadsheet online through gmail's drive system :P

    So basically:
    A1=white, unaltered
    A2=blue, only background changed
    A3=red, only background changed


    I would then like to make a loop which would count the number of cells so something along the lines of
    B1=if(A1=/white,1,0)+if(A2=/white,1,0)+if(A3=/white,1,0)

    so B1 would give back 2 in this case. Searching the forum I only found some VBA solutions which I am not familiar with and dont know how to implement into the online spreadsheet. Hope I havent made it too complicated and that someone could help me or point me to a topic I could have missed.

    Thanks in advance
    Tom

  2. #2
    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,912

    Re: If cell=/ white then

    Here is a UDF to get the color code for a cell
    Please Login or Register  to view this content.
    Here is a UDF to get the color code for a font in a cell

    Please Login or Register  to view this content.
    You could then use a series of countifs to count the different color codes
    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

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If cell=/ white then

    You're going to be hard pressed to do that without VBA, and unable to run VBA online.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    10-12-2013
    Location
    Krakow
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: If cell=/ white then

    Thanks for the replies. I will try to get more acquainted with UDF or I will just be forced to make everyone at work change the cells and not just color them :P

    Thanks for the help

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If cell=/ white then

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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: 3
    Last Post: 07-07-2012, 02:34 AM
  2. Replies: 3
    Last Post: 11-17-2010, 04:28 AM
  3. Cell colors from white to red. Is it possible?
    By torch in forum Excel General
    Replies: 4
    Last Post: 06-07-2009, 05:16 PM
  4. Replies: 0
    Last Post: 07-15-2006, 07:50 AM
  5. White Space in a Cell
    By Gina O'Brien in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-17-2005, 10:05 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