Combinding column values

Romano_odK

Active Member
Joined
Jun 4, 2020
Messages
380
Office Version
  1. 365
Platform
  1. Windows
Good morning,
Trying to combine cells from a row when they have a value. For example when cell C2 is filled which is in this case "cloud", G2 should say : update items set Userfield_02 ="cloud" where itemcode is A2. When there are more then one cell filled in the row cell G2 should say: update items set Userfield_01 ="car", Userfield_02 = "cloud" where itemcode is A2. This is bit too much for me to accomplish and also I do not know if it possible. The komma is also a problem because you need it after every filled cell. Is there a way to do this?

Thank you for your time,

Romano


ItemcodeUserfield_01Userfield_02Userfield_03Userfield_04Userfield_05
100000​
carcloudvacationforwardminute
100001​
100002​
100003​
100004​
100005​
100006​
100007​
100008​
100009​
100010​
100011​
100012​
100013​
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
How about
Excel Formula:
=TEXTJOIN(", ",,IF(B2:F2<>"",B1:F1&"="&B2:F2,""))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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