# Make different calculations depending on current month

#### cogumelo

##### Board Regular
Hi guys,

Can anyone help me out sorting this issue i have?

What i'm trying to is to get a formula that makes a calculation for all the previous months (this year and the previous ones). For the current month (and following months) the cell value will always be "".

I've come up with this but it's not working.

=IF(NOT(MONTH(NOW())&YEAR(NOW()));"make calculation 1";"")

joao

### Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Assuming the date to reference is in cell A1

=IF(A1 < DATE(YEAR(TODAY()),MONTH(TODAY()),1),"Make Calc","")<date(year(today()),month(today()),1),"make calc","")"<date(year(today()),month(today()),1),"make="" calc","")<="" html=""></date(year(today()),month(today()),1),"make>

Last edited:
hi, thanx for your reply. The problem i'm having is that i'm trying to do it without referencing to any other cell. If the file is open on the current month of the year then there is no calculation to be done.

regards

When you say Open on the current month, I am not sure what you mean? Can it be opened on any other day or month asides the current one?

Replies
4
Views
361
Replies
3
Views
305
Replies
13
Views
723
Replies
6
Views
287
Replies
12
Views
898

1,203,605
Messages
6,056,269
Members
444,853
Latest member
sam69

### 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.

### Which adblocker are you using?

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

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