Results 1 to 3 of 3
  1. #1
    kgbo is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2013
    Posts
    10

    Question Help with a Count...

    Hello,


    I have created a table that is pulling information when entered into a form.
    What I would like to do is to summarize the information into maybe a pivot table or a query..not sure what is best at this point.
    Let me explain my table:
    I have list items that range from P1 to P10 in two seperate columns. How would I do a count so that these two columns get combined together.
    Such as: (Keep in mind, these columns would be laid out next to each other, not bellow)
    Column 1:
    P1
    P2

    Column 2:
    P2
    P3

    I would like the table to take the above information and summarize it as follows:
    Category:
    P1
    P2
    P3
    Number Count:
    1
    2
    1

  2. #2
    Neologic29 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    13
    Is the data in those two fields a string or a number? I think doing a query and creating a calculated field which either counts or sums (depending on the type) the data in the columns would probably work.

  3. #3
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    Just an idea to get you started. Haven't tested.


    select Distinct(Column1) As Category, Count(Distinct(Column1)) as Number from tableyoudidntspecify
    union all
    select distinct(column2) as category, count(distinct(column2)) as number from tableyoudidntspecify

Please reply to this thread with any new information or opinions.

Similar Threads

  1. COUNT Group Count Records COUNT FUNCTION
    By PMCOFFEY in forum Access
    Replies: 9
    Last Post: 11-09-2012, 09:40 PM
  2. count & sum
    By ali zaib in forum Access
    Replies: 1
    Last Post: 01-14-2012, 04:58 PM
  3. Count if (where?)
    By jvlajcic in forum Queries
    Replies: 1
    Last Post: 12-14-2011, 03:09 PM
  4. Count on ID
    By dssrun in forum Access
    Replies: 4
    Last Post: 07-26-2011, 11:45 AM
  5. Sum the Count
    By Adele in forum Queries
    Replies: 5
    Last Post: 07-26-2011, 06:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums