Formula help for budgeting spreadsheet

kulprit

New Member
Joined
Oct 27, 2018
Messages
2
Hi All,

I have a budget table which I need a little bit of formula help with. So when I select the option of Paid I would like it to deduct the value from the total providing me with the remaining balance. Please see below example of how I would like it to work;


[TABLE="width: 0"]
<colgroup><col style="width: 100px"><col width="100"><col width="100"><col width="100"><col width="100"></colgroup><tbody>[TR]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[TD]d[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD="align: center"]Company[/TD]
[TD="align: center"]Amount[/TD]
[TD="align: center"]Paid/Unpaid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Utility 1[/TD]
[TD="align: right"]50[/TD]
[TD]Paid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Utility 2[/TD]
[TD="align: right"]100[/TD]
[TD]Paid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Utility 3[/TD]
[TD="align: right"]150[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Total[/TD]
[TD="align: right"]300[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Remaining[/TD]
[TD="align: right"]150[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Can anyone help with the formula of removing the figure from amount when it says Paid from the total figure in order to provide me with the remaining figure?

Many thanks,
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
[Table="width:, class:grid"][tr][td="bgcolor:#C0C0C0"][/td][td="bgcolor:#C0C0C0"]
A​
[/td][td="bgcolor:#C0C0C0"]
B​
[/td][td="bgcolor:#C0C0C0"]
C​
[/td][td="bgcolor:#C0C0C0"]
D​
[/td][td="bgcolor:#C0C0C0"]
E​
[/td][/tr][tr][td="bgcolor:#C0C0C0"]
1​
[/td][td]
1​
[/td][td]Company[/td][td]Amount[/td][td]Paid/Unpaid[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
2​
[/td][td]
2​
[/td][td]Utility 1[/td][td]
50​
[/td][td]Paid[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
3​
[/td][td]
3​
[/td][td]Utility 2[/td][td]
100​
[/td][td]Paid[/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
4​
[/td][td]
4​
[/td][td]Utility 3[/td][td]
150​
[/td][td][/td][td][/td][/tr]
[tr][td="bgcolor:#C0C0C0"]
5​
[/td][td]
6​
[/td][td]Remaining[/td][td="bgcolor:#CCFFFF"]
150​
[/td][td][/td][td="bgcolor:#CCFFFF"]C5: =SUMIF(D2:D4, "<>Paid", C2:C4)[/td][/tr]
[/table]
 
Upvote 0
[TABLE="class: grid"]
<tbody>[TR]
[TD="bgcolor: #C0C0C0"][/TD]
[TD="bgcolor: #C0C0C0"]
A​
[/TD]
[TD="bgcolor: #C0C0C0"]
B​
[/TD]
[TD="bgcolor: #C0C0C0"]
C​
[/TD]
[TD="bgcolor: #C0C0C0"]
D​
[/TD]
[TD="bgcolor: #C0C0C0"]
E​
[/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
1​
[/TD]
[TD]
1​
[/TD]
[TD]Company[/TD]
[TD]Amount[/TD]
[TD]Paid/Unpaid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
2​
[/TD]
[TD]
2​
[/TD]
[TD]Utility 1[/TD]
[TD]
50​
[/TD]
[TD]Paid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
3​
[/TD]
[TD]
3​
[/TD]
[TD]Utility 2[/TD]
[TD]
100​
[/TD]
[TD]Paid[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
4​
[/TD]
[TD]
4​
[/TD]
[TD]Utility 3[/TD]
[TD]
150​
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: #C0C0C0"]
5​
[/TD]
[TD]
6​
[/TD]
[TD]Remaining[/TD]
[TD="bgcolor: #CCFFFF"]
150​
[/TD]
[TD][/TD]
[TD="bgcolor: #CCFFFF"]C5: =SUMIF(D2:D4, "<>Paid", C2:C4)[/TD]
[/TR]
</tbody>[/TABLE]


Thank you so much! I spent so much time trying to figure this out using the wrong formulas haha. I can see why you have the MVP status :)
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,039
Members
453,520
Latest member
packrat68

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