You likely mean Sir Ian McKellen, who portrayed Gandalf (Gandalf the Grey / Gandalf the White) in Peter Jackson's The Lord of the Rings film trilogy (2001–2003).
"Ian" is not a character in the story — J.R.R. Tolkien is the author of the original novels. McKellen's performance is widely considered definitive, earning him an Academy Award nomination for The Fellowship of the Ring.