Excel conditional formatting if two condition satisfies

adpatel

New Member
Joined
May 30, 2019
Messages
42
Office Version
  1. 2016
Platform
  1. Windows
I have excel sheet, which has value stored as price in "D" column

now, I want to highlight particular cell in column "D" which satisfies below 2 conditions

  1. XFB9<=0.02
  2. which cell has highest value among cells that has fulfilled above condition (column "D")
issue I find here in writing formula is, to define range Because, how do I define range to get highest value from that cell which fulfills no. 1 condition?, because it varies time to time

I have written following formula in conditional formatting for no. 1 condition

=XFB9<=0.02
Kindly help with your solution on this issue, any help highly appriciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You might need to give a clearer impression of your sheet layout, XFB9 is a single cell which is unlikely to be used for anything. There is no indication of how that relates to column D in your post.
 
Upvote 0
Untitled.png



Microsoft office version 2016
 
Upvote 0
Allowing for data from rows 9 to 100, try.

=AND($XFB9<=0.02,D9=AGGREGATE(14,6,D$9:D$100/($XFB$9:$XFB$100<=0.02),1))
 
Upvote 0
for cell D9, condition of 2% to be checked in cell XFB9 for cell D10 it's to be checked in cell XFB10, for D11 check in XFB11 and so on....
 
Upvote 0
Will this work on excel 2007 as well? I have checked on excel 2016 it's working fine! you are genius bro.
 
Upvote 0
I have tried in excel 2007, but in that version it's not working, if you can help on this as well, I would be grateful to you.
 
Upvote 0
Will this work on excel 2007 as well?
It will work with 2010 or newer, this version should work with 2007 as well.

=AND($XFB9<=0.02,D9=LARGE(IF($XFB$9:$XFB$100<=0.02,D$9:D$100),1))
 
Upvote 0
It will work with 2010 or newer, this version should work with 2007 as well.

=AND($XFB9<=0.02,D9=LARGE(IF($XFB$9:$XFB$100<=0.02,D$9:D$100),1))
It's working excel 2007, thank you so much, you made my day!
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,460
Members
448,965
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top