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.
 

Some videos you may like

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Chrisdontm

Well-known Member
Joined
May 4, 2015
Messages
810
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","")
 

Watch MrExcel Video

Forum statistics

Threads
1,127,331
Messages
5,624,061
Members
416,008
Latest member
PETE91

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