List showing blank items

so Iโ€™m using this formula to built a list in a virtual column

LIST(
IF([Brush]=TRUE,โ€œBrushโ€,""),
IF([Rake]=TRUE,โ€œRakeโ€,""),
IF([Matt]=TRUE,โ€œMattโ€,"")
)

Whats weird is that the list seem to be including the blank items, i.e. those which are FALSE. For example, if only [Brush]=TRUE then it will show
Brush,

Tried unique() but that still shows one blank item.

Any ideas

Solved Solved
0 8 482
1 ACCEPTED SOLUTION

Hi Simon,

Does the following expression help

LIST( IF([Brush]=TRUE,โ€œBrushโ€,""), IF([Rake]=TRUE,โ€œRakeโ€,""), IF([Matt]=TRUE,โ€œMattโ€,"") ) -LIST("")

View solution in original post

8 REPLIES 8

Iโ€™ve done an almost identical list as the suggested items in an ENUMLIST and it doesnโ€™t pull in the blanks

Hi Simon,

Does the following expression help

LIST( IF([Brush]=TRUE,โ€œBrushโ€,""), IF([Rake]=TRUE,โ€œRakeโ€,""), IF([Matt]=TRUE,โ€œMattโ€,"") ) -LIST("")

Awesome @Suvrutt_Gurjar thats done it

@1minManager @Suvrutt_Gurjar
How about like this?

LIST(
	IFS([Brush]=TRUE,โ€œBrushโ€),
	IFS([Rake]=TRUE,โ€œRakeโ€),
	IFS([Matt]=TRUE,โ€œMattโ€)
) 

Hi @LeventK ,
Thank you. I also thought IFS (โ€ฆ will work. Somehow IFS (โ€ฆ also seems to introduce blanks.

Is it worth listing this as a bug since

LIST(
IFS([Brush]=TRUE,โ€œBrushโ€),
IFS([Rake]=TRUE,โ€œRakeโ€),
IFS([Matt]=TRUE,โ€œMattโ€)
)

Should work as I described?

Not a bug because IFS() correctly returns a blank value, which is itself a value.

... - LIST("") is the correct solution.

Is that the same with IF() too?

Top Labels in this Space