Merge data from multiple cell with the conditiion that only if the cell has data in it as well as add HTML list element

yarajani

New Member
Joined
May 22, 2019
Messages
1

<tbody>
</tbody>


This is working fine.

=CONCATENATE(
IF(E5<>"", ""&$E$3&CHAR(160)&$E$4&CHAR(160)&E5&"
",""),
IF(F5<>"",""&$F$3&CHAR(160)&$F$4&CHAR(160)&F5&"
",""),
IF(G5<>"",""&$G$3&CHAR(160)&$G$4&CHAR(160)&G5&"
",""),
IF(H5<>"",""&$H$3&CHAR(160)&$H$4&CHAR(160)&H5&"
",""),
IF(I5<>"",""&$I$3&CHAR(160)&$I$4&CHAR(160)&I5&"
",""),
IF(J5<>"",""&$J$3&CHAR(160)&$J$4&CHAR(160)&J5&"
",""),
IF(K5<>"",""&$K$3&CHAR(160)&$K$4&CHAR(160)&K5&"
",""),
IF(L5<>"",""&$L$3&CHAR(160)&$L$4&CHAR(160)&L5&"
",""),
IF(M5<>"",""&$M$3&CHAR(160)&$M$4&CHAR(160)&M5&"
",""),
IF(N5<>"",""&$N$3&CHAR(160)&$N$4&CHAR(160)&N5&"
",""),
IF(O5<>"",""&$O$3&CHAR(160)&$O$4&CHAR(160)&O5&"
",""),
IF(P5<>"",""&$P$3&CHAR(160)&$P$4&CHAR(160)&P5&"
",""))

Need to add range from line 5 to line 17 in the result. something like this

IF(E5<>"", ""&$E$3&CHAR(160)&$E$4&CHAR(160)&E5:E18&"
",""),

Not getting any error messge but the result show first line E5
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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