View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Touk Touk is offline
external usenet poster
 
Posts: 2
Default Comparing cell values

How do I use VBA to compare data in two cells to return
something. Eg. Column B has numbers,but no zero values,
and Column C has numbers but can contain blank cells.
How do I write code to say if it has numbers in Column C
then to do a calculation that says if column C - Column B
< + 1 or - 1, then in column D type "Within Range"
else "out of range".