Showing Distribution of Values in Access?

Paperclipper

Board Regular
Joined
Mar 11, 2004
Messages
110
Hi all! I was wondering if it was possible to use Access 2000 to do the following:

1)Select all the records in a database based on values in one column...
2)Spit out a table that shows how many of those records have A) value of 0 or Null, B) 1, C) 2 or more...

thank you!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Sure, you should be able to do this using queries. Below is an example:

Let's say we have a table with two fields, ClientName and PlanType. If we wanted a table to give us a breakdown of the total count of plan types for clients that start with the letter "B", we could do the following:

In a query, create an expression to capture the first letter of the ClientName, i.e. Letter: Left([ClientName],1). Put criteria on this field of "B".

Now add the PlanType field to the query twice. Then click on the Totals icon (picture of a sigma). In the second PlanType field, change the Totals option from "Group By" to "Count".

Now if you view the query, it will count up all the different plan types for clients that begin with the letter B.

Notice the other Totals function, such as SUM, which would be good if you wanted a count up something like total number of employees for a plan type.
 
Upvote 0

Forum statistics

Threads
1,221,656
Messages
6,161,080
Members
451,684
Latest member
smllchng5

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