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.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

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