There are 929 chapters in the Old Testament and 260 chapters in the New Testament. This gives a total of 1,189 chapters. So we need to find out where Chapter number 595 is found since it would be at the exact middle of the list of chapters (594 chapters before it, 594 chapters after it). A standard edition of the bible begins with the five books of the Pentateuch, Genesis, Exodus, Leviticus, Numbers, Deuteronomy; these contain altogether 187 chapters. Then there are the so-called historical books, Joshua, Judges, Ruth, 1&2 Samuel, 1&2 Kings, 1&2 Chronicles, Ezra, Nehemiah, Esther; these give altogether another 249 chapters. Then comes the book of Job which appears just before Psalms and which has 42 chapters. So, up to the end of the book of Job there are altogether 478 chapters. Add on another 117 chapters and we get to the middle of the list of Bible chapters (the 595th Chapter). So Psalm 117 is indeed exactly at the middle of the list.

More Info: en.wikipedia.org