John Anderson's campaign filed enough signatures yesterday to get on the Arizona ballot, but by falling 27 signatures short in New Hampshire missed fulfilling ballot requirements in all 50 states.

Anderson also won a court victory putting him on the ballot in North Carolina.

The independent presidential candidate, who was boning up for Sunday's debate with Ronald Reagan, announced in Washington that his campaign had met ballot requirements in Arizona and New Hampshire and expected to be on the ballot everywhere in November. "Our success marks a milestone in American political history," he said.

But when his workers dropped off their petitions at the New Hampshire Statehouse in Concord, they were found 27 short of the 1,000 needed to get him on the ballot.

Anderson can still meet the requirement, however, because the deadline to register an independent candidacy in New Hampshire is Sept. 24.

Thirty-four states and the District of Columbia with a total of 361 Electoral College votes have certified Anderson as a candidate.

Only in Carter's home state of Georgia is there a pending legal battle, in which lawyers for the Anderson Campaign are fighting attempts by state officials to deny certification.

About 2 million people have signed petitions since Anderson announced he was running as an independent last April 24.