How to get Excel Cell value in Excel Power Query | How to fetch Date from Excel sheet to Excel Power BI | How to Collect Tally Data in to Excel | Tally to Excel Import

Excel power query is an amazing tool in excel. With Excel Power Query / Excel Power BI we can collect Tally Data in to Excel through ODBC connection. And can import Tally Live Data in to Excel. Please go through this post see how to write codes in power query to import Live Tally Data in to Excel.
If you see previous post, you observe that there we can change dates in our code only. So we need to change date etc. from our excel sheet without going in power query code. This will be simple method to collect data from Tally. 

How to Connect Excel Cell Value (Date) with Power Query:
  • Write Headings for Cell Value (Like : From Date and To Date)
  • Fill Date below the Headings
  • Select Dates with Header.
  • Right Click on selected cells
  • Choose Get data from Table/Range
  • Click on My Table has headers and Click OK
  • Now you will reach in power query code.
  • In power query Dates will come with time.
  • Remove time by changing datetime into Date in power query code


  • After changing in Date, Right Click on From Date header – Change Type – Using Locale
  • Keep Data Type Text and Locale – English and Press OK
  •  Repeat same process fro To Date (Right click on ToDate – Change Type – Using Locale – Text and English – OK)
  • Right Click on Date and choose Add as new query
  • Repeat same process for second date
  • Now Change From Date and To Date name in properties (name without any space)
  • Now You can use FromDate and ToDate in another power query code of this sheet.
  • Like: body = Text.Replace(Text.Replace(_body, “DATE1”, FromDate), “DATE2”, ToDate),

For More clarification Please watch this video: