Countif Problem

grlinden

New Member
Joined
Feb 9, 2005
Messages
2
I have part numbers in columns B,F,J,N,R each from a different assembly. I want to see if the part numbers are duplicated in any of the other four assemblies. In column D (for the first assembly) I have this formula... "=IF((LEFT(RC[-2],4)=""BLAN""),0,(IF(COUNTIF(R6C[2]:R200C[2]:R6C[6]:R200C[6]:R6C[10]:R200C[10]:R6C[14]:R200C[14],RC[-2]),1,0)))". This returns a 1 if the part number isn't "Blank" and it is used in one of the for other assemblies. Then for assembly 2 I have this formula in column H... "=IF((LEFT(RC[-2],4)=""BLAN""),0,(IF(COUNTIF(R6C[-6]:R200C[-6]:R6C[2]:R200C[2]:R6C[6]:R200C[6]:R6C[10]:R200C[10],RC[-2]),1,0)))". The problem is this always returns a 0 even if the part number is duplicated in one of the four other assemblies. It works however when I change the formula to only check part numbers from the first assembly. Any help would be great.
 

Some videos you may like

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
Hi

Seemed to work ok for me. However, it was including column H in the countif as the range spanned columns B:R inclusive.

Tony
 

Watch MrExcel Video

Forum statistics

Threads
1,123,271
Messages
5,600,650
Members
414,399
Latest member
Ninjee

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
Top