Formula for SUM of based on cell value

LaurDor88

New Member
Joined
Feb 5, 2015
Messages
3
Hi all,

I really need help with calculating the SUM of 3 different values.

I've got a spreadsheet for my finances, and my bills/outgoings.

In Column A is simply the name of the bill i.e. debtor/company
In Column B I have the date that the bill is due.
In Column C I have the amount of the bill i.e. £100 or whatever it may be.
In Column D I have whether or not the bill has been paid (or not yet due) - I have used conditional formatting on this so it highlights red/yellow/green accordingly.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Bill[/TD]
[TD]Due Date[/TD]
[TD]Amount[/TD]
[TD]Paid?[/TD]
[TD][/TD]
[TD]Sums[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Car[/TD]
[TD]1/1[/TD]
[TD]100[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]Paid[/TD]
[TD]=[/TD]
[/TR]
[TR]
[TD]Tax[/TD]
[TD]8/2[/TD]
[TD]30[/TD]
[TD]Not Yet Due[/TD]
[TD][/TD]
[TD]Yet to be paid[/TD]
[TD]=[/TD]
[/TR]
[TR]
[TD]Phone[/TD]
[TD]2/2[/TD]
[TD]30[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]Unlawfully Outstanding[/TD]
[TD]=[/TD]
[/TR]
</tbody>[/TABLE]


Now, I need to calculate based on whether or not it has been paid. I want three SUMs...
1. Amount Paid (i.e. Column D = "Yes")
2. Amount Yet To Be Paid (i.e. Column D = "Not Yet Due")
3. Amount Unlawfully Outstanding (i.e. Column D = "No")

Is there any way of doing this?

Thank you all.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi all,

I really need help with calculating the SUM of 3 different values.

I've got a spreadsheet for my finances, and my bills/outgoings.

In Column A is simply the name of the bill i.e. debtor/company
In Column B I have the date that the bill is due.
In Column C I have the amount of the bill i.e. £100 or whatever it may be.
In Column D I have whether or not the bill has been paid (or not yet due) - I have used conditional formatting on this so it highlights red/yellow/green accordingly.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Bill[/TD]
[TD]Due Date[/TD]
[TD]Amount[/TD]
[TD]Paid?[/TD]
[TD][/TD]
[TD]Sums[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Car[/TD]
[TD]1/1[/TD]
[TD]100[/TD]
[TD]Yes[/TD]
[TD][/TD]
[TD]Paid[/TD]
[TD]=[/TD]
[/TR]
[TR]
[TD]Tax[/TD]
[TD]8/2[/TD]
[TD]30[/TD]
[TD]Not Yet Due[/TD]
[TD][/TD]
[TD]Yet to be paid[/TD]
[TD]=[/TD]
[/TR]
[TR]
[TD]Phone[/TD]
[TD]2/2[/TD]
[TD]30[/TD]
[TD]No[/TD]
[TD][/TD]
[TD]Unlawfully Outstanding[/TD]
[TD]=[/TD]
[/TR]
</tbody>[/TABLE]


Now, I need to calculate based on whether or not it has been paid. I want three SUMs...
1. Amount Paid (i.e. Column D = "Yes")
2. Amount Yet To Be Paid (i.e. Column D = "Not Yet Due")
3. Amount Unlawfully Outstanding (i.e. Column D = "No")

Is there any way of doing this?

Thank you all.

a sumif() solution;

for the paid =SUMIF(D2:D4,"=yes",C2:C4)
similarly, replace "=yes" with "=Not Yet Due" and "=No" for the others
 
Upvote 0
Welcome to the board....
Assuming that your SUMS column is E and your criteria are starting on E2, on E2 try:

Code:
E2 =SUMIF($D$1:$D$3,"Yes",$C$1:$C$3)
E3 =SUMIF($D$1:$D$3,"Not yet due",$C$1:$C$3)
E4 =SUMIF($D$1:$D$3,"No",$C$1:$C$3)
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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