I am trying to implement a formula , but somewhere I am doin wrong.
="Incremental Numbers Of The Branches Between 1 and 275 For the Month of "+Month(Max(ToDate([MIS Account Open Month ID];"MMM"))+" "+FormatNumber(Year(Max(ToDate([MIS Account Open Month];"YYYY")));"####")
The value in MIS Account Open Month ID is like (200804,200706) and it should be read as April 2008 or June 2006.
Please someone give some suggestion or solution to this problem.
But why don’t you convert it to a string and trim the last two digits and then with an If Else If logic, bring out the month name in the place of month number?
ToDate function accepts only string. So FormatNumber function is used to convert a number into a string in the needed format. As far as I know =FormatNumber(200804 ,"") will result in 200,804 including thousands operator ‘,’ in the number. To get rid of that and =FormatNumber(200804 ,"####.00") will result in 200804.00 giving two decimal places to the number. So it is up to us to choose either # or 0 without ‘.’ to get the desired format.
="Incremental Numbers Of The Branches Between 1 and 275 For the Month of "+FormatDate(ToDate(FormatNumber([MIS Account Open Month ID] ;"000000") ;"yyyymm") ;"Mmmm yyyy")
It is not displaying anything , i think there is some mistake in the code i am using,
If i want to use Max with this , can it be implemented . I tried using
="Incremental Numbers Of The Branches Between 1 and 275 For the Month of "+Max(FormatDate(ToDate(FormatNumber([MIS Account Open Month ID] ;"000000") ;"yyyymm") ;"Mmmm yyyy"))
The values for Month is in number : 200801,200802, 200808
Now first i calculated the max , Max([Month Id]) it gave me = 200,808
Then as per the prvious query i used :
FormatNumber(Max([Month Id]);“000000”) it gave me = 200808
Now after that i tried using , ToDate function , but its giving January’s data. and its displaying Januray 2008 but i want to display August 2008I don’t know why it’s happening , and i am struggling with this problem from a long time , please if someone can through some light on this …!!1
Post your exact formula and try using FormatDate. Previously you got the solution after trying what was suggested in that link right? Also you could have continued there itself instead of opening a new topic for the same problem
Ya i know i could have continued that , but i thought if i continue then the 3 days back post will open again , and thats the reason i dint post there.
And the exact formula I am using is :
The below forula gives me : 200808
="Banding Numbers For The Month of "+FormatNumber(Max([Financial Month ID]);“000000”)
Finally i want to display August 2008 , but when i am using todate() function , it is showing 1/1/70 , i think its not taking todate() function ,
so now i got stuck , as the final output with the final formula is
="Banding Numbers For The Month of "+FormatNumber(Max([Financial Month ID]);“000000”) = 200808
And i need it to be August 2008. But nothing seems to work here.