TallyPrime ready · One-time price
0
Blog › Excel VBA › How to Connect Tally with Excel…← All posts
Excel VBA
Excel VBA12 Apr 20223 min read

How to Connect Tally with Excel to Get GST Summary | Tally to Excel GST Summary | Tally Prime to Excel Data Import | Tally to Excel Power query

LW
LearnWell teamE2T.in · Tally & TDL developers

Always required Excel in a business or accounting to maintain books of income, expenses and taxes etc. Excel is most usable software for calculations/presentations for a business. And also lots of businesses use Tally to maintain books properly. If it possible to connect Tally with Excel to fetch Tally Data into Excel then our most of  problems will be solved. This Tally to Excel data import method will be “Sanjeevani” for CA and accountants. 
So this can possible through Excel Power Query and Tally ODBC connectivity. To Import Tally Data into Excel most powerful and fastest way is Excel Power BI. We can import any report of Tally directly into excel through this Power BI method. 
After reading this post you will be able to import GST summary from Tally to Excel and can refresh it every time after any changes.

Required Tools/Codes to connect Tally with Excel:
Follow below Steps to Import Data from Tally to Excel:
  • Open Tally and Excel
  • Go to Excel Data Tab – New Query – From Other Source – Blank Query
  • We can change Query Name in properties section at right hand side.
  • Go in Home Tab and in Advance Editor
  • Paste Below Code in Advance Editor:
let
    url = "http://localhost:9000",
    _body = "<ENVELOPE>
<HEADER>
<TALLYREQUEST>Export Data</TALLYREQUEST>
</HEADER>
<BODY>
<EXPORTDATA>
<REQUESTDESC>
<STATICVARIABLES>
<SVEXPORTFORMAT>ASCII (Comma Delimited)</SVEXPORTFORMAT>
<SVFROMDATE>DATE1</SVFROMDATE>
<SVTODATE>DATE2</SVTODATE>
</STATICVARIABLES>
<REPORTNAME>GSTR2TrglActionWise DrillDown</REPORTNAME>
</REQUESTDESC>
</EXPORTDATA>
</BODY>
</ENVELOPE>",
    FromDate = Date.ToText(#date(2022, 04, 01)),
    ToDate = Date.ToText(#date(2022, 04, 02)),
    body = Text.Replace(Text.Replace(_body, "DATE1", FromDate), "DATE2", ToDate),
    Source = Csv.Document(Text.Replace(Text.FromBinary(Web.Contents(url, [Content=Text.ToBinary(body, TextEncoding.Utf16), Headers=[#"Content-Type"="text/xml;charset=utf-16"]]), TextEncoding.Utf16), ",#(cr,lf)", "#(cr,lf)"), { "Particulars", "GSTIN", "Invoice Number","Date", "Document Type", "Invoice Value","Place of Supply", "Note Number", "Note Date","Status","Taxable Value","IGST Amt","IGST Eligible Amt","CGST Amt","CGST Eligible Amt","SGST Amt","SGST Eligible Amt","Cess Amt","Cess Eligible Amt"})
in
    Source
  • After pasting above code in advance editor press Done
  • Now you can see Tally reports in Excel Power query home
  • Go to Home Tab – Click on “Close and Load” or “Close and Load to…”
  •  If select Close and Load to… then you can choose Excel reference sheet and cell to show Data.
  • Now you will find all your Tally data to related reports in Excel.
  • Refresh Excel sheet to recollect data from Tally
  • Change Date in Power query Advance editor code as per your requirement.

Watch above video for more details.
How to See and enable Tally ODBC Port : Click Here


  • TDL to Make Narration Compulsory in TallyPrime Vouchers

    A small TallyPrime TDL that stops vouchers from being saved without narration, with each line explained and a Sales and Purchase only version.


  • How to Integrate AI into TallyPrime: Generate Instant Reports with Free TDL

    Accounting in TallyPrime has always been reliable and fast, but searching through complex menus and configuring custom reports can still eat up valuable time. What if you could simply type a prompt like “Show me party-wise outstanding receivables” or “Generate GST summary for this month” and get an instant report right inside Tally? With modern…


  • TallyPrime Claude AI Connector | Connect Tally with Claude Desktop

    Have you ever imagined your Tally operating as an interactive AI assistant? Picture this: typing a simple sentence and getting a full CA-format balance sheet, P&L statement, audit review, or GSTR-2A reconciliation in seconds. With the Learn Well Tally Claude Connector, you can seamlessly connect TallyPrime to Claude AI Desktop—turning manual accounting routines into an…


Need this done for your business?

Our software imports Excel into TallyPrime in one click. Ask us for a free demo.

WhatsApp +91 91318 10293