Forum

Notifications
Clear all

If two cell contains text then show both of them, if not then show nothing.

4 Posts
3 Users
0 Reactions
49 Views
(@newoneinvba)
Posts: 2
Active Member
Topic starter
 

Hello,

I wanted to make an Excel list that shows if it has assigned a task. The wanted result can be found in the picture below. 

As you can see in the picture, the green version doesn't have any text that only contains rooms.

Example of wanted result

Do ask if this post was not clear enough. Thank you in advance!

BR, Excel noob

 
Posted : 20/12/2022 6:19 am
Riny van Eekelen
(@riny)
Posts: 1193
Member Moderator
 

If you are on a MS365 or in the web version, this formula could work (assume the blue table is called Table1):

=BYROW(FILTER(Table1,Table1[Tasks]<>""),LAMBDA(arr,TEXTJOIN(" ",,arr)))

 

A working example is attached. If this isn't working for you, please let us know your Excel version.

 
Posted : 20/12/2022 9:52 am
Riny van Eekelen
(@riny)
Posts: 1193
Member Moderator
Alan Sidman
(@alansidman)
Posts: 222
Member Moderator
 

Using just native Excel features, you could select filter on the Data Tab and unselect blanks.

 
Posted : 20/12/2022 5:21 pm
Share: