IF Formula not screening the result of =cell&cell

Ana Wisbeck

New Member
Joined
Jun 27, 2011
Messages
8
Hello everyone!

i have a list of two columns with long IF formulas and I would like to merge the results of these columns and format it. I do not know how many results I will get so I have a few extra cells with formulas returning Blank values if there is no data.
Here's an example:

Name Surname Final Format
John Smith (Smith, John) ----> ="("&B1&", "&A1"&")"
Jane Doe (Doe, Jane)
( )
So when i drag the ="("&B1&", "&A1"&")" formula down if the values are blank I get ( ). I would like this cell to be blank as well. I have tried =if("("&B1&", "&A1"&")"="( )"," ","("&B1&", "&A1"&")") and that does not work.

Any other suggestions on how I can get this done?

Thanks a lot in advance!

Ana
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hello everyone!

i have a list of two columns with long IF formulas and I would like to merge the results of these columns and format it. I do not know how many results I will get so I have a few extra cells with formulas returning Blank values if there is no data.
Here's an example:

Name Surname Final Format
John Smith (Smith, John) ----> ="("&B1&", "&A1"&")"
Jane Doe (Doe, Jane)
( )
So when i drag the ="("&B1&", "&A1"&")" formula down if the values are blank I get ( ). I would like this cell to be blank as well. I have tried =if("("&B1&", "&A1"&")"="( )"," ","("&B1&", "&A1"&")") and that does not work.

Any other suggestions on how I can get this done?

Thanks a lot in advance!

Ana
Try something like...

=IF(A1&B1="","","("&B1&", "&A1"&")")
 
Upvote 0
Oh, that was such a simple one! Works beatifully. I tried so many combinations before asking but I guess I missed out that one.

thanks so much!

Ana
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,100
Members
452,379
Latest member
IainTru

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