+ Reply to Thread
Results 1 to 15 of 15

Color Blank cells

  1. #1
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Color Blank cells

    i had a worksheet with data running into 30,000 rows.i want to color the blank cells according to the item type;
    For instance, if the item type is LIBRARY BOOKS;the column D(Reference 1) should not be empty or Blank.It should contain the word LIB.similiar for other types. I want excel to color the blank cell depending upon the item type.can i achieve this using normal worksheet functions or VBA is necessary.thanks in advance.
    Attached Files Attached Files
    THANKS
    ExcelKeechak

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Color Blank cells

    Use Conditional Formating
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Color Blank cells

    hmmmmmmmmmmmm.i feel its not the right choice.I want to color the blank cells based on ITEM TYPE.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Color Blank cells

    with your list of unique items in say col k
    select range d1:g? and apply conditiomal format
    formula is
    =AND($B2=$K$1,D2="")
    then for next item
    =AND($B2=$K$2,D2="")
    note you only get 3 conditions unless you are using 2007
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Color Blank cells

    now, i had more item types in my data. what to do then. Any VBA work around friends.

  6. #6
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Color Blank cells

    This is a double post. ExcelKeechak, please read the forum rules again.

    http://www.excelforum.com/excel-prog...ank-cells.html

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Color Blank cells

    not really - this did not start as a VBA post - the other is in the programming forum, I do believe however this thread should be marked by OP as solved.

  9. #9
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Color Blank cells

    Sorry if it hurts anybody. But i want the solution in both methods. What is wrong in it.???The solutions does not fulfill my requirements.

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Color Blank cells

    Quote Originally Posted by excelkeechak View Post
    Sorry if it hurts anybody. But i want the solution in both methods. What is wrong in it.???The solutions does not fulfill my requirements.
    You still have not supplied a better example, like I asked you in your other thread.
    Why ask for help, but then refuse to help us help you?

  11. #11
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Color Blank cells

    i had provided the original sheet as example.tell me how to color blanks cells for the respective account heads.
    Attached Files Attached Files

  12. #12
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Color Blank cells

    Quote Originally Posted by excelkeechak View Post
    i had provided the original sheet as example.tell me how to color blanks cells for the respective account heads.
    Okay, I see what is going on now, will look and get back to you on this, thanks

  13. #13
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Color Blank cells

    It took a while(many hours actually), as I was trying to use Autofilter to do this, and I couldn't get it to work.

    I ended up using a few loops and some prepping has to be done on the Worksheet as well, as you will we on Column O:R.

    It might not have been so difficult, but some rows will be completely blank, and just the columns for the specific heading need to be colored.

    Column O enter the Account heads to look for
    Column P enter the Starting column for that heading
    Column Q enter the Ending column for that heading
    Column R Select a color you want for that heading
    Attached Files Attached Files

  14. #14
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Color Blank cells

    Thanks very much Mr.davesexcel.This is exactly what i want.how do i modify the code so that the same code works for some other account heads & other dependent columns.thanks in advance.

  15. #15
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Color Blank cells

    Here is an updated workbook, the heading data is now in the other sheet, just add to the list in sheet,"Headings", don't forget start columns ,end columns, and the color you want.
    Column A =1, Column G = 7.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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