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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
L

Legacy 169354

Guest
This seems to work at the moment!

=IF(AND(MONTH(C382)=MONTH(C381),YEAR(C382)=YEAR(C381)),TRUE,FALSE)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,032
Messages
5,856,939
Members
431,841
Latest member
jaybeem

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
Top