+ Reply to Thread
Results 1 to 13 of 13

how to conditional format a cell that captures a certain criteria in an IF formula

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    how to conditional format a cell that captures a certain criteria in an IF formula

    Hi,

    So I have this formula in my spreadsheet.

    =IF(D7=0,0,IFERROR(1/(1/VLOOKUP($A7,'C - CC'!$A:$P,11,0)),D7+E$4))

    And I'm just looking for a way to conditional format the cells where this criteria is true 1/(1/VLOOKUP($A7,'C - CC'!$A:$P,11,0)

    Can someone help me with the conditional format formula to use?

    Thank you!
    Last edited by MyStix01; 04-13-2018 at 02:47 AM. Reason: To specify the title

  2. #2
    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,978

    Re: Conditional formatting

    Welcome to the forum! Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should describe your problem, not your anticipated solution.
    • Use terms appropriate to a Google search - poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies 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.

  3. #3
    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,978

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    That's better - thanks.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    May be, You can add Isnumber Logic with the above formula in conditional formatting rule,

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Hi Ankur,

    Thanks for the response, it didnt worked though.

    For easy reference, kindly see attached file.

    Basically, the formula in cell E7:I11 is looking up if whether the dates are available in sheet C-CC.

    And if they're not, then instead the formula manually calculates the date using the data from cell E4:I4.

    And what I want to happen is to highlight those cells that were manually calculated using conditional formatting.

    Hope that makes sense. Appreciate your assistance. Thank you!
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Try in conditional formatting. Select E7:I11 and press Alt-O-D-> New Rule-Choose Use formula to determine which cell need to format-put below formula in formula section and choose format then okk

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Note change header in sheet C-CC P1=PCI
    Last edited by shukla.ankur281190; 04-13-2018 at 04:07 AM.

  7. #7
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Wow, it worked perfectly! Thank you so much!

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Happy to help you thanks for feedback

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

  9. #9
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Hi Ankur,

    Sorry if I have to changed it back to Unsolved, just wondering if you can twitch it a little. Kindly see attached file.

    As my spreadsheet is meant to autopopulate everything and highlight details, I have to copy the conditional format formula all the way down.

    And currently, what's happening is, the rows with no details are getting highlighted too when it should not. Sorry, I wasn't able to specify this before.

    Appreciate your help once again. Thank you thank you thank you so much!
    Attached Files Attached Files

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    In such case you can try in conditional formatting =IF(A7="",FALSE,ISERROR(1/(1/VLOOKUP($A7,'C - CC'!$A:$P,MATCH(E$2,'C - CC'!$A$1:$P$1,0),0))))

  11. #11
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Quote Originally Posted by shukla.ankur281190 View Post
    In such case you can try in conditional formatting =IF(A7="",FALSE,ISERROR(1/(1/VLOOKUP($A7,'C - CC'!$A:$P,MATCH(E$2,'C - CC'!$A$1:$P$1,0),0))))
    Hi Ankur,

    Not sure what's wrong in my sheet but it's not currently working. The formula is giving me the same outcome

  12. #12
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Check the attached file.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: how to conditional format a cell that captures a certain criteria in an IF formula

    Quote Originally Posted by shukla.ankur281190 View Post
    Check the attached file.
    Just got to lock $A7 and it's working perfectly now. Thank you so much for all the help!

+ 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] Override conditional formatting (in general, without changing the conditional formatting)
    By Stormin' in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2017, 07:15 AM
  2. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  3. Conditional Formatting Removing Previous Conditional Formatting?
    By CravingGod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2016, 01:02 PM
  4. Replies: 6
    Last Post: 01-08-2016, 06:44 PM
  5. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  6. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  7. Replies: 3
    Last Post: 05-15-2012, 04:13 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