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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,215,045
Messages
6,122,840
Members
449,096
Latest member
Erald

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