If <=9.3.1 you can simply use the grid variable $$YMAP in any Map Alegbra expression (ArcToolbox or Raster Calculator) - assuming you are working in a geographic coordinate system and you have set your analysis environment up (cell size, extent, etc).