Value if an if statement is false

K

kpt

I need to know if there is a way that when an if statement is either true or
false the value returned can contain a mixture of text and a cell reference.
Example =IF(A12=4,"Mdl =" cell reference here, value if false)
 
C

Christopher Robin

You can concatenate any number of cell references and text by using the
ampersand (&).

I.E. =IF(A12=4, "MDL=" & B12, "value if false")
 
M

Mike H

Hi,

I don't understand your example but the answer is yes you can have a mixture
of text and a cell reference, you do it with the & (ampersand) sign

=IF(A12=4,"Mdl =" & A13, "Something else")

Mike
 
K

kpt

Thank you so much

Mike H said:
Hi,

I don't understand your example but the answer is yes you can have a mixture
of text and a cell reference, you do it with the & (ampersand) sign

=IF(A12=4,"Mdl =" & A13, "Something else")

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top