Change Month and Year in cell depending on todays date

Jaffabfc

Board Regular
Joined
Jul 5, 2013
Messages
233
Office Version
  1. 365
Platform
  1. Windows
Hi,

In Cell F5 i am wanting the cell today say Jan 2017 Hitrate if we are in January. If we go to February i want it to change to Feb 2017 Hitrate, and so on for every month after.

What possible formula can i do?

Ive tried putting it next to todays date on another tab and then vlooking against today() formula but it doesnt seem to work.

Tried =text(today(),"mmm-YYYY"&" Hitrate")
but that doesnt want to work either.

Any other ideas?

thanks
 
In Cell F5 i am wanting the cell today say Jan 2017 Hitrate if we are in January. If we go to February i want it to change to Feb 2017 Hitrate, and so on for every month after.

Or if you really did mean 2017 then..

=TEXT(EOMONTH(TODAY(),-12),"mmm YYYY")&" Hitrate"
 
Upvote 0
spot on everyone thanks.

Yes i should have realised i wouldnt get 2017 if i just put today() without -12. typical mistake lol.

Thanks again i knew i was close
 
Upvote 0

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