Hey all,
I have been trying to create a formula to concat 7 cells in a row, skip blanks, and add some HTML tags to it. I know the formaula wont work below but I have put it back to basic and need help to get it to the next step. Details below:
=CONCAT("[ul][li]",IF(A2="","",A2),"[/li][li]",IF(B2="","",B2),"[/li][li]",IF(C2="","",C2),"[/li][li]",IF(D2="","",D2),"[/li][li]",IF(E2="","",E2),"[/li][li]",IF(F2="","",F2),"[/li][li]",IF(G2="","",G2),"[/li][/ul]")
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Feature1[/TD]
[TD]Feature2[/TD]
[TD]Feature3[/TD]
[TD]Feature4[/TD]
[TD]Feature5[/TD]
[TD]Feature6[/TD]
[TD]Feature7[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]Round[/TD]
[TD]Square[/TD]
[TD]Flat[/TD]
[TD]Edge[/TD]
[TD]Great[/TD]
[TD]Little[/TD]
[TD]Solid[/TD]
[TD][TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Round[/TD]
[TD]Square[/TD]
[TD]Flat[/TD]
[TD]Edge[/TD]
[TD]Great[/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"][ul][li]Round[/li][li]Square[/li][li]Flat[/li][li]Edge[/li][li]Great[/li][li][/li][li][/li][/ul][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Row 1 is correct as there are 7 features. Row 2 is wrong and it should finish after feature 5 and should look like this:
[TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"]
So at the start of every row is [ul][li] then between each feature is [/i][li] and then at the lend of the last feature it is [/li][/ul][/TD]
[/TR]
</tbody>[/TABLE]
Also, is there any recommendation on sites etc to learn the next level of excel including VBA's etc.
Many thanks in advance.
Chris
EDIT: i had to replace <> with [] due to formatting issues.
I have been trying to create a formula to concat 7 cells in a row, skip blanks, and add some HTML tags to it. I know the formaula wont work below but I have put it back to basic and need help to get it to the next step. Details below:
=CONCAT("[ul][li]",IF(A2="","",A2),"[/li][li]",IF(B2="","",B2),"[/li][li]",IF(C2="","",C2),"[/li][li]",IF(D2="","",D2),"[/li][li]",IF(E2="","",E2),"[/li][li]",IF(F2="","",F2),"[/li][li]",IF(G2="","",G2),"[/li][/ul]")
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Feature1[/TD]
[TD]Feature2[/TD]
[TD]Feature3[/TD]
[TD]Feature4[/TD]
[TD]Feature5[/TD]
[TD]Feature6[/TD]
[TD]Feature7[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]Round[/TD]
[TD]Square[/TD]
[TD]Flat[/TD]
[TD]Edge[/TD]
[TD]Great[/TD]
[TD]Little[/TD]
[TD]Solid[/TD]
[TD][TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"]
- [TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"][ul][li]Round[/li][li]Square[/li][li]Flat[/li][li]Edge[/li][li]Great[/li][li]Little[/li][li]Solid[/li][/ul][/TD]
[/TR]
</tbody>[/TABLE]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]Round[/TD]
[TD]Square[/TD]
[TD]Flat[/TD]
[TD]Edge[/TD]
[TD]Great[/TD]
[TD][/TD]
[TD][/TD]
[TD][TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"][ul][li]Round[/li][li]Square[/li][li]Flat[/li][li]Edge[/li][li]Great[/li][li][/li][li][/li][/ul][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Row 1 is correct as there are 7 features. Row 2 is wrong and it should finish after feature 5 and should look like this:
[TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"]
- [TABLE="width: 1514"]
<tbody>[TR]
[TD="width: 1514"][ul][li]Round[/li][li]Square[/li][li]Flat[/li][li]Edge[/li][li]Great[/li][/ul][/TD]
[/TR]
</tbody>[/TABLE]
So at the start of every row is [ul][li] then between each feature is [/i][li] and then at the lend of the last feature it is [/li][/ul][/TD]
[/TR]
</tbody>[/TABLE]
Also, is there any recommendation on sites etc to learn the next level of excel including VBA's etc.
Many thanks in advance.
Chris
EDIT: i had to replace <> with [] due to formatting issues.
Last edited: