+ Reply to Thread
Results 1 to 14 of 14

Compare Ranges

  1. #1
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Compare Ranges

    He guys, I attached an example. How can to make reference to more ranges?
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Compare Ranges

    Hi, why don't you explain a little bit more or doe we have to download the file to see what you mean ?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Re: Compare Ranges

    download the file, please

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Compare Ranges

    Maybe this ?
    You question still is not clear but maybe this is what you mean.

    Change the value in the diameter of change the f7 to see
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Re: Compare Ranges

    i want to color every cells (C2:L12) with red is the value is < 3, with green if the value is <3 and <=6, and with yellow if the value is > 6.

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Compare Ranges

    Then you ask that, that was not mentioned in the file.
    But, you have this rule now all you need to do is add the three other rules vor the exceptions.

  7. #7
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Re: Compare Ranges

    is not working to reffer to Range("B2:L12")

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Compare Ranges

    NO it will not work referring to B2:L12, you asked for C2:L12

    If the answer is not correct then you should evaluate the question first.
    A correct answer can only be given if the question has been correctly formulated
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Re: Compare Ranges

    yes, C2:L12

  10. #10
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Compare Ranges

    Well, did you check and test the attached file?

  11. #11
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Re: Compare Ranges

    yes, is not ok. in every cell i want to collor. for example, in a row, if A2 = 4 and C2 = 3, D2 = 8, E2 = 5, AND MY INTERVAL IS (3-6), THEN C2 COLLOR = RED, E2 = GREEN, D2 = YELLOW

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Compare Ranges

    That was not what you said in your question. The questions as you stated it was answered but ...
    So:
    you see the conditional formatting rules I wrote, you can adapt them.
    Other option.
    Upload the file again without the formatting and below the same table colored manually with the conditions you want.
    Then I will look.

  13. #13
    Forum Contributor
    Join Date
    08-21-2018
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    178

    Re: Compare Ranges

    i upload the new file
    Attached Files Attached Files

  14. #14
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Compare Ranges

    YOU could have done this yourself, if you had made at least some effort to see what I had earlier attached, this is exactly the same except that you specified different conditions.
    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)

Similar Threads

  1. [SOLVED] Compare two ranges
    By mattress58 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-23-2014, 08:15 AM
  2. compare two ranges
    By anilg0001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2013, 03:20 AM
  3. [SOLVED] Compare two Ranges
    By jbmerrel in forum Excel General
    Replies: 5
    Last Post: 04-06-2012, 03:04 PM
  4. Compare Two Ranges
    By macro_beta in forum Excel General
    Replies: 6
    Last Post: 10-04-2010, 10:10 AM
  5. Excel 2007 : Compare two ranges
    By ccpsc in forum Excel General
    Replies: 2
    Last Post: 09-09-2010, 04:11 AM
  6. compare min and max ranges
    By carylee557 in forum Excel General
    Replies: 2
    Last Post: 11-03-2008, 11:16 PM
  7. Compare two ranges in a worksheet
    By Bhavtosh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-22-2005, 10:06 PM

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