Conditional Formatting based on 2 conditions

sunilbsrv2k

Board Regular
Joined
May 25, 2018
Messages
73
Hi all,

I have a table visual as below:
MetricForecastTargetActual
A
70%​
70%​
80%​
B
1000​
900​
C
5%​
6%

I have to give conditional formatting for "Actual" column...

however, the issue here is ... if Metric is "A", and Actual is greater than Target, it should be have Green up arrow... if its less, should be red down arrow

if Metric is C, and Actual is less than Target/Forecast, it should be Green up arrow... if its greater then Red down arrow...

So, the formatting is dependent on Metric and the corresponding Actual value against Forecast/Target.

Could you please help me in achieving this.

Thanks
Sunil B.S
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
you are also showing a B in metric - and no conditions
how many different metrics are there and what are the rules for each
What columns are we using and how many rows?
No Target for C, shown in example
Should be able to use a Rule with AND () for each condition
AND( A2="A", C2>B2) = green arrow
AND( A2="A", C2<B2) = RED arrow
What happens if Actual = Target ?
BUT may need an IF in the column with the arrows

Try using the add-in XL2BB as shown in my signature and on the menu - would help with showing sample spreadsheets here
 
Upvote 0
using ICON Sets
and a formula in E

=IF(OR(AND(A2="C",D2<C2),AND(A2="A", D2>C2)),1,0)

ICONS dont show in XL2BB as far as i can make so here is a screen shot too

Book3
ABCDE
1MetricForecastTargetActual
2A70%70%80% 
3B1000900 
4C5%6% 
5A50%40% 
6A40%50% 
7C40%50% 
8C50%40% 
Sheet1
Cell Formulas
RangeFormula
E2:E8E2=IF(OR(AND(A2="C",D2<C2),AND(A2="A", D2>C2)),1,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:E10Other TypeIcon setNO
 

Attachments

  • Screenshot 2021-04-06 at 12.58.19.png
    Screenshot 2021-04-06 at 12.58.19.png
    49.9 KB · Views: 3
Upvote 0
oh dear, sorry missed the forum you are in, unfortunately my version of excel for Mac does not include Power BI, so not used
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,096
Members
452,542
Latest member
Bricklin

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