+ Reply to Thread
Results 1 to 17 of 17

Excel If/Then Multi-cell conditional formatting

  1. #1
    Registered User
    Join Date
    11-26-2006
    Posts
    7

    Question Excel If/Then Multi-cell conditional formatting

    Hello everyone, and happy Sunday.

    I have an interesting problem on my hands. I work for a gas station, and for our cigg orders, we fax an excel speadsheet to SAMS CLUB. I recently have done some modifications by applying conditional formating to indicate negitive numbers and zeros, however, I am trying to find a way to blank out 2 adjacent cells when a cell = 0.

    Here is a sample:

    Order# Desc #to order

    921934 (brown) Bx 0

    The Zero is already whited out in my sheet, however I am trying to find a way to make the Order Number and Desc. be whited out also when the Number to order = 0

    If anyone has any ideas on how to accomplish this I would appreciate it.

    -Lyoko Cyrus Freasion

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    You use Conditional Formatting as well
    if the reference cell is A1, position your self on the cell to "blank out"

    select Formula Is
    =$a$1=0
    Format Patterns White

    HTH
    Carim

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Using Conditional Formatting

    Select Columns then
    Format > Conditional formatting

    Say data in Col A and B enter this

    =$C2=""

    and format cell fonts white

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    11-26-2006
    Posts
    7
    So wait. Which dropdown do I use? Equal to?

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See attached for an example of conditional formatting

    http://www.contextures.com/xlCondFormat03.html#Errors



    VBA Noob

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    I think VBA Noob will agree with me ...
    Despite the fact you can achieve your goal with conditional formatting,
    it would be more "reasonable" to go the following way ...

    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    HTH
    Carim

  7. #7
    Registered User
    Join Date
    11-26-2006
    Posts
    7
    That didn't help. When I try to enter that formula, it says there is an error.

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Well is your separator ; instead of , ... ?

    HTH
    Carim

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Carim,

    Easier when they post the example

    This 2nd guessing gets a bit boring at times

    VBA Noob

  10. #10
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    VBA Noob,

    Could'nt agree more ...


  11. #11
    Registered User
    Join Date
    11-26-2006
    Posts
    7
    Alright. Here is what it looks like.
    Attached Images Attached Images

  12. #12
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Ok then ...

    In cell A5, use conditional formatting
    in the area Condition1 select Formula Is
    in the formula area type following
    Please Login or Register  to view this content.
    then select Format Fonts White

    Is it working as expected ?

    HTH
    Carim
    Last edited by Carim; 11-26-2006 at 01:45 PM.

  13. #13
    Registered User
    Join Date
    11-26-2006
    Posts
    7
    Ok. That worked for column A. Now what about B? It doesn't fill correctly.

  14. #14
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    In order to apply the same conditions to cell B5 ...
    repeat the same process ...¨
    the only difference is a small change in the formula
    Please Login or Register  to view this content.
    As far as extending these conditions to all your data, use the Format Painter
    ( the icon which looks like a yellow brush ...)

    HTH
    Carim

  15. #15
    Registered User
    Join Date
    11-26-2006
    Posts
    7
    Ok, that worked, now one last question, is there a way to make a list on a third sheet that only lists the Non-Whitedout cells? Or is that too complex?

  16. #16
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad your problem is fixed.

    Thanks for the feedback

    Carim

  17. #17
    Registered User
    Join Date
    11-26-2006
    Posts
    7
    So is there a way to automaticly make a form/list of the data in the non-whited out cells on another sheet, So that it is grouped together and whatnot?

+ 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