If a batsman has been dismissed in every single innings, then their total number of runs scored divided by the number of times they have been out gives exactly the average number of runs they score per innings.
A different, and more recently developed, statistic which is also used to gauge the effectiveness of batsmen is the strike rate.