VBA If...Then... Dates

Kylekest

New Member
Joined
Jun 4, 2015
Messages
1
Here's the situation, working at a bank and I have a workbook that show the required documents needed for commercial customers. Anyway, Column A is the frequency we need to Financial statement (Annually or Quarterly), Column B is the date we received their last Financial statement. What I want to happen is that if Column A is Annual and Column B date is over a year old, then "Need" shows up in column C. Additionally if Column A says Quarterly and Column B is over 90 days old then Column C displays "Need." Please help I have some macros experience but not enough to figure this one out.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Chrisdontm

Well-known Member
Joined
May 4, 2015
Messages
811
You could try putting this formula in column "C" and copying it down;
=IF(OR(AND(A2="ANNUALLY",DAYS(TODAY(),B2)>365),AND(A2="QUARTERLY",DAYS(TODAY(),B2)>90)),"NEED","")
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,012
Messages
5,834,914
Members
430,326
Latest member
tomwax46

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
Top