Expenses greater than 90 days

AnnaO

New Member
Joined
Oct 3, 2018
Messages
1
I have a pretty large spread sheet that shows expenses for a quarter. On the spreadsheet there’s the date each expense was incurred and the date it was approved. I’m trying to isolate the expenses that were approved more than 3 months after they were incured (>90 days). Is there a formula I can use to calculate this? Thanks in advance for your help!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
.
Assuming the beginning dates are in Col A ... ending dates are in Col B ... and the difference is in Col C :

Code:
Option Explicit


Sub FilterDescription()


Dim strName As String
Dim range_to_filter As Range
On Error Resume Next
Set range_to_filter = Range("C2:C20")


Application.ScreenUpdating = False
Range("A1:C1").Select
    Selection.AutoFilter
    range_to_filter.AutoFilter Field:=3, Criteria1:=">30"
    Range("A1").Select
Application.ScreenUpdating = True


End Sub


Sub Clear_All_Filters_Range()
On Error Resume Next
  
  Application.ScreenUpdating = False
    Sheet1.ShowAllData
    ActiveSheet.AutoFilterMode = False
  Application.ScreenUpdating = True
  
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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