+ Reply to Thread
Results 1 to 4 of 4

Background of cell to change depending on two conditions

  1. #1
    Registered User
    Join Date
    03-30-2010
    Location
    Warwickshire
    MS-Off Ver
    Excel 2003
    Posts
    20

    Background of cell to change depending on two conditions

    Dear all,

    I would like the background of cells I13 to I29 to change if:
    1) they are empty AND
    2) the 1st digit of their corresponding cell in column A is less than 3.

    Could someone please give me a code for this. I have tried to use conditional formatting but I cannot get both conditions together.

    Could someone help please.

    PS. I do not mind what colour the cell becomes as I guess it will be defined by a number which I can change if necessary.

    Thank you in advance for your help.

    Regards,
    Cdmg
    Last edited by cdmg; 03-31-2010 at 11:18 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Background of cell to change depending on two conditions

    Use this in CF:

    =AND(--LEFT($A13,1)<3,$I13="")
    Last edited by zbor; 03-31-2010 at 10:25 AM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Background of cell to change depending on two conditions

    Select I13:I29 and invoke Conditional Formatting applying formula:

    =AND(I13="",LEFT(A13)+0<3)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    03-30-2010
    Location
    Warwickshire
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Background of cell to change depending on two conditions

    Thank you to both ZBOR and NBVC. This is great!

+ 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