+ Reply to Thread
Results 1 to 16 of 16

If a2 is not empty, color empty cells in b2:af2

  1. #1
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    If a2 is not empty, color empty cells in b2:af2

    Dear All,
    Would you ple help me for below formula request?

    if A2 is not empty, then make empty cells RED COLOR in B2:AF2, and apply this rule to A2:AF5000

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    485

    Re: If a2 is not empty, color empty cells in b2:af2

    Try applying the following CF rule to range B2:AF5000:

    =AND($A2<>"",B2="")

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If a2 is not empty, color empty cells in b2:af2

    Like this:

    =AND($A2<>"",B2="")

    Edit: Duhh !! Too slow, Kennedy.

    BtW, You'll probably need ; instead of ,
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-20-2017 at 01:35 PM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: If a2 is not empty, color empty cells in b2:af2

    fast, very fast. thx guys..
    by the way, why you added "$" only to A2?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If a2 is not empty, color empty cells in b2:af2

    If you didn't do that, then - when it looks in column B, it would look for a non-blank in B. The $ anchors it so that the first condition is always sought in column A, the second condition is sought in each individual cell.

    Anyhow..

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  6. #6
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: If a2 is not empty, color empty cells in b2:af2

    Thx Glenn, Thx Root_
    i feel lucky

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If a2 is not empty, color empty cells in b2:af2

    If you keep coming here with your problems... you usually will be. This place was a huge help to me when I was starting out...



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: If a2 is not empty, color empty cells in b2:af2

    Rule 08: Cross-posting Without Links

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    No further help to be offered, please, until the OP has complied with this request.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: If a2 is not empty, color empty cells in b2:af2

    Dear AliGW,
    I thought i should open new threads for different questions. No problem, i can continue writing here.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: If a2 is not empty, color empty cells in b2:af2

    Read my instructions carefully. Cross-posting is when you post the same query on OTHER forums without providing links here - you have posted on at least three other forums. You will get no further help here until you comply with these rules. Do not open duplicate posts to try to get round this rule.
    Last edited by AliGW; 08-21-2017 at 01:26 AM.

  11. #11
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: If a2 is not empty, color empty cells in b2:af2

    Dear all,
    i need your help for below formula for conditional formatting
    MAKE A2 GREEN IF B2:AG2 ARE FULL & ANY CELL VALUE IS NOT "?" and apply this to A2:AG5000

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If a2 is not empty, color empty cells in b2:af2

    Turkanet, is this Q also posted on other forums?

  13. #13
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: If a2 is not empty, color empty cells in b2:af2

    no glenn, i wrote only here.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If a2 is not empty, color empty cells in b2:af2

    =AND($B2:$AG2<>"",$B2:$AG2<>"?")

    see sheet. I manually highlighted some blanks and ? for checking
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    08-20-2017
    Location
    Istanbul, Turkiye
    MS-Off Ver
    2016
    Posts
    97

    Re: If a2 is not empty, color empty cells in b2:af2

    thx glenn really

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: If a2 is not empty, color empty cells in b2:af2

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] How to create a dynamic range if the last cell is empty and the columns have empty cells
    By peter_swe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2016, 11:18 PM
  2. Replies: 0
    Last Post: 08-03-2016, 07:01 PM
  3. [SOLVED] excel 2010 empty a cell according to other cells (without Deleting them just show empty)
    By pavlos_x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 01:46 PM
  4. Replies: 6
    Last Post: 08-29-2014, 08:31 AM
  5. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  6. Replies: 5
    Last Post: 05-13-2014, 10:19 AM
  7. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 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