Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an excel sheet wich has several names with a cell with the year only (eg. 2012), I want to have an excel function which will compare the year cell (I have declare it as number, it is not full date only year) and if it is lower than eg. 2012 to display the results in a different sheet or color the rows as red or something. Is there any excel function or needs a vbscript?

Thank you
Kyriakos
Posted

1 solution

If you want to colour the rows themselves then you need to use "Conditional Formatting" (It's long-winded to explain exactly what to do but google pulls up lots of good tutorials and tips)

Unfortunately you can't use conditional formatting to refer to a different sheet, and certainly if you wanted to copy or move the data to another sheet you will need to write a VBA script and have a button or something to run the macro
 
Share this answer
 
Comments
Member 3892343 23-Jan-13 6:12am    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900