=COUNTIF

Colt_Fisher_43

New Member
Joined
Jan 1, 2020
Messages
18
Office Version
  1. 2013
Platform
  1. Windows
Hello,

I have a working formula =COUNTIF(E2:H2,"<>Adams")

How would I add another name like "Davis" so it'll work with both names and remove duplicates?

Thank you
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
One other quick question about a issue I ran into. Would I be able to combine these two formulas together? Not sure if it's even doable, if not no problem.

=SUBSTITUTE(TRIM(E2&" "&F2&" "&G2&" "&H2)," ",", ")

and

=COUNTIFS(E2:H2,"<>Adams",E2:H2,"<>Davis")
 
Upvote 0
In what way?
Having this formula omit the two names "Adams" and "Davis" in the total for the formula below. I have it where I'm pulling names from those columns, but want to remove those two names if selected in the columns. Sorry if I'm not explaining it clearly.

=SUBSTITUTE(TRIM(E2&" "&F2&" "&G2&" "&H2)," ",", ")
 
Upvote 0
How about
Excel Formula:
=SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE(E2&" "&F2&" "&G2&" "&H2,"Adams",""),"Davis",""))," ",", ")
 
Upvote 0
How about
Excel Formula:
=SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE(E2&" "&F2&" "&G2&" "&H2,"Adams",""),"Davis",""))," ",", ")
YES! It does! Thank you for your time!

Really, really appreciate it.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,989
Messages
6,122,622
Members
449,093
Latest member
catterz66

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