Using multiple criteria when running a report

kmurtha

Board Regular
Joined
Mar 24, 2004
Messages
52
I have a project database that had information broken out as follows

Proj Name
Year
Status
Jan Hours
.
.
.
Dec Hours

I want to run a report and allow the user to select a year and then a Qtr to report on on.

The real problem is that I keep the hours broken down by month, so how do I relate months (ex Jan, Feb, Mar) to a Quarter?

Secondly, how do I prompt a user for multiple criteria for a report (ex: [Please Enter Year]:, [Now Please Enter Quarter]:

Thanks
Kevin (y)
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Kevin,

I think you've made life hard for yourself. It would be much easier to query a table that had

Proj Name
Year
Status
Month
Hours

You could then build an expresssion in a query to calculate the Quarter, and use that for filtering the report.

The above could easily be viewed in the Month-across format by using a Crosstab query.

Do you have multiple months filled for each record? And how many queries / forms have you built so far? The reason I ask, is if the database isn't too far down the track, reorganising the data may be easier in the long run.

Otherwise, could you give a bit more info? There may be a way to grab what you need, by building a series of expressions.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,838
Messages
6,162,286
Members
451,759
Latest member
damav78

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