Using Concatenate and If statements togehter

TMCINNIS

New Member
Joined
Aug 26, 2015
Messages
29
I would like to use an IF statement that will insert "No Comments Added" string where the concatenated cell is empty. Is this possible?

I need to stream line some worksheet process building reports for management. I only have one stumbling block left regarding the following formula:

=CONCATENATE("OCTOBER-",OCT!B51,"// NOVEMBER-",NOV!B51,"// DECEMBER-",DEC!B51,"// JANUARY-",JAN!B51,"// FEBRUARY-",FEB!B51,"// MARCH-",MAR!B51,"// APRIL-",APR!B51,"// MAY-",MAY!B51,"// JUNE-",JUN!B51,"// JULY-",JUL!B51,"// AUGUST-",AUG!B51,"// SEPTEMBER-",SEP!B51)

The purpose is to combine text fields containing notes from monthly reporting spreadsheets for on a roll up report. The // are visual separations of monthly data.

However the problem is that some months have no data. So the string returned is as follows below. I would like to use an IF statement that will insert "No Comments Added" string where the concatenated cell is empty.

OCTOBER-// NOVEMBER-Continuing coordination with ABC Communities to increase installations.// DECEMBER-// JANUARY-// FEBRUARY-// MARCH-// APRIL-// MAY-// JUNE-// JULY-// AUGUST-// SEPTEMBER-Installed a sizable commercial system for ABC Communities.

Is this possible?
Thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I would like to use an IF statement that will insert "No Comments Added" string where the concatenated cell is empty. Is this possible?

I need to stream line some worksheet process building reports for management. I only have one stumbling block left regarding the following formula:

=CONCATENATE("OCTOBER-",OCT!B51,"// NOVEMBER-",NOV!B51,"// DECEMBER-",DEC!B51,"// JANUARY-",JAN!B51,"// FEBRUARY-",FEB!B51,"// MARCH-",MAR!B51,"// APRIL-",APR!B51,"// MAY-",MAY!B51,"// JUNE-",JUN!B51,"// JULY-",JUL!B51,"// AUGUST-",AUG!B51,"// SEPTEMBER-",SEP!B51)

The purpose is to combine text fields containing notes from monthly reporting spreadsheets for on a roll up report. The // are visual separations of monthly data.

However the problem is that some months have no data. So the string returned is as follows below. I would like to use an IF statement that will insert "No Comments Added" string where the concatenated cell is empty.

OCTOBER-// NOVEMBER-Continuing coordination with ABC Communities to increase installations.// DECEMBER-// JANUARY-// FEBRUARY-// MARCH-// APRIL-// MAY-// JUNE-// JULY-// AUGUST-// SEPTEMBER-Installed a sizable commercial system for ABC Communities.

Is this possible?
Thanks.

Try this:

=CONCATENATE("OCTOBER-",IF(OCT!B51<>"",OCT!B51,"No Comments Added"),"// NOVEMBER-",IF(NOV!B51<>"",NOV!B51,"No Comments Added"),"// DECEMBER-",IF(DEC!B51<>"",DEC!B51,"No Comments Added"),"// JANUARY-",IF(JAN!B51<>"",JAN!B51,"No Comments Added"),"// FEBRUARY-",IF(FEB!B51<>"",FEB!B51,"No Comments Added"),"// MARCH-",IF(MAR!B51<>"",MAR!B51,"No Comments Added"),"// APRIL-",IF(APR!B51<>"",APR!B51,"No Comments Added"),"// MAY-",IF(MAY!B51<>"",MAY!B51,"No Comments Added"),"// JUNE-",IF(JUN!B51<>"",JUN!B51,"No Comments Added"),"// JULY-",IF(JUL!B51<>"",JUL!B51,"No Comments Added"),"// AUGUST-",IF(AUG!B51<>"",AUG!B51,"No Comments Added"),"// SEPTEMBER-",IF(SEP!B51<>"",SEP!B51,"No Comments Added"))
 
Upvote 0
Try this:

=CONCATENATE("OCTOBER-",IF(OCT!B51<>"",OCT!B51,"No Comments Added"),"// NOVEMBER-",IF(NOV!B51<>"",NOV!B51,"No Comments Added"),"// DECEMBER-",IF(DEC!B51<>"",DEC!B51,"No Comments Added"),"// JANUARY-",IF(JAN!B51<>"",JAN!B51,"No Comments Added"),"// FEBRUARY-",IF(FEB!B51<>"",FEB!B51,"No Comments Added"),"// MARCH-",IF(MAR!B51<>"",MAR!B51,"No Comments Added"),"// APRIL-",IF(APR!B51<>"",APR!B51,"No Comments Added"),"// MAY-",IF(MAY!B51<>"",MAY!B51,"No Comments Added"),"// JUNE-",IF(JUN!B51<>"",JUN!B51,"No Comments Added"),"// JULY-",IF(JUL!B51<>"",JUL!B51,"No Comments Added"),"// AUGUST-",IF(AUG!B51<>"",AUG!B51,"No Comments Added"),"// SEPTEMBER-",IF(SEP!B51<>"",SEP!B51,"No Comments Added"))


Thank you. Worked like a charm.
 
Upvote 0

Forum statistics

Threads
1,216,076
Messages
6,128,670
Members
449,463
Latest member
Jojomen56

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