Did you read Excel Help for DEC2HEX?
"If number < -549,755,813,888 or if number > 549,755,813,887, DEC2HEX
returns the #NUM! error value."
Remember also that Excel numbers are stored to a precision of 15 significant
figures.
If you have your 18 digits as a string in A1 you can get an *approximation*
to the result by breaking it up, such as
=DEC2HEX(A1/2^32)&DEC2HEX(MOD(--A1,2^32))
That gives 3B9ACA06B5510E0
If you convert it back, again breaking it up to manageable chunks,
=HEX2DEC(LEFT(A2,LEN(A2)-8))*2^32+HEX2DEC(RIGHT(A2,8))
gives 268435457800737000
If you look at your result, you will realise that 3B9ACA06B551480 cannot be
an accurate answer, as with zero at the end it must be a multiple of 16,
which 268435457800737937 isn't.
Doubtless with a more complicated segmentation of the text strings, you
could get the correct answer. For what it's worth, the Windows calculator
gives 3B9ACA06B551491