sum(B2:C16)
will give the sum of the 2 columns - is that what you meant....
Then only remove the sum of D , where B17 is not blank and A =17
Which seems wrong to me
SUMIF() and SUMIFS()
maybe what you are after
=IF( B17<>"",sum(B2:C16) - SUMIFS( D2:D16, A2:A16, A17), "")
maybe useful to refer to the other question
I am not sure what sum function will sum cells related to an employee where the conditions are met or return a blank or zero. Only one cell per employee will contain a credit. The expected answers are in D19 and F19, but the formulas would go in row D17 and F17 in this example. What I need the...
www.mrexcel.com
in case it helps
Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.
A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.
MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.
Excel 'mini-sheet' in messages - XL2BB Although experts prefer to read your description and question instead of working in your actual file to solve your problem, there are times that it is difficult to explain an issue without providing actual...
www.mrexcel.com
You can also test to see if it works ok, in the "Test Here" forum.
Use this forum to test your signature, learn bbcode, smilies, XL2BB, etc. Threads in this forum are automatically deleted after no replies for seven (7) days
www.mrexcel.com
OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.