Ignore Empty Cells?! Help!

Alex Caldecott

New Member
Joined
Nov 15, 2023
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Very fresh Excel user here, sorry.

Currently working on a CSV import for our ecommerce site.

I have a selection of columns that contain text and I'm trying to make these into a list of bullet points.

The columns in my spread sheet are U, V, W, X, Y, Z, AA, AB, AC, AD, AE, AF & AG and the formula I'm using is this -

=CONCATENATE("<ul><li>",U2,"</li><li>",V2,"</li><li>",W2,"</li><li>",X2,"</li><li>",Y2,"</li><li>",Z2,"</li><li>",AA2,"</li><li>",AB2,"</li><li>",AC2,"</li><li>",AD2,"</li><li>",AE2,"</li><li>",AF2,"</li><li>",AG2,"</li></ul>")


The issue I have is that some of the cells are blank and this formula then creates a bullet point with no text.

How do I make this formula ignore blank cells??

Would greatly appreciate any help!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi & welcome to MrExcel.
How about
Excel Formula:
="<ul><li>"&TEXTJOIN("</li><li>",,U2:AG2)&"</li></ul>"
 
Upvote 0
Solution

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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