advanced find and replace [split one row into 2 rows]

solidENM

Board Regular
Joined
Feb 23, 2017
Messages
87
Hello,
I currently use find and replace in my macro, but I am needing to replace one kit# with the two components. The second item would be 2x the qty of the original kit qty.

Id need to replace "bracket-kit" with "bracket," and add a second line for "bolts." The bracket line can simply replace the kit part#, and keep whatever qty was in column B. I usually have another line with "bolts," but not always. Ideally, this would add the bolts qty to an existing row if it exists, or create a new row and insert "bolts."


Below is an example of my setup. The description in column C uses vlookup, and column A is automatic. Only columns B and D are relevant.

qty is in column B, and part# is in column D.

ITEM NO.QTY.DescriptionPart Number
112in bracket with hardwarebracket kit
21angle bracket2in bracket
32bolt and nutbolts

<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>



any help would be greatly appreciated.
Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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