If statement which references a cell and uses text if condition is true

s2dks

New Member
Joined
Oct 27, 2015
Messages
2
Hello,

I am trying to automate a footnote for a report. Here are the conditions:

If cell O13 does not equal 1, I want cell B39 to display the following text (including asterisk): **O13 denials are included in the table below.
Where the value of O13 is displayed.

If cell O13=1, I want cell B39 to display the following text (including asterisk): **1 denial is included in the table below.

I think a macros would be best but I have never written one before.

Currently I use this in cell B39: =CONCATENATE("** ",O13, " denials are included in table below as Intentional Program Violation in Sanction Reasons")
But that requires that every month I change "denial" to "denials" and "is" to "are" or vice versa.

TIA
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Place this formula in B39

=IF(O13>1,"**" & O13 & " denials are ","**" & O13 & " denial is ") & "included in the table below."
 
Upvote 0

Forum statistics

Threads
1,215,544
Messages
6,125,438
Members
449,225
Latest member
mparcado

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