A two-story office building in River Edge has changed hands after several years on the market, following a transaction brokered by NAI James E. Hanson.