Question about nifty pe and sensex pe

i want to know how we can calculate the nifty pe and sensex pe ?
is there a way which we can calculate manually?
and are there any websites which display the same?

Divide mcap of entire index with entire earnings annualized of index to get pe. bse website themselves display in their home page and even nse too.

where to get the entire earnings figure if we want to calculate manually.

Painstaking job…add up manually all index components… Earnings are available in nse website for each individual company under their profile

U can get it on NSE website itself