Formula to total amount of past due based on date in cell

halloyd

New Member
Joined
Sep 14, 2018
Messages
17
Hi there,

Trying to get a total count of past due claims based on a due date specified in a cell. Each due date for each claim is different.

Here's a screenshot of what I'm working with:

tAHfkfw.png


So basically, I want it to look at the "Due Date" column (H3:H53), compare it to the "Compltd" column (A3:A53), and return the number of claims that were completed late.

Thank you. Let me know if you need any additional explanation.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to Mr Excel

See if this does what you need
=SUMPRODUCT(--(A3:A53>H3:H53))

M.

Yes, this seems to be working when each column has a value. Thank you!

Question: The way this workbook is set up is so we have an active tab and then tabs for each month for completed claims. The active tab does not have a completed date, and is instead filled as "'-". This formula is not counting these correctly. Is there another formula that would allow us to compare today's date with due date to give the same results? Should I just put something in the completed column that calculates today's date?
EX:
8OV4Pdn.png


Also, I would like to extend this down to around line 300 so that if that many lines are added they are included in the formula. However, if a date is missing from either column it's pulling from, it gives me a value error. The columns it's pulling from are formulas and do have value errors if one or the other is missing, so I tried removing those value errors to be blank and it seems to skewer the results of your formula. If that makes sense.

Thanks!!
 
Upvote 0
To compare Due Date with Today maybe something like this

=SUMPRODUCT(--(H3:H53>TODAY()),--ISNUMBER(H3:H53))

M.
 
Upvote 0
Also, I would like to extend this down to around line 300 so that if that many lines are added they are included in the formula. However, if a date is missing from either column it's pulling from, it gives me a value error. The columns it's pulling from are formulas and do have value errors if one or the other is missing, so I tried removing those value errors to be blank and it seems to skewer the results of your formula. If that makes sense.

Thanks!!
This is what I am referring to. It's in the dropbox example, but I'll show you:
4vVv9Oj.png


The highlighted cell corresponds to the highlighted formula. The N/A in column G is causing the #VALUE in column H.

19N3HcZ.png


The red arrow shows what formula is in column H's #VALUE cell.

I appreciate your responsiveness!
 
Upvote 0
You need an array formula
=SUM(IF(ISNUMBER(A3:A53),IF(ISNUMBER(H3:H53),IF(A3:A53>H3:H53,1))))
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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