sum a column if another column does not contain specific text

DMO123

Board Regular
Joined
Aug 16, 2018
Messages
99
Hi Guys,

apologies if this has been answered before. i have a table which needs to look for specific values and if that value does not exist in the cell count another cell.

so what i mean by this is:

the table i have is the below:

CategoryTime
Database1:35
Other????

<tbody>
</tbody>

i have been using =SUMIF(July!K:K,"<>Ad Hoc Task*""<>*invoice*",July!J:J)

but it does not seem to be counting them correctly. it should be looking in my main table column K if the values (Ad Hoc Task & invoice) are in the cell (keep in mind there is multiple values in the cell) then don't count it, if they are not in the cell count column J or H whichever has a value.

can someone help with this?

thanks!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
See if this works:

=SUMIFS(July!J:J,July!K:K,"<>*Ad Hoc Task*",July!K:K,"<>*invoice*")+SUMIFS(July!H:H,July!K:K,"<>*Ad Hoc Task*",July!K:K,"<>*invoice*")
 
Upvote 0

Forum statistics

Threads
1,214,422
Messages
6,119,395
Members
448,891
Latest member
tpierce

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