We help IT Professionals succeed at work.

Manipulate data

In the attached file, Sheet1 shows how my data is currently laid out.  I would like to change the layout to how it is shown in Sheet2.  In Sheet2 the sequence of the rows does not matter.  

Can this be done in MS Access?

Note that the data in my "real" file has a lot more rows and columns of data than the sample data in the attached file. Thanks.  
Watch Question

Senior Database Administrator

If you have only 50 states it won't look pretty, but is doable I believe

select prodname, tiers, CA as rate, 'CA' as state

union all

select prodname, tiers, NC as rate, 'NC' as state

What you are trying to do is unpivot sheet1 to a normallised sheet2. SQL 2005 introduced the pivot and unpivot operators, but not sure about access.