Multiple Count Ifs

ithoughtiknewit

New Member
Joined
Feb 11, 2021
Messages
10
Office Version
  1. 365
Platform
  1. MacOS
Hello!

I am using a countif to determine if an employee is assigned to something. AC lists the employees and anywhere from A to U is where I am looking for a match. This works great:

=IF(COUNTIF(A:U,AC1)>0,"ASSIGNED","OPEN")

That said, I am now trying to add if they are on PTO also. The PTO list lives in V. I tried:

=IF(COUNTIF(A:U,AC24)>0,"ASSIGNED","OPEN")+IF(COUNTIF(V6:V16,AC24)>0,"PTO","OPEN")

but no luck. Is this possible or should I do something different? Thanks as always!!!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Both parts of your second formula: [=IF(COUNTIF(A:U,AC24)>0,"ASSIGNED","OPEN")+IF(COUNTIF(V6:V16,AC24)>0,"PTO","OPEN")] return text values. You can't add text values.

I'm not sure what result you expect, but you can get a text result if you replace the + sign with an ampersand (&) like this:
=IF(COUNTIF(A:U,AC24)>0,"ASSIGNED","OPEN")&IF(COUNTIF(V6:V16,AC24)>0,"PTO","OPEN")
 
Upvote 0
Solution
Both parts of your second formula: [=IF(COUNTIF(A:U,AC24)>0,"ASSIGNED","OPEN")+IF(COUNTIF(V6:V16,AC24)>0,"PTO","OPEN")] return text values. You can't add text values.

I'm not sure what result you expect, but you can get a text result if you replace the + sign with an ampersand (&) like this:
=IF(COUNTIF(A:U,AC24)>0,"ASSIGNED","OPEN")&IF(COUNTIF(V6:V16,AC24)>0,"PTO","OPEN")
That did it, thank you!!
 
Upvote 0

Forum statistics

Threads
1,215,809
Messages
6,127,013
Members
449,351
Latest member
Sylvine

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