Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

URGENT Help Required to merge two excel reports into one

Dear All

We have two modules in Qlikview  1  ERP and 2 SIM (Sales And Distribution Module) and sales reports

extracted from this modules saparately . Now  We want to Consolidate this 2 excels into one excel consolidate

and send this to managment.

Any one have Idea how to achive the same URGENT

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
9 Replies
Not applicable

Hi Use attached .vbs file to merge two excels. rename the attached .txt to .vbs.

Hope this helps.

vikasmahajan
Author

Dear Mr.KStreak S

Thanks for prompt response I will  try and  get back to you.

Bye

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable

UPDATED CODE--

If no any field are common in both table then try this


Mergetable:

load

a, b,c, rowno()

from table1.xlsx;

load

d, e, f, rowno()

from table2.xlsx;

Store Mergetable into D:\Mergetable.xlsx

***************************************************************************************************

If atleast on field common in both table then try this

Mergetable:

load

a, b,c

from table1.xlsx;

join

load

a, e, f, rowno()

from table2.xlsx;

Store Mergetable into D:\Mergetable.xlsx

vikasmahajan
Author

What is Option Explicit  in your script ?

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable

When Option Explicit appears in a file, you must explicitly declare all variables using the Dim or ReDim statements

vikasmahajan
Author

I have attach 2 files this files I want into one excel by macro

Whetehr it is possible ?

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan
Author

Hello

Have try this it is giving error  "Expected end of statement  "

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan
Author

I have attached 2 excel files can you please send me correct code to merg into one excel file.

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable

With that script, you can't merge different columns. If you want to merge those excel files you can try below.

1. There are some free excel utilities avilable on the net you can use those (http://jeeshenlee.com/2010/09/23/jmc-excel-join-merge-combine-multiple-excel-sheets-or-excel-workboo...)

2. if you need more customization then you need write your own console application using .Net/java.

Hope this helps.