Ancestry's search algorithm can't do this. Did you ask a similar question on another board?
Addendum: I just tried it using DOB=1923+/2, Relationship=Wife, Status=Married. For all of these I wanted an exact match. There is nowhere to add the age of the spouse.
Besides, what if she wasn't with him for the 1940 census? He may have been in the military and not listed at his home address.