Excel month & year

sandeep_sarkar

New Member
Joined
Aug 10, 2020
Messages
7
Office Version
  1. 2010
Platform
  1. Windows
Dear Mr Excel Forum,

Greetings. Hope all is going well.

Like to take your advice. I entered this formula in cell F2 : =MONTH(B2:D2)&YEAR(B2:D2)=MONTH($G$1)&YEAR($G$1).

Excel date issue.JPG


But it is not working after pressing ctr+shift+enter.

Whatever month & year I type in G1 [say Sep-20] it will show TRUE or YES beside the names in Column F.

Please help.

Sandeep
Kolkata
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Do you want Date 1 or Date 2 or Date 3 to be equal to G1 or Date 1&Date2&Date to be equal to G1 to return True or False.

The Formula which you have entered is only returning is D1=G1
 
Upvote 0
1) When I type Sep-21 in F1, the matching month-year will be shown in Result Col-E (beside name) - marked as 'Renewal'.

Date-1.JPG


2) When I type Jul-20 in F1, the matching month-year will be shown in Result Col-E (beside name) - marked as 'Renewal'.

Date-2.JPG


3) When I type Oct-20 in F1, the matching month-year will be shown in Result Col-E (beside name) - marked as 'Renewal'.

Date-3.JPG


And so on.

Thanks,

Sandeep
 
Upvote 0
New Microsoft Excel Worksheet.xlsx
ABCDEF
2NameEnd Date1End Date2End Date3ResultSep-21
3xSep-21Oct-21Nov-21Renewal
4yJul-21Aug-21 
5zAug-21Sep-21Renewal
6
7
Sheet4
Cell Formulas
RangeFormula
E3:E5E3=IF(ISNUMBER(MATCH($F$2,$B3:$D3,0)),"Renewal","")
 
Upvote 0
Also i more question you have 8-Nov-2018 in 3rd table It will never match Nov 18.

The formula will only consider 1 st of Month
 
Upvote 0
Try This for above error

New Microsoft Excel Worksheet.xlsx
ABCDEF
2NameEnd Date1End Date2End Date3ResultSep-21
3xSep-21Oct-21Nov-21Renewal
4yJul-21Aug-21 
5zAug-21Sep-21Renewal
Sheet4
Cell Formulas
RangeFormula
E3:E5E3=IF(ISNUMBER(MATCH(MONTH($F$2)&"-"&YEAR($F$2),MONTH($B3:$D3)&"-"&YEAR($B3:$D3),0)),"Renewal","")
 
Upvote 0
Mr. Punit,

Thank you for your advice - its working. I have also tried with the following -

=IF(SUMPRODUCT((MONTH(B2:D2)=MONTH($G$1))*(YEAR(B2:D2)=YEAR($G$1)))=1,"Renewal","")

Thanks a lot,

Sandeep
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,025
Members
449,204
Latest member
LKN2GO

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