Split into worksheets

please refer screenshot. I have captured a webtable to collection. I need to write them to an excel.. But before i write them to an excel, i need to seperate the rows based on the currencies into different worksheets. Can u give me an idea of how to proceed with this?
 

Attachments

  • IMG20190116183525.jpg
    459.8 KB · Views: 19
  • IMG20190116214437.jpg
    493.8 KB · Views: 17
I have attached the given data and expected output.. Please refer them
 

Attachments

  • Collection_original data.jpg
    497.9 KB · Views: 11
  • expected1.jpg
    488.4 KB · Views: 8
  • expected2.jpg
    494.4 KB · Views: 8
  • expected3.jpg
    498.6 KB · Views: 5

Shweta

Active Member
Hi Bala,

Do follow the below steps and post back, if you still face any issues.

1. Open WB > Show > Maximize
2. Get your Data in Collection using inbuilt utility MS Excel VBO
3. Create new worksheets for each currency, say Worksheet1_INR , Worksheet2_USD
4. Filter your collection on the basis of currency as (you can replace INR with your input current codes):
"[Currency] LIKE '*INR*'"
Store the result in new collection
5. Before pasting the new collection in Worksheet, better to check if that contains any rows or not.
6. Activate the Worksheet and paste the new collection there.

You can perform the same steps for rest of the currency codes.

Thanks.
 
Top