Remove before split

hnorgaar

New Member
Joined
Jul 21, 2018
Messages
31
Office Version
  1. 2019
Platform
  1. Windows
hi

I have query and will like to get some help to use split IF the data exists in another column, in this case if Field 2 to split by comma, but only with numbers that exists in Field 1. Field 2 is not important after the split and the split should only happens if the comma based values match from Field2 to Field 1

Field 1 Field 2 Field 3 Field 4
1 1,2,6.8
2 2,3
3 3

Result
Field 1 Field 2 Field 3 Field 4
1 1,2,6.8
2 1,2,6.8
2 2,3
3 2,3
3 3

Any input appreciated, thx
Henrik
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
add a new column using an if statement that returns true or false based on your rules. Then add another step to remove the rows you don’t want.
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,638
Latest member
Oluwabukunmi

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