Count cells If equal to certain text

CodyTH

New Member
Joined
Oct 13, 2022
Messages
3
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello Everyone,

I was hoping anyone could help me with a formula here.
There is a big table with a lot of data that I am working and I would like to count the value of the cells that have a specific text on another column on the same row.

I did an example table to explain it. picture attached.

Would anyone help with how to count the qty of all values on column C - 'Qty' that contain 'Apple' on column A - 'Fruits'.

Basically, the formula will count cells: C2 + C5 + C8.

Thanks a lot for taking the time and checking it.
 

Attachments

  • table example.JPG
    table example.JPG
    29.4 KB · Views: 9

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi & welcome to MrExcel.
How about
Excel Formula:
=sumifs(c:c,a:a,"Apple")
 
Upvote 0
Nevermind guys, just thought that i can pivot data. another similar thread reminded me of that.

not my day :)
 
Upvote 0
MrExcelPlayground13.xlsx
ABCDE
1fruitsoriginqty
2applea3051
3pearb12
4bananac5
5appled11
6peare23
7orangef11
8appleg10
Sheet1
Cell Formulas
RangeFormula
E2E2=SUMIFS(Table1[qty],Table1[fruits],"apple")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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