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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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