Countifs and match help needed

%3CLINGO-SUB%20id%3D%22lingo-sub-2386899%22%20slang%3D%22en-US%22%3ECountifs%20and%20match%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2386899%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20create%20a%20formula%20that%20would%20tell%20me%20if%20any%20of%20the%20names%20on%20my%20first%20sheet%20are%20in%20sheet%202%20or%203.%20If%20they%20are%20I%20want%20a%20%22no%22%20and%20if%20they%20aren't%20I%20want%20a%20yes.%3C%2FP%3E%3CP%3EI%20tried%20Countifs%20and%20IF(Or)%20but%20none%20of%20them%20seem%20to%20work.%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20is%20the%20link%20to%20the%20spreadsheet%20i%20am%20trying%20to%20use%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2F1drv.ms%2Fx%2Fs!AgSn2Fjy1lHAeoCajIPex8-4AB0%3Fe%3DKxin9K%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2F1drv.ms%2Fx%2Fs!AgSn2Fjy1lHAeoCajIPex8-4AB0%3Fe%3DKxin9K%3C%2FA%3E%3C%2FP%3E%3CP%3EWould%20someone%20be%20able%20to%20point%20me%20in%20the%20right%20direction%20please%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-05-26%20at%2011.44.27.png%22%20style%3D%22width%3A%20741px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283837i3AC3CAA756A1C795%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-05-26%20at%2011.44.27.png%22%20alt%3D%22Screenshot%202021-05-26%20at%2011.44.27.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-05-26%20at%2011.44.34.png%22%20style%3D%22width%3A%20310px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283836i5F95994A7C1D4B98%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-05-26%20at%2011.44.34.png%22%20alt%3D%22Screenshot%202021-05-26%20at%2011.44.34.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-05-26%20at%2011.44.40.png%22%20style%3D%22width%3A%20311px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283838i8D79287554E9AAA9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-05-26%20at%2011.44.40.png%22%20alt%3D%22Screenshot%202021-05-26%20at%2011.44.40.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2386899%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2386943%22%20slang%3D%22en-US%22%3ERe%3A%20Countifs%20and%20match%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2386943%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1053100%22%20target%3D%22_blank%22%3E%40infinity94%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20B2%20on%20Sheet1%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DIF(COUNTIF(restr!A%3AA%2CA2)%2BCOUNTIF('restrict%202'!A%3AA%2CA2)%2C%22No%22%2C%22Yes%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFill%20down.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2386962%22%20slang%3D%22en-US%22%3ERe%3A%20Countifs%20and%20match%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2386962%22%20slang%3D%22en-US%22%3Ethis%20worked!%20thanks%20so%20much!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2387193%22%20slang%3D%22en-US%22%3ERe%3A%20Countifs%20and%20match%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2387193%22%20slang%3D%22en-US%22%3Esorry%20need%20some%20more%20help%20with%20this.%3CBR%20%2F%3Eupdated%20workbook%3A%20%3CA%20href%3D%22https%3A%2F%2F1drv.ms%2Fx%2Fs!AgSn2Fjy1lHAeoCajIPex8-4AB0%3Fe%3DKuUzgz%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2F1drv.ms%2Fx%2Fs!AgSn2Fjy1lHAeoCajIPex8-4AB0%3Fe%3DKuUzgz%3C%2FA%3E%3CBR%20%2F%3Ewhat%20i%20am%20trying%20to%20achieve%3A%20i%20have%20a%20drop%20down%20on%20the%20right%20and%20if%20I%20select%20Party%201%20I%20want%20everything%20that%20has%20%25%20free%20less%20than%2080%25%20and%20score%2010%20or%20above%20to%20show%20as%20yes%2C%20otherwise%20No.%3CBR%20%2F%3EIf%20i%20select%20party%203%20I%20want%20everything%20that%20has%20%25%20free%20less%20than%2080%25%20and%20score%209%20or%20above%20to%20show%20as%20Yes%20otherwise%20as%20No.%20can%20you%20help%20me%20with%20that%20please%3F%3DIF(C2%3D%22No%22%2C%22No%22%2CIF(AND(D2%26lt%3B80%2CE2%26gt%3BO4)%2C%22Yes%22%2C%22No%22))%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2387269%22%20slang%3D%22en-US%22%3ERe%3A%20Countifs%20and%20match%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2387269%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1053100%22%20target%3D%22_blank%22%3E%40infinity94%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20formula%20in%20O4%20should%20be%3C%2FP%3E%0A%3CP%3E%3DIF(O5%3D%22Party%201%22%2C%2010%2C9)%3C%2FP%3E%0A%3CP%3E(The%20result%20must%20be%20a%20number%2C%20not%20a%20text%20value).%3C%2FP%3E%0A%3CP%3EAnd%20in%20F2%3A%3C%2FP%3E%0A%3CP%3E%3DIF(C2%3D%22No%22%2C%22No%22%2CIF(AND(D2%26lt%3B80%2CE2%26gt%3B%3D%24O%244)%2C%22Yes%22%2C%22No%22))%3C%2FP%3E%0A%3CP%3Eor%20slightly%20shorter%3C%2FP%3E%0A%3CP%3E%3DIF(OR(C2%3D%22No%22%2CD2%26gt%3B%3D80%2CE2%26lt%3B%24O%244)%2C%22No%22%2C%22Yes%22)%3C%2FP%3E%0A%3CP%3EFill%20down%20from%20F2%20to%20F4.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2387374%22%20slang%3D%22en-US%22%3ERe%3A%20Countifs%20and%20match%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2387374%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you!%20how%20do%20i%20add%20Party%202%3D%2010%20and%20party%203%20equals%209%20and%2010%3F%3C%2FP%3E%3CP%3E%3CSPAN%3E%3DIF(O5%3D%22Party%201%22%2C%2010%2C9)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eif%20i%20use%20the%20above%2C%20then%20it%20will%20either%20be%209%20or%2010%20but%20i%20need%20both%20so%20would%20be%20better%20to%20put%20greater%20or%20%3D9%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-05-26%20at%2014.38.13.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283875iAFDE08521F557A6C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-05-26%20at%2014.38.13.png%22%20alt%3D%22Screenshot%202021-05-26%20at%2014.38.13.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi all,

