Force = (mass) x (acceleration)
Mass = (force) / (acceleration)
The mass of the object is . . .
(force in the direction of acceleration) / (acceleration in that direction) .
If the normal force isn't in the direction of motion, then it isn't involved in the acceleration, and it can be ignored.
(In more-complicated problems, the normal force might produce a friction force along the direction of motion, and that would get involved with the applied force.)
To find the mass of an object given the applied force and acceleration, use Newton's second law: m = a F n e t . Identify the net force acting on the object, which may include the applied force minus any opposing forces like friction. Substitute your values into the equation to calculate the mass.
;