Return Minimum value with multiple criterion

brycer

New Member
Joined
Jul 18, 2019
Messages
2
Hello,
I'm working on creating a formula to tell me the oldest outstanding invoice based on Job #. I have a pivot table that shows an outstanding amount, if any, for each invoice. Each customer has multiple invoices.

Ideally, the user would input the job #, and the formula would return the oldest outstanding invoice for that specific job.

The minimum (date) value would be returned after meeting to criterion:

1. Job numbers need to match
2. Open amount > $0

I tried (and failed) with the formula below:

=IF(AND(P:P=$V1,S:S>1),MIN(R:R),"")

Where V1 is the Job# input, Column P is the list of Job #'s, Column S is the Open Amounts, and Column R is the dates.


Any help is appreciated, thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Excel Workbook
PQRSTUV
1Job #'sotherDateAmountjob #1234
298196/26/201961Oldest6/14/2019
381706/18/201919
460906/12/201943
536066/17/201936
612346/21/201928
733996/13/201998
865986/22/20196
912346/16/201972
1099396/20/201986
1144206/25/201952
1294886/19/201932
1312346/24/20190
1412346/14/201933
1516106/15/201925
1681036/23/20198
Sheet8
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

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