All have sinned
(Romans 3:9-10) - "What then? Are we better than they? Not at all; for we have already charged that both Jews and Greeks are all under sin; 10as it is written, "There is none righteous, not even one."
(Romans 3:23) - "for all have sinned and fall short of the glory of God."
(Psalm 14:3) - "They have all turned aside; together they have become corrupt; there is no one who does good, not even one."
1 John 5:19 – Whole world lies in wickedness
All have not sinned
(Job 1:1) - "There was a man in the land of Uz, whose name was Job, and that man was blameless, upright, fearing God, and turning away from evil."
(Genesis 7:1) - "Then the Lord said to Noah, "Enter the ark, you and all your household; for you alone I have seen to be righteous before Me in this time." (See Gen. 6:8-9)
Conclusion:
The Bible clearly teaches that all people have sinned -- except Jesus (1 Peter 2:22). Romans 3:23 clearly condemns all under sin.
But when it mentions people like Job, Noah, Zacharias, and Elizabeth as people who were "blameless" and "righteous" it is not saying that they are not sinners.
It is saying that they were godly people, who kept the commandments of God and in that sense, they were righteous.
But of course, we realize that no one can keep the commandments of God perfectly which is why all people are deserving of damnation (Eph. 2:3) and why we need a savior.
If righteousness can come through the Law, then Christ died needlessly (Gal. 2:21).
Adapted from: http://carm.org/bible-difficulties/genesis-deuteronomy/have-all-people-sinned-or-not