+ Reply to Thread
Results 1 to 10 of 10

Getting wrong output by year formula

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Getting wrong output by year formula

    Hi friends,
    I want to have a financial year in devanagari font. For it I used text and year function combination and a code of devanagari font but I’m getting wrong output in cell v2. It should be as ‘2015-2016’ in devanagari font and not in English.

    Please Login or Register  to view this content.
    Any help will be highly appreciated.

    Thanking you.
    Sincerely,

    mso3

  2. #2
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Getting wrong output by year formula

    Hi MSO3,

    Try the following function and let me know if it works at your end.

    Formula: copy to clipboard
    Please Login or Register  to view this content.




    Cheers!!!
    Anil Dhawan
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  3. #3
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Getting wrong output by year formula

    Maybe :

    =TEXT(M2,"[$-9]yyyy")&" - "&TEXT(M2,"[$-9]yyyy")+1

  4. #4
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Getting wrong output by year formula

    Quote Originally Posted by azumi View Post
    Maybe :

    =TEXT(M2,"[$-9]yyyy")&" - "&TEXT(M2,"[$-9]yyyy")+1
    What my understanding says your formula will not return the year in devanagari font as asked by OP. Your result will return to 2015-2016 instead of "२०१५-२०१६". Correct if my understanding is wrong.


    Cheers!!!
    Anil Dhawan

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Getting wrong output by year formula

    Hi adhawan, Thanks for reply, yes you right, miss read the requirement, change to :

    =TEXT(DATE(YEAR(M2),1,1),"[$-4000000]yyy")&"-"&TEXT(DATE(YEAR(M2)+1,1,1),"[$-4000000]yyy")

    hope this works

  6. #6
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting wrong output by year formula

    Hi Anil,
    Thank you. It's working fine.

    Please let me know for which devanagari font the code [$-4010000] is used.

    Thank you.

  7. #7
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting wrong output by year formula

    Hi azumi,
    Perfect! It's working fine.

    Thank you.

  8. #8
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Getting wrong output by year formula

    Quote Originally Posted by mso3 View Post
    Hi Anil,
    Thank you. It's working fine.

    Please let me know for which devanagari font the code [$-4010000] is used.

    Thank you.
    Hi MSO,

    I just tested it with the standard Hindi Devnagari font code which is [$-4010000]. However, you can use any one [$-4010000] or [$-4000000].

    Also, you can use [$-4390000] too as the [$-439] font code uses for Hindi. E.g. If you want to return to "मई", then you can try with "=TEXT(M2,"[$-439]mmmm")"

    You can also refer to the region wise code list. Specifying_a_Language_for_the_TEXT_Function

    Also, I have found where you have posted the same thread just few months back - Old Post

    Let me know if my answers work for you.


    Cheers!!!

    Anil Dhawan
    Last edited by adhawan06; 05-19-2015 at 07:25 AM. Reason: Change the HTML tag to URL Tag

  9. #9
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting wrong output by year formula

    Hi Anil,
    Thank you.

    Sorry I forgot the formula and also the post.

    The formula is working fine but just for information I asked you.

    Please do use url tag for links to open it from the post instead of html tag.

    http://www.excelforum.com/excel-form...yy-format.html


    Thank you and have a nice day.

  10. #10
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Getting wrong output by year formula

    Quote Originally Posted by mso3 View Post
    Hi Anil,
    Thank you.

    Sorry I forgot the formula and also the post.

    The formula is working fine but just for information I asked you.

    Please do use url tag for links to open it from the post instead of html tag.

    http://www.excelforum.com/excel-form...yy-format.html


    Thank you and have a nice day.
    Thanks for correcting me...Yeah I forget to add url tag and used html. :P

    You too have a nice day...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 04-22-2015, 08:08 AM
  2. formula to output upcoming quarter end date (for a broken fiscal year)
    By canaille in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-22-2014, 05:01 PM
  3. Quotation marks in formula giving wrong output
    By pcfreakshow in forum Excel General
    Replies: 1
    Last Post: 10-11-2012, 03:00 PM
  4. Getting false when i should be getting true in (=INT(CELL)=CELL)
    By phbryan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2012, 09:51 AM
  5. Excel assumes wrong year when year omitted
    By CircleSky in forum Excel General
    Replies: 3
    Last Post: 06-12-2006, 05:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1