ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using a SQL like query to query an excel sheet (https://www.excelbanter.com/excel-worksheet-functions/22026-using-sql-like-query-query-excel-sheet.html)

Sh0t2bts

Using a SQL like query to query an excel sheet
 
Hi Guys,

I have an excel report where I want to count how many entries they are
in each product that is in my list.
I can achieve this by using the countif statment, but now I am left
with a list of products that are not in my list that I want to show a
total be by product type.
The product type I won't know of until this report is ran.

My list Count
Apple 7
Pear 5
Grape 11

Not on my list
Carrot ?
Cabbage ?
Turnip ?

Any help would be great

Thanks

Mark


Ron Coderre

I think what you want would easily be handled by a Pivot Table.
Just base the PivotTable on the the ItemList and set it as the PivotTabe Row
and the the Court of Item as the PivotTable Data.

You should see a list of Unique items and the count of each.

See if that works for you.

Regards,
Ron

"Sh0t2bts" wrote:

Hi Guys,

I have an excel report where I want to count how many entries they are
in each product that is in my list.
I can achieve this by using the countif statment, but now I am left
with a list of products that are not in my list that I want to show a
total be by product type.
The product type I won't know of until this report is ran.

My list Count
Apple 7
Pear 5
Grape 11

Not on my list
Carrot ?
Cabbage ?
Turnip ?

Any help would be great

Thanks

Mark




All times are GMT +1. The time now is 01:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com