Complicated IF Dilema

sco315

New Member
Joined
Jun 3, 2015
Messages
6
This may sound a little confusing so bear with me. I have one workbook with around 30 or so worksheets. Each worksheet has a goal for each month and keeps track of the progress made to date. On the final page, I compare each goal to what has been completed depending on the month. However, I don't want to manually switch what cell is used month to month. I want to have a code so that depending on the date accessed (today's date) is selects the correct cell for my equations.



Thanks,
Steve
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I suspect you'll end up using the INDIRECT function to convert today's date into a desired sheet name (presumably month and year names).

Instead of this (manually changed every update):
='May 2015'!D14

You could replace that with this:
=INDIRECT("'"&TEXT(EOMONTH(TODAY(),-2)+1,"mmmm yyyy")&"'!D14")

The second formula would always look in D14, but only on a sheet with a name of the previous month from today's date.
 
Upvote 0

Forum statistics

Threads
1,203,082
Messages
6,053,419
Members
444,662
Latest member
AaronPMH

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