Google Sheets: Join Columns & Rows into one Text String

p_s

New Member
Joined
Sep 23, 2020
Messages
30
Office Version
  1. 2019
Platform
  1. Windows
  2. Mobile
  3. Web
ItemQty
Apple45
Basketball24
Tennis Racket
Orange64
Women's Shoes
T-shirts67
Pants11
Cauliflower35
Green Beans125

Desired Output:
45 Apple, 24 Basketball, 64 Orange, 67 T-shirts, 11 Pants, 35 Cauliflower, 125 Green Beans

Preferably in one cell without referencing each cell individually, so that it can be expanded if someone adds more rows. The columns may not be adjacent. Skips the row where the qty is 0/"" for the columns selected.

Can someone help me with this please.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Something like this should work:

=join(",",filter(B2:B&" "&A2:A,B2:B>0))
 
  • Like
Reactions: p_s
Upvote 0
Solution

Forum statistics

Threads
1,223,634
Messages
6,173,476
Members
452,516
Latest member
archcalx

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