Compare month and year in excel 2003!

L

Legacy 169354

Guest
Hi,

I need to compare a month and year of a cell to assertain whether the cell should be a particular Date.

Excel 2003 is the product.

eg:
A B C
month ID Date
1 Jan 11 123 2 Jan 11
2 124 22 Jan 11
3 Feb 11 211 1 Feb 11
4 222 12 Feb 11

Logical Tests:

If A1 month and year is = C1 month and year THEN do nothing in A1
AND
If C3 month and year is <> C2 month and year THEN print in A3, the month and year of C3.

Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
This seems to work at the moment!

=IF(AND(MONTH(C382)=MONTH(C381),YEAR(C382)=YEAR(C381)),TRUE,FALSE)
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

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