Please help with Excel formula

Pat1009

Active Member
Joined
Jun 4, 2015
Messages
264
This is half of a formula I have.....

Code:
=20-SUM(COUNTIFS('All Worker Time Off'!$C:$C,"john smith*",'All Worker Time Off'!$D:$D,”Time Off Request))

I need it to start at 20 and minus 1 for every time it finds, in the "All Worker Time Off" sheet, john smith in column $C:$C and also finds
"Time off Request" in column $D:$D

The way it is now, it just outputs 20, but there is only 1 entry that has john smith and time off request, so it should output 19
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I realized my mistake, after all, it should have been this.....
Code:
=20-SUM(COUNTIFS('All Worker Time Off'!$C:$C,"john smith*",'All Worker Time Off'!$D:$D,"Time Off Request"))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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