I’m just trying to write the data into an excel sheet with specific format, But I don’t know whether we can do it or not. If the answer is YES, please let me know.
For example,
I have some items like BAT, TEETH SET, BALL, TOY, SHAVING KIT, WHEEL CHAIR, TRIMMER, WALKING STICK.
I want to filter this data in category wise… as shown below.
According to your Statement, you would want to add Items to the Category which is also being inputted by you. In that case, you would not require to perform any extra methods to Group the Items to their respective categories.
To Approach this Solution, you could follow the Method/Steps presented below :
First, we read the Excel Sheet as a Datatable using Read Range Activity. We would then Require to create a Dictionary which would hold your Category as the Key and the Values as the Items to be Added which is done as below :
We also get the Column which we would require to Merge in Excel, the Column "Category" which is the "A" Column Letter in Excel.
Next, We add the New Items from the Dictionary to the Datatable with it’s corresponding category. Then arrange/Sort the Datatable rows according to the Column "Category".