I am trying to create a formula that would tell me if any of the names on my first sheet are in sheet 2 or 3. If they are I want a "no" and if they aren't I want a yes.

I tried Countifs and IF(Or) but none of them seem to work. 

Below is the link to the spreadsheet i am trying to use:

https://1drv.ms/x/s!AgSn2Fjy1lHAeoCajIPex8-4AB0?e=Kxin9K

Would someone be able to point me in the right direction please?

Screenshot 2021-05-26 at 11.44.27.pngScreenshot 2021-05-26 at 11.44.34.pngScreenshot 2021-05-26 at 11.44.40.png

6 Replies

@infinity94 

In B2 on Sheet1:

 

=IF(COUNTIF(restr!A:A,A2)+COUNTIF('restrict 2'!A:A,A2),"No","Yes")

 

Fill down.

this worked! thanks so much!
sorry need some more help with this.
updated workbook: https://1drv.ms/x/s!AgSn2Fjy1lHAeoCajIPex8-4AB0?e=KuUzgz
what i am trying to achieve: i have a drop down on the right and if I select Party 1 I want everything that has % free less than 80% and score 10 or above to show as yes, otherwise No.
If i select party 3 I want everything that has % free less than 80% and score 9 or above to show as Yes otherwise as No. can you help me with that please?=IF(C2="No","No",IF(AND(D2<80,E2>O4),"Yes","No"))

@infinity94 

The formula in O4 should be

=IF(O5="Party 1", 10,9)

(The result must be a number, not a text value).

And in F2:

=IF(C2="No","No",IF(AND(D2<80,E2>=$O$4),"Yes","No"))

or slightly shorter

=IF(OR(C2="No",D2>=80,E2<$O$4),"No","Yes")

Fill down from F2 to F4.

@Hans Vogelaar 

thank you! how do i add Party 2= 10 and party 3 equals 9 and 10?

=IF(O5="Party 1", 10,9)

if i use the above, then it will either be 9 or 10 but i need both so would be better to put greater or =9?

Screenshot 2021-05-26 at 14.38.13.png

@infinity94 

Change the formula to

 

=IF(O5="Party 3",9,10)