Results 1 to 4 of 4

Entering Code for [If cell (a1) is white, cell (a2:a3) is yellow and cell (a4) is white]

Threaded View

tedong Entering Code for [If cell... 07-06-2012, 09:31 AM
martindwilson Re: Entering Code for [If... 07-06-2012, 03:29 PM
tedong Re: Entering Code for [If... 07-07-2012, 02:34 AM
FDibbins Re: Entering Code for [If... 07-06-2012, 04:40 PM
  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Entering Code for [If cell (a1) is white, cell (a2:a3) is yellow and cell (a4) is white]

    Hi there,
    I have a situation and I need help.
    Pardon my English for it is my second language.

    Situation:
    Given (23R x 4C) x 1000 where each cell contain random numbers and only two (2) background color (yellow and green).
    I need a solution (code or any resolution) to all of these conditions:

    Conditions:
    1. If cell (a1) is yellow, cell (a2:a4) is white then cell (a1:a4) is white.
    2. If cell (a1) is white, cell (a2) is yellow, cell (a3:a4) is white then cell (a2:a4) is white.
    3. If cell (a1:a2) is white, cell (a3) is yellow, then cell (a1:a4) is white.
    4. If cell (a1:a3) is white and cell (a4) is yellow then cell (a1:a4) is white.
    5. If cell (a1:a2) is yellow then cell (a1:a4) remain the same color.
    6. If cell (a1) is yellow, cell (a2) is white, cell (a3) is yellow then cell (a1:a4) remain the same color.
    7. If cell (a1) is yellow, cell (a2:a3) is white and cell (a4) is yellow then cell (a1:a4) remain the same color.
    8. If cell (a1) is white, cell (a2:a3) is yellow and cell (a4) is white then cell (a1:a4) remain the same color.
    9. If cell (a1) is white, cell (a2) is yellow, cell (a3) is white and cell (a4) is yellow then cell (a1:a4) remain the same color.
    10. If cell (a1:a2) is white and cell (a3:a4) is yellow then cell (a1:a4) remain the same color.
    11. If cell (a1:a3) is yellow then cell (a1:a4) remain the same color.
    12. If cell (a2:a3) is yellow, cell (a3) is white and cell (a4) is yellow then cell (a1:a4) remain the same color.
    13. If cell (a1) is yellow, cell (a2) is white and cell (a3:a4) is yellow then cell (a1:a4) remain the same color.
    14. If cell (a1) is white and cell (a2:a4) is yellow then cell (a1:a4) remain the same color.
    15. If cell (a1:a4) is yellow then cell (a1:a4) remain the same color.

    (Take note that all of these conditions are in yellow and white background)

    Reverse Situation: Another condition is taking the entire conditions above and changing yellow to green and the results are the same which is: cell (a1:a4) remain the same color.

    16. If cell (a1) is yellow and cell (a2) is green then cell (a1:a4) remain the same color
    17. If cell (a1) is yellow, cell (a2) is white, cell (a3) is green and cell (a4) is white then cell (a1:a4) remain the color.
    18. If cell (a1) is yellow, cell (a2:a3) is white and cell (a4) is green then cell (a1:a4) remain the same color.
    19. If cell (a1) is white, cell (a2) is yellow, cell (a3) is green and cell (a4) is white then cell (a1:a4a) remain the same color.
    20. If cell (a1) is white, cell (a2) is yellow, cell (a3) is white and cell (a4) is green then cell (a1:a4) remain the same color.
    21. If cell (a1) is green, cell (a2) is yellow and cell (a3:a4) is white then cell (a1:a4) remain the same color.
    22. If cell (a1:a2) is white, cell (a3) is yellow and cell (a4) is green then cell (a1:a4) remain the same color.
    23. If cell (a1) is green, cell (a2) is white, cell (a3) is yellow and cell (a4) is white then cell (a1:a4) remain the same color.
    24. If cell (a1) is white, cell (a2) is green, cell (a3) is yellow and cell (a4) is white then cell (a1:a4) remain the same color.
    25. If cell (a1) is green, cell (a2:a3) is white and cell (a4) is yellow then cell (a1:a4) remain the same color.
    26. If cell (a1) is white, cell (a2) is green, cell (a3) is white and cell (a4) is yellow then cell (a1:a4) remain the same color.
    27. If cell (a1:a2) is white, cell (a3) is green and cell (a4) is yellow then cell (a1:a4) remain the same color.
    28. If cell (a1:a2) is yellow, cell (a3) is green and cell (a4) is white then cell (a1:a4) remain the same color.
    29. If cell (a1:a2) is yellow, cell (a3) is white and cell (a4) is green then cell (a1:a4) remain the same color.
    30. If cell (a1) is yellow, cell (a2) is white, cell (a3) is yellow and cell (a4) is green then cell (a1:a4) remain the same color.
    31. If cell (a1) is white, cell (a2:a3) is yellow and cell (a4) is green then cell (a1:a4) remain the same color.
    32. If cell (a1) is green, cell (a2) is white, cell (a3:a4) is yellow then cell (a1:a4) remain the same color.
    33. If cell (a1) is yellow, cell (a2) is green, cell (a3) is white and cell (a4) is yellow then cell (a1:a4) remain the same color.
    34. If cell (a1:a3) is yellow and cell (a4) is green then cell (a1:a4) remain the same color.
    35. If cell (a1:a2) is yellow, cell (a3) is green and cell (a4) is yellow then cell (a1:a4) remain the same color.
    36. If cell (a1) is yellow, cell (a2) is green and cell (a3:a4) is yellow then cell (a1:a4) remain the same color.
    37. If cell (a1) is green and cell (a2:a4) is yellow then cell (a1:a4) remain the same color.

    Reverse Situation: Another condition is taking the entire conditions above and interchange the two different color (yellow to green) and the result is the same which is: cell (a1:a4) is white.

    I hope to make things clearer, I have attached a Microsoft Excel file for you to identify the problems.
    Attached Files Attached Files

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