Trouble Changing date Formats

Simonc64

Active Member
Joined
Feb 15, 2007
Messages
251
Office Version
  1. 365
Good Morning All

I have a datasheet that looks at health interventions in an organisation.

A data feed I receive populates the datasheet with the dates on which these interventions happen and I calculate the next due date of the intervention for an individual - nothing complicated, quite simply =IF(A2>0,A2+364,"-")

To be helpful and offset any unwanted user queries Ive added in some text, again nothing complicated, =IF(A2>0,CONCATENATE("Due by"&" "&TEXT((A2+364),"DD/MM/YYYY")),"-")

All of which works really well and the users are happy; however I have users now who like the specific "DD/MM/YYYY" output but others who prefer a more general "MM/YYYY". Easily resolved or so I thought - i'll just write a macro to change the "DD/MM/YYYY" to "MM/YYYY" in my formulae, but no! Something, and I presume its to do with date formats, is stopping this from happening. the formulas are changing but the output isn't

If anyone has any solutions id be very grateful!

Thanks

Simon
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Is formula calculation automatic? Just in case check the far right on the Formulas tab.
I can't really imagine what can cause this behavior.

or try to extract the month and the year separately:
Code:
=IF(A2>0,CONCATENATE("Due by ",TEXT(MONTH(A2+364),"00"),"/",YEAR((A2+364))),"-")
BTW, you don't need to use & when you use concatenate().
 
Upvote 0

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

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