Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comma Displayed in Calculate Result 1

Status
Not open for further replies.
May 10, 2006
22
US
I have a caluclated column used to calculate a fiscal year.

[tab][small]=IF(NextReleaseDate=DATE(2009,7,1),YEAR(NextReleaseDate),IF(MONTH(NextReleaseDate)<7,YEAR(NextReleaseDate),(YEAR(NextReleaseDate)+1)))[/small]

It gives a correct year, but the displayed result is less than desireable due to the addition of a comma in the number.
039.jpg


I've tried having the result returned as single line text but it still returns the number with a comma in the thousands position. Trying to use the Date and Time option does not work as it attempts to return a full calendar date instead of just the year.

If I could get the comma to not display that would be ideal. Any help is appreciated.
 
Try wrapping your function with the TEXT function:

Code:
=TEXT(IF(NextReleaseDate=DATE(2009,7,1),YEAR(NextReleaseDate),IF(MONTH(NextReleaseDate)<7,YEAR(NextReleaseDate),(YEAR(NextReleaseDate)+1))),"@")
 
Okay, I used a slightly different version of what you provided and it worked perfectly.

Code:
=TEXT(IF(NextReleaseDate=DATE(2009,7,1),YEAR(NextReleaseDate),IF(MONTH(NextReleaseDate)<7,YEAR(NextReleaseDate),(YEAR(NextReleaseDate)+1))),"0")

Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top