Need Help With Report

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I have a query that gives me the following data "example":

Customer Year Revenue
Cust 1 2001 500.00
Cust 1 2002 600.00
Cust 2 2001 870.00
Cust 2 2002 400.00
Cust 3 2002 300.00

I need to create a report that will present the data like this:
2002 2001
Cust 1 600.00 500.00
Cust 2 400.00 870.00
Cust 3 300.00 0.00

Of course this is just an example, this will be used to compare the revenue generated by our customers Year over Year. I am having a lot of trouble with this. Please help this is driving me crazy :cry: :eek: :rolleyes: :confused: ......
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
You can create a query that produces those results, then do a report from that query.

Go to Query and create Cross-Tab query using the Wizard. Select the table you want to run it off of (your first table in your post), then choose Customer as your Row, Year as your Column, then Amount in your body (use the mathematical function "First" to get just the value).

You should then have a query that looks like your second table in your post (you may have to delete a "Total" column that Access may automatically add in there). Then create your report based off this query.
 
Upvote 0
OK that works fine but I have 2 values, that need to be summed. What do you recommend?
 
Upvote 0

Forum statistics

Threads
1,221,507
Messages
6,160,216
Members
451,630
Latest member
zxhathust

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top