Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Conditional Format Using Formula By Referring To Another Sheet

Hybrid View

paul_pearson Conditional Format Using... 05-21-2013, 08:06 PM
Excel Fox Conditional format in... 05-21-2013, 10:54 PM
paul_pearson Thanks Excel Fox.That is... 05-22-2013, 02:59 PM
Excel Fox Using 4 named ranges for the... 05-22-2013, 07:44 PM
paul_pearson Thank you I added the 4... 05-22-2013, 08:28 PM
Excel Fox Yes, they are named ranges,... 05-22-2013, 07:31 PM
Excel Fox Here's how you do it... 05-22-2013, 08:40 PM
paul_pearson Excellent.Thank you What... 05-22-2013, 08:49 PM
Excel Fox You just need to copy the... 05-22-2013, 09:20 PM
paul_pearson Thanks Excel Fox ... 05-22-2013, 09:26 PM
paul_pearson Hi I started adding extra... 05-23-2013, 05:03 PM
Excel Fox It's all correct, except for... 05-23-2013, 11:11 PM
paul_pearson Thanks Excel Fox Much... 05-24-2013, 06:56 AM
paul_pearson Hi Excel Fox This is such... 05-24-2013, 01:21 PM
Excel Fox Note that the names in the... 05-24-2013, 01:39 PM
paul_pearson Hi I am not sure if the... 05-25-2013, 08:53 PM
Excel Fox Try this... Used... 05-25-2013, 11:25 PM
paul_pearson Hi Excel Fox Thanks works... 05-26-2013, 07:46 PM
Excel Fox Why do you want VBA when it's... 05-27-2013, 12:16 AM
Excel Fox It doesn't 'need' VBA to do... 05-27-2013, 04:31 PM
paul_pearson Hi Excel fox How would you... 05-27-2013, 05:30 PM
Excel Fox Moved post to... 05-27-2013, 08:45 PM
Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    13
    Hi

    I started adding extra cells in Sheet 2.I added Sparging and it works except for the Green colour in CF...The Yellow and Red CF works but Green does not....The formulas are all the same...what am i missing please?

    Thanks
    Paul
    Attached Files Attached Files

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    It's all correct, except for one small mistake. The order of the conditional statements is critical. So if you first check whether the value is smaller than a smaller number, it will be true for the larger number. Similarly, if you first check whether the value is larger than a large number, it will be true for a smaller number also. So the equation that has the >13 in the formula, and which has the green color, should be in top.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    13
    Thanks Excel Fox
    Much appreciated

  4. #4
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    13
    Hi Excel Fox

    This is such a good formula and will help me with other spreadsheets

    Could you please explain the formula - =SUMPRODUCT(LOOKUP(INDIRECT("rng"&C2),Vect,Rslt))> =5

    Also how does the formula know to look at the Name Manager as it is not on the Sheet anywhere the Vect & Rslt.They are only in the Name Manager

    Thanks for all your help

    Paul

  5. #5
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Note that the names in the name manager has a scope at Workbook level, and NOT at the sheet level. Any named defined as such will be accessible (or readable) from any worksheet. And to your question of how the formula looks at names manager, even though it is not on the sheet, well, I guess that's the beauty of a name object in Excel (MS designed it to work that way).

    By the way, you can actually use =SUM(LOOKUP(INDIRECT("rng"&B2),Vect,Rslt))>=13 since it is being used in a conditional format, and formulas used within conditional formats will work as an array formula based on how it is written.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  6. #6
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    13
    Hi

    I am not sure if the following is possible

    1. Sheet 1 has the operators names with each category either a "G","S"," ". If I enter 1 of these names in Sheet 2 Cell B2 can it then look at the persons name from Sheet 1 and fill in each category with a colour depending on how many points for each category. Currently fills colour using CF for each category
    2. Can this be done with formula or does this need to be done with VBA

    Thanks

    Paul
    Attached Files Attached Files

  7. #7
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Try this...

    Used conditional format formula =SUMPRODUCT(LOOKUP(OFFSET(INDIRECT("rng"&B3),rngNameIndex,0),Vect,Rslt))>=13 where rngNameIndex is the position of the selected name from the list of names
    Attached Files Attached Files
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  8. #8
    Senior Member
    Join Date
    Mar 2013
    Posts
    107
    Rep Power
    13
    Hi Excel Fox

    Thanks works great

    Is post #17 possible with VBA code ..

    Thanks

    Paul

  9. #9
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Why do you want VBA when it's working fine with Conditional Format?
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  10. #10
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    It doesn't 'need' VBA to do any of those.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

Similar Threads

  1. Red Green Amber Three Color Conditional Format
    By paul_pearson in forum Excel Help
    Replies: 1
    Last Post: 03-07-2013, 06:50 PM
  2. Replies: 2
    Last Post: 02-06-2013, 12:00 PM
  3. Custom Format Conditional With Square Bracket
    By Slotmachineguy in forum Excel Help
    Replies: 2
    Last Post: 11-09-2012, 11:42 PM
  4. Conditional Format Based On Percentage Variance
    By srizki in forum Excel Help
    Replies: 3
    Last Post: 10-09-2012, 03:28 AM
  5. Replies: 4
    Last Post: 07-27-2012, 08:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •