I am a sql developer who has some experience with Excel but none using Macros etc. I export a data set into Excel from SQL Server. For futher analysis I need to split that dataset such that rows with a particular value end up in a particular worksheet with the name of that value.
As an example I have some data as follows:
In the example above, I would like to send all rows containing D_RU 207 to a worksheet called 207, _RU 208 to a worksheet called 208, _RU 209 to a worksheet called 209, etc
From what I have read I would need to use a Macro but I am not precisely sure how I would do that. I could easily create this in SQL server but the version I am using at work does not have the functionality needed. Any help you could provide would be very much appreciated
As an example I have some data as follows:
Code:
[B]D_AC D_RU D_SBU f00[/B]
501 207 90001 34
502 208 90021 54
501 208 90001 44
501 208 90312 84
501 209 90001 54
501 209 90211 54
501 210 90021 64
501 210 90001 54
From what I have read I would need to use a Macro but I am not precisely sure how I would do that. I could easily create this in SQL server but the version I am using at work does not have the functionality needed. Any help you could provide would be very much appreciated