IF statements and concatenation of conditions

Bedlam

New Member
Joined
Feb 18, 2020
Messages
49
Office Version
  1. 365
Platform
  1. Windows
I'm trying to create a RAG status for dozens of metrics. Ideally I would like an IF statement that takes account of signage in B and D in combination with values in C and E to assess the value in G to output in H. However it seems you cannot concatenate the signage and values as it thinks the full condition is a string rather than a logical test. Is there a workaround?
=if(g2&b2&c2 ... ) does not work
1712132751976.png
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Will this work for you ?

20240403 Countifs Concatenation Bedlam.xlsx
ABCDEFGH
1MetricGreen ThresholdGreen ThresholdRed ThresholdRed ThresholdActualRAG
21<=5%>=11%10%Amber
32>=90%<=75%90%Green
43>=90%<=79%78%Red
Sheet1
Cell Formulas
RangeFormula
H2:H4H2=IF(COUNTIFS(G2,B2&C2),"Green",IF(COUNTIFS(G2,D2&E2),"Red","Amber"))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,812
Messages
6,181,091
Members
453,021
Latest member
Justyna P

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