Formula to Sum Outstanding Amount Due

Yeterel

New Member
Joined
Jun 27, 2016
Messages
2
Hi there,

To assist the lady in accounts, I've been asked (an Excel newb) to create a spreadsheet that allows Accounts to keep track of outstanding invoices our clients are due to pay.

My example:

Zhf8lMe.jpg


So far I've made it so that information has to be input into cells A through to E.

30 days are added to the date input to E2, giving the due date in F2.
In G2, =TODAY()-F2 tells Accounts if an invoices is overdue.

If an invoice is marked as not paid in I2, the amount in D2 is red (I used conditional formatting =$I2="NO"). When invoices are paid, Accounts will change I2 to "YES" using a drop down menu and the font returns to black.

What I'm asking for here is that I need a formula for a cell that will Sum the amounts in Column D that are red.
I know from Google searches that I will need to use VB, but because of the Conditional Formatting, the codes don't seem to work as it's not picking up the font colour.

Any ideas?
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
you seem to be asking for total unpaid bills which could be =sumproduct(($d$2:$d$100)*($i$2:$i$100="NO"))

another similar formula sumproduct(($d$2:$d$100)*($i$2:$i$100="NO")*($h$2:$h$100="YES")) would be the overdue total
 
Upvote 0
you seem to be asking for total unpaid bills which could be =sumproduct(($d$2:$d$100)*($i$2:$i$100="NO"))

another similar formula sumproduct(($d$2:$d$100)*($i$2:$i$100="NO")*($h$2:$h$100="YES")) would be the overdue total


:eek: wow thank you, that's worked perfectly!
 
Upvote 0

Forum statistics

Threads
1,216,070
Messages
6,128,610
Members
449,460
Latest member
jgharbawi

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