To get all Nifty 50 stocks into an Excel sheet, you can use the NSE India website, an API, or a web scraping method. Here are three methods:
Method 1: Manual Download from NSE India
Go to the NSE India website: https://www.nseindia.com/market-data/live-equity-market.
Click on Nifty 50 under the benchmark indices section.
Select the option to Download CSV (usually available on the page).
Open the downloaded file in Excel.