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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,214,601
Messages
6,120,460
Members
448,965
Latest member
grijken

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