Problem with a Concatenate IF staement

benprelf

New Member
Joined
Aug 28, 2014
Messages
34
Hi I was wondering if anyone could help me with this?

Code:
=IF("CreateCableEXM!D10"<>"MM",

CONCATENATE("The Cable is ",J18," ",D18," with a length of ",D20," mm which will then be terminated by ",J20," Connectors."),

IF("CreateCableEXM!D10"="MM",

CONCATENATE("The Cable is ",J18," ",D18," with a length of ",D20," mm which will then be terminated by ",J20," Connectors."," The Fibre Size Core/Cladding is ",J22,".")))

I want to be able to show the first IF statement up to the word "Connectors" if the cell "CreateCable!D10" does not equal "MM" . If the cell "CreateCable!D10" equals "MM" then I would like the second IF statement to show.
The code shows the first if statement but not the second, with no error messages. I already have "MM" selected.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Try removing the double quotes from around all instances of CreateCable!D10

You dont even need the second IF
 
Upvote 0
You could even shorten that to

=CONCATENATE("The Cable is ",J18," ",D18," with a length of ",D20," mm which will then be terminated by ",J20," Connectors")
&IF(CreateCableEXM!D10<>"MM",", the Fibre Size Core/Cladding is "&J22&".",".")
 
Upvote 0
Thanks again - although I needed to change the "<>" to "=" otherwise this worked the other way round :).
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,738
Members
449,094
Latest member
dsharae57

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