Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF Statement within a Text Box

Hi,

I've used the below formula in a textbox

 

=If(ActivityType='RiskProgressRAG' and Qty = 'Green','Green',If(ActivityType='RiskProgressRAG' and Qty = 'Red', 'Red','Blank'))

I'm hoping that this will give me the Text Green, Red or Blank. However it only works when i select the ActivityType, otherwise it always returns blank. Is there a formula that will give me the result without having to make the selection within the ActivityType Field.

Many Thanks

B


1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try like:

=If(Max( If(ActivityType='RiskProgressRAG' and Qty = 'Green',1,0))=1, 'Geen'),

If(Max( If(ActivityType='RiskProgressRAG' and Qty = 'Red',1,0))=1, 'Red'), 'Blank'))

View solution in original post

3 Replies
hannan_t
Partner - Contributor III
Partner - Contributor III

Where you need the colour green you have ti mention the RGB Value of green

=If(ActivityType='RiskProgressRAG' and Qty = 'Green', RGB(0,127,0), If(ActivityType='RiskProgressRAG' and Qty = 'Red', RGB(255,0,0), RGB(255,255,255))

tresesco
MVP
MVP

Try like:

=If(Max( If(ActivityType='RiskProgressRAG' and Qty = 'Green',1,0))=1, 'Geen'),

If(Max( If(ActivityType='RiskProgressRAG' and Qty = 'Red',1,0))=1, 'Red'), 'Blank'))

Not applicable
Author

Thankyou Very Much