Multiple Column Count Query

clayt101

Board Regular
Joined
Nov 26, 2008
Messages
55
I am hoping that you all can help me. I have several columns of text data. Each column contains the same text variables (I think that there are a total of 10 text entries).

Anyhow, is there a way to do a count query on all the columns at the same time, just giving me a total of each time the variable comes up regardless of which column it is in?

I know that I can solve this by appending all of the columns into one column and then doing a simple count query, but I imagine that there must be a more "proper" way of doing this.

Thanks in advance.
Clay
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Is this an EXCEL question or an ACCESS question, because it is in the Access category but perhaps it should not be???
 
Upvote 0
It is actually easier in Excel than in Access. In Access it would either be using the method that the OP suggested about the concatenating of the fields together or by creating a large Union Query unioning them all together so you can get the count that way. It sounds like it might not be normalized data, but hard to say.
 
Upvote 0
COUNTIF() works on multiple columns.

=COUNTIF(A:G, "cat")

Thanks. I was not aware of that solution method. I never knew that there was away to do the count query in excel. I will play around with it on Monday. I enjoy playing around with access, but I really do not know how to do any of the advanced stuff.

Thanks again,
Clay
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,790
Members
452,942
Latest member
VijayNewtoExcel

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