Only do formula if cell contains something

LondonEddie

New Member
Joined
Jun 1, 2011
Messages
4
Hi there,

I've got the following forumla which is working fine, however I want to be able to copy it all the way down the worksheet, but only populate the cell it's in if cell C7 has something in it, i.e. not blank so that it doesn't look untidy, is this possible?

=IFERROR(CONCATENATE(C2,B7,D2,C7),"")

Thanks,
Eddie.
 
You could also get rid of the http:// first and then append it, then either way it will work:

=IF(C9="","","http://"&SUBSTITUTE(B9,"http://","")&$B$5&C9)

isn't that the same as my original suggestion in #6? :confused:
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
No, you are creating 2 possible occurances of http:// and then getting rid of the second one, I am getting rid of the http:// in the first place and then adding it.
 
Upvote 0
No, you are creating 2 possible occurances of http:// and then getting rid of the second one, I am getting rid of the http:// in the first place and then adding it.

I think you're looking at #8 not #6, wan't sure if you had something I missed and a typo made it look the same as my original.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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