Formula to rank invoices based on status and date

Javielin

New Member
Joined
Mar 24, 2019
Messages
1
HELLO, I ALREADY HAD SPEND TO MUCH TIME TRYING TO FIND THIS FORMULA FOR MY OWN,
SO I DECIDED TO ELEVATE THIS TO THE EXPERTS.
IM LOOKING FOR A FORMULA TO RANK INVOICES BASED ON STATUS AND DATE.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]STATUS[/TD]
[TD="align: center"]DATE[/TD]
[TD="align: center"]RANK (must Be)[/TD]
[TD="align: center"]RANK FORMULA[/TD]
[/TR]
[TR]
[TD]PAID[/TD]
[TD]31-JAN-2019[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PAST DUE[/TD]
[TD]28-FEB-2019[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]PAST DUE[/TD]
[TD]31-MAR-2019[/TD]
[TD]2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DUE TODAY[/TD]
[TD]30-ABR-2019[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CURRENT[/TD]
[TD]31-MAY-2019[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CURRENT[/TD]
[TD]30-JUN-2019[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 473"]
<tbody>[TR]
[TD]My arguments are the followings:[/TD]
[/TR]
[TR]
[TD]IF STATUS IS "PAID" RANK MUST BE THE LAST ONE[/TD]
[/TR]
[TR]
[TD]IF STATUS IS "PAST DUE" AND CELL DATE IS THE OLDEST FROM OTHER "PAST DUE" DATES, RANK FIRST[/TD]
[/TR]
[TR]
[TD]IF STATUS IS "DUE TODAY" AND THERE IS NOT ANY OTHER "PAST DUE", RANK FIRST[/TD]
[/TR]
[TR]
[TD]IF STATUS IS "CURRENT" AND THERE IS NOT ANY OTHER "PAST DUE", AND CURRENT DATE IS OLDEST FROM OTHER CURRENT, RANK FIRST[/TD]
[/TR]
</tbody>[/TABLE]


APRECIATE ANY HELP.
[TABLE="width: 476"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,958
Messages
6,175,636
Members
452,662
Latest member
Aman1997

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