'COUNTIF' on a Report using an expression?

RogerC

Well-known Member
Joined
Mar 25, 2002
Messages
536
I have query that contains a field called ITEM COLOR. The records for ITEM COLOR are either 'Blue' or 'Red'. I have created a report from the query and I would like to put a text box on my report that shows the total number of 'Blue' records that occur in ITEM COLOR. Can I do this using the Expression Builder'? I don't see a COUNTIF function in the Builder.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
positioning the cursor on the field in the query in the Design View, right click and check on Totals..


You will get an additional row in the design.. in the Sum, you will get a drop box in which Count is an option.. that wil contain the count

In the criteria, you can specify Green or Blue

Create two new columns to count the occurrences.

Hope this helps.

Cheers!

Uttam
 
Upvote 0

Forum statistics

Threads
1,221,566
Messages
6,160,525
Members
451,655
Latest member
rugubara

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