Hi there, I am trying to combine data in N columns into 2 columns where ColumnA is "\" separated, with ColumnB being the next entry to be added to ColumnA. To add to that, columnC should read either "Leaf" or "Branch" depending if this is the last column in the row.
So, my source data will look like (using , to denote new columns)
Mill1,Motor,Overheated
Mill1,Motor,Bearing
Mill1,Clutch,Disengaged
Mill1,In feed,No Feed
etc...
The output would be (the first column of the first row would be blank)
,Mill1,"Branch"
Mill1,Motor,"Branch"
Mill1\Motor,Overheated,"Leaf"
Mill1\Motor,Bearing,"Leaf"
Mill1,Clutch,"Branch"
Mill1\Clutch,Disengaged,"Leaf"
Mill1,In feed,"Branch"
Mill1\In feed,No Feed,"Leaf"
Hopefully this makes sense, I have attached an image of the before and after that I would like to see. I am not a programmer so have tried to use AI to generate some scripts for me, but they just aren't working and I don't know enough to debug them.
So, my source data will look like (using , to denote new columns)
Mill1,Motor,Overheated
Mill1,Motor,Bearing
Mill1,Clutch,Disengaged
Mill1,In feed,No Feed
etc...
The output would be (the first column of the first row would be blank)
,Mill1,"Branch"
Mill1,Motor,"Branch"
Mill1\Motor,Overheated,"Leaf"
Mill1\Motor,Bearing,"Leaf"
Mill1,Clutch,"Branch"
Mill1\Clutch,Disengaged,"Leaf"
Mill1,In feed,"Branch"
Mill1\In feed,No Feed,"Leaf"
Hopefully this makes sense, I have attached an image of the before and after that I would like to see. I am not a programmer so have tried to use AI to generate some scripts for me, but they just aren't working and I don't know enough to debug them.