The short answer
The Celts are older. Celtic cultures can be traced in central Europe from about 800 BCE, and the Viking Age did not begin until 793 CE. That leaves roughly 1,600 years between the two, using these conventional dates.
Who the Celts were
“Celts” is a label that ancient Greek and Roman writers used for peoples of Iron Age Europe who spoke related Celtic languages. Modern scholars use the term more cautiously, since the groups it covers did not share one state, one religion or one identity.
The Hallstatt culture, named after a site in Austria, is often described as the earliest well-defined Celtic culture. It is traditionally dated from about 800 BCE, though its earlier roots are debated. The later La Tène culture, from about 450 BCE, spread across much of Europe and reached into Britain and Ireland.
Who the Vikings were
The Vikings were Scandinavian people who travelled abroad from the late 8th century to around the 11th century. They spoke Old Norse, a North Germanic language, and their roots lie in the Nordic Iron Age, which begins around 500 BCE.
Where the Norse people came from in Scandinavia is a separate question, and the answer is covered in where did the norse vikings come from. Their origins are older than the Viking Age, but the Viking Age itself is much younger than the Celtic cultures.
Why the gap is so large
The Celts had centuries of history before the Vikings appeared. Even with conservative dates, the Celtic cultures predate the Viking Age by more than a millennium and a half. Both groups belong to the Indo-European family of languages, so they are distantly related, but their languages come from different branches.
The labels can make the comparison look closer than it is. Celtic and Norse peoples were both Iron Age societies in Europe, but they lived in different regions and across very different timelines.
Where Celts and Vikings overlapped
The two groups met in Britain and Ireland. Celtic-speaking peoples lived across these islands when Scandinavian raiders and settlers arrived. Norse settlers founded Dublin in the 9th century, and Norse and Gaelic communities lived side by side in parts of Ireland and Scotland.
So the two were not separate worlds. They overlapped in place, even though the Celtic cultures came long before the Vikings.