Countifs for repeated cell combinations

willow1985

Well-known Member
Joined
Jul 24, 2019
Messages
929
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have been trying to figure out a formula that will count how many times a particular part has been in our facility. Parts are identified by part number and serial number so I need to count the combination of the 2.

Example:
[TABLE="width: 301"]
<tbody>[TR]
[TD][TABLE="width: 439"]
<tbody>[TR]
[TD]part_number[/TD]
[TD]serial_number[/TD]
[TD]Amount of Times Through facility[/TD]
[/TR]
[TR]
[TD]989898
545454[/TD]
[TD]M001
N123[/TD]
[TD]2
0[/TD]
[/TR]
[TR]
[TD]989898[/TD]
[TD]M001[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I tried using the following countif formula but it gives me a result of 0 for everything.

=COUNTIFS(E2:E1000,F2:F1000)


Also if an additional condition could be added not to count Any Cell that says "NSN" in column F

Any help would be appreciated.

Thank you

Carla
 
Last edited:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
I believe you are looking for:

=countifs(e:e,e:e,f:f,f:f)

What this does is say: "how many times in the entire column of E do we see this particular value? AND how many times in F do we see the corresponding value in F?" This will search for them jointly, acting like they are a single field.
 
Last edited:
Upvote 0
This works perfect, but is there a way to add the condition do not count any cell that ="NSN"?
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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