Excel Formula Help

Gliffix101

Board Regular
Joined
Apr 1, 2014
Messages
81
Happy Monday! Hoping this is a quick and easy one for you all.

I have four fields:

Column AE: Order Status
Column AF: Order Status Date
Column AG: Billing Status
Column AH: Billing Status Date

I need to write a formula that returns the days between the Status Date and today IF the Order Status or Billing Status equals "Outstanding". Some examples:

A) Order Status = Outstanding (9/9/18), Billing Status = Pending (9/9/18) - return the days (1) between Today (9/10/18) and Order Status Date (9/9/18)

B) Order Status = Received (9/9/18), Billing Status = Outstanding(9/8/18) - return the days (2) between Today (9/10/18) and Billing Status Date (9/8/18)

C) Order Status = Outstanding (9/9/18), Billing Status = Outstanding (9/8/18) - return the days (2) between Today (9/10/18) and the MIN of Order Date (9/9/18) and Billing Date (9/8/18).

Hoping this makes sense.

Thanks,

Bill
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try this formula row 2:
Code:
=IF(AND(AE2="Outstanding",AG2="Outstanding"),TODAY()-MIN(AF2,AH2),IF(AE2="Outstanding",TODAY()-AF2,IF(AG2="Outstanding",TODAY()-AH2,"")))
 
Upvote 0
edit

i see you have a reply

ignore

i would like to see a table showing all the
order status and possible billing status and result needed

outstanding - pending - (date calc > today() - order status date)
outstanding - outstanding - (date calc > today() - min of order status date or billing date)
outstanding - {other possible billing status} - ({date calc > today() - ????})

received - outstanding - (date calc > today() - billing status date)
received - {other possible billing status} - ({date calc > today() - ????})\

other possible order status

so we can see all possible status combinations and date calculations required\
 
Last edited:
Upvote 0
You are welcome.

I have it set to return nothing if neither column is Outstanding. You can easily change that by replacing the "" at the end with any text or calculation that you want.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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