This page presents an implementation of Newmark's Method that allows for the calculation of structural response to a variety of displacements and excitations. Nathan Newmark first published this numerical time-stepping method in 1959. This particular implementation is based on Anil Chopra's excellent Dynamics of Structures textbook.
The spreadsheet allows for various forms of excitation:
initial displacement
initial velocity
arbitrary forcing via p(t)
impulse load
harmonic forcing
inertial loading from a base excitation
Newmark, Nathan M. "A method of computation for structural dynamics." Journal of the engineering mechanics division 85, no. 3 (1959): 67-94.
Chopra, Anil K. Dynamics of Structures, 5th Ed. Pearson, 2016.