View Single Post
  #3   Report Post  
Mazzaropi Mazzaropi is offline
Senior Member
 
Location: Belo Horizonte, Brazil
Posts: 170
Thumbs up

Quote:
Originally Posted by NISMOJim View Post
I am working in Excel 2003, and am new to programming in Excel.
Column A is an imported date (mm/dd/yyyy), Column B is the same date (=A1 formatted as mmm) so that any year will work the same, and column C is text. In column D I want a statement something like this:
=IF(B1="Apr" AND C1="Joe",1,0).
Of course, this isn't working, even though it looks to me like it should. What am I missing? Any help with how to get this working as expected would be greatly appreciated.
--------------------------------------------------------------------------

Dear NISMOjim, Good Morning

You donīt need to use another colunm to control monthīs date.

Try this one: IF(AND(MONTH(A1)=4,C1="JOE"),1,0)

Use the monthīs number.(1=Jan;2=Feb;3=Mar...)
__________________
I hope it can help you.

Best regards,
Marcilio Lobão
---------------------------
Belo Horizonte, Brazil