Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).
Adding the Macro
1. Copy the below macro, by highlighting the macro code and pressing the keys CTRL + C
2. Open your workbook
3. Press the keys ALT + F11 to open the Visual Basic Editor
4. Press the keys ALT + I to activate the Insert menu
5. Press M to insert a Standard Module
6. Paste the code by pressing the keys CTRL + V
7. Press the keys ALT + Q to exit the Editor, and return to Excel
With Range("B2:B" & Cells(Rows.Count, "A").End(xlUp).Row)
.FormulaR1C1 = "=IF(RC[-1]="""","""",IF(MOD(RC[-1],2)=0,""even"",""odd""))"
.Value = .Value
Dim LR As Long, i As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To LR
With Range("A" & i)
Select Case .Value
Case "": .Offset(, 1).Value = "Null"
Case Else: .Offset(, 1).Value = IIf(.Value Mod 2 = 0, "Even", "Odd")
Thank you very much Peter...<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o> <o></o> so very close... let me explain what I am trying to accomplish--<o></o> <o></o> I have a spreadsheet that, in column A starting at row 2 through a variable number of rows, the following values exist:<o></o> <o></o> 1) a number from 1 through x or,<o></o> 2) the value "Description:" (plus a description in the row following) or,<o></o> 3) the value "Comment:" (plus the comment in the row following<o></o> <o></o> If the value is a number, i need to know if the number is odd or even so that I may do various formatting to the cells in that row (columns A thru H) such as set the fill color to something (for even) and something else (for odd) and set the border to a certain value. I believe that I do not have any issues with knowing what to code for setting fill colors or setting borders.<o></o> <o></o> If the value is "Description:", i need to move the value to the B column in the same row and blank ("") the A column in the same row. Additionally, I need to move the row immediately following "Description:" to column B, blank ("") column A in that row and set columns B thru H to merge with wrap text = true in that row.<o></o> <o></o> If the value is "Comment:", i need to do the exact same thing as described in the paragraph above.<o></o> <o></o> Hope this make sense... if not, please let me know...<o></o> <o></o> Thanks again so very much...<o></o>