TotallyConfused
Board Regular
- Joined
- May 4, 2017
- Messages
- 247
- Office Version
- 365
- Platform
- Windows
Hello
I’m having a problem with the date line in one of my reports. In my ‘Variables’ sheet, I have the following ranges and information.
I have named the cells in B1:B3 according to what you see in A1:A3. I know the range names are correct, because I can place the cursor any place on the sheet, then press F5, type in CUR_MONTH_V and the cursor will immediately jump to B2.
As part of the heading on my ‘Report’ sheet, I have the following line:
This line works great, except for one problem. The ‘Day’ and the ‘Year’ are fine, however, it doesn’t matter what number I enter for CUR_MONTH_V, I ALWAYS get January listed as part of the date on the report.
I thought perhaps there was something in that date line that was interfering with the month part, so as a test, and in a separate cell, I typed: =TEXT(CUR_MONTH_V,”MMMM”)
I still received the same answer of January.
As added information, the user starts out with MENU.xlsm. After selecting the button for this program, they enter the date. Here they type in 2017 6 7. Control then passes to this program, which links to (imports) that data. I can’t see where there would be a problem in this process because the ‘DAY’ and ‘YEAR’ work okay.
Why do I always receive the month of January for a date? Thank you in advance for any help or advice you are able to offer.
TotallyConfused
I’m having a problem with the date line in one of my reports. In my ‘Variables’ sheet, I have the following ranges and information.
Code:
A B
1 CUR_YEAR_V 2017
2 CUR_MONTH_V 6
3 CUR_DAY_V 7
I have named the cells in B1:B3 according to what you see in A1:A3. I know the range names are correct, because I can place the cursor any place on the sheet, then press F5, type in CUR_MONTH_V and the cursor will immediately jump to B2.
As part of the heading on my ‘Report’ sheet, I have the following line:
Code:
="As of Closing: "&TEXT(CUR_DAY_V,"DDDD ")&TEXT(CUR_MONTH_V,"MMMM ")&CUR_DAY_V&", "&CUR_YEAR_V
This line works great, except for one problem. The ‘Day’ and the ‘Year’ are fine, however, it doesn’t matter what number I enter for CUR_MONTH_V, I ALWAYS get January listed as part of the date on the report.
I thought perhaps there was something in that date line that was interfering with the month part, so as a test, and in a separate cell, I typed: =TEXT(CUR_MONTH_V,”MMMM”)
I still received the same answer of January.
As added information, the user starts out with MENU.xlsm. After selecting the button for this program, they enter the date. Here they type in 2017 6 7. Control then passes to this program, which links to (imports) that data. I can’t see where there would be a problem in this process because the ‘DAY’ and ‘YEAR’ work okay.
Why do I always receive the month of January for a date? Thank you in advance for any help or advice you are able to offer.
TotallyConfused