How To Add an "Unless"

burntheland

New Member
Joined
Sep 25, 2018
Messages
5
I'm working on a spreadsheet for work. I have three columns I'm working with. One has names, the second has hours worked, and the third has the account it would come out of. I need the formula to add the hours worked if the names in the first column are the same, but it needs to not add the hours to the total if the third column says "CT".

Here's an example of what I'm looking for:

=SUMIF(A:A,"BIGGS",E:E)UNLESS(G:G="CT")

I've had minimal training with Excel and I'm doing the best I can, but I definitely need help.

Thank you!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Thanks! I imagine this place is gonna be my new best friend.

I have another question relating to this. Is there a way to get the system to subtract the hours in the total if the account column says "CT"?
 
Upvote 0
Possibly:

=SUMIFS(E:E,A:A,"BIGGS",G:G,"<>CT")-SUMIFS(E:E,A:A,"BIGGS",G:G,"CT")
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,280
Members
449,149
Latest member
mwdbActuary

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