Countif or Sumproduct question

buyshirts

Banned user
Joined
Aug 19, 2015
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I have tired several ways to perform what (i think) should be easy.

In Column A i have text that starts in the same manor but after 19 characters there is some info i want to use.
Below is a sample the text in Bold is what i need to use

A1 Greyhound Racing / CPark 25th Sep : D4 265m
A2 Greyhound Racing / Swin 25th Sep : A4 476m

I have used the MID function to extract this and then on a different sheet im trying to Count how many times CPark in the data set and then im also trying to sum another column if CPark is present.

So this is all pretty standard stuff but for some reason im getting 0 as the answer to the count formula.

Any helped would be much appreciated
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
The countifs could be:

=COUNTIFS(A:A,"*CPark*")

The sumifs is the same but has a sum range added.

=SUMIFS(B:B,A:A,"*CPark*")
 
Last edited:
Upvote 0
Sorry as an additional point do i have re-write the formula with the actual name can i not use a cell reference instead ?
 
Upvote 0
Yes you can use for example:

"*"&C1&"*"

where C1 houses the criteria you want to count.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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