CountIFs with multiple criteria and logic.

%3CLINGO-SUB%20id%3D%22lingo-sub-474976%22%20slang%3D%22en-US%22%3ECountIFs%20with%20multiple%20criteria%20and%20logic.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-474976%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20a%20countif%20formula%20that%20counts%20the%20number%20of%20times%20a%20part%20number%20show%20up%20in%20a%20different%20sequence%2C%20for%20example%2C%20that%20table%20below%20the%20first%20check%20if%20the%20part%20number%20is%20the%20same%20as%20the%20one%20below%20if%20yes%20it%20will%20count%20the%20number%20of%20time%20the%20part%20number%20shows%20up%20in%20a%20non%20sequential%20in%20this%20case%205%20times.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-474976%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-475622%22%20slang%3D%22en-US%22%3ERe%3A%20CountIFs%20with%20multiple%20criteria%20and%20logic.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-475622%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F117638%22%20target%3D%22_blank%22%3E%40Fernando%20Salgueiro%3C%2FA%3E%26nbsp%3B%2C%20taht%20could%20be%3C%2FP%3E%0A%3CPRE%3E%3DSUMPRODUCT((%24B%242%3A%24B%2420%3DB22)*(%24B%242%3A%24B%2420%3DOFFSET(%24B%242%3A%24B%2420%2C1%2C0)))%3C%2FPRE%3E%0A%3CP%3Eif%20I%20understood%20your%20logic%20correctly%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I am trying to create a countif formula that counts the number of times a part number show up in a different sequence, for example, that table below the first check if the part number is the same as the one below if yes it will count the number of time the part number shows up in a non sequential in this case 5 times.

 

1 Reply
Highlighted

@Fernando Salgueiro , taht could be

=SUMPRODUCT(($B$2:$B$20=B22)*($B$2:$B$20=OFFSET($B$2:$B$20,1,0)))

if I understood your logic correctly