Filterxml function

anandvarma

Active Member
Joined
Apr 26, 2011
Messages
384
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to append two sheets using formulas as described from the following video

i am using microsoft 365

the formula used is

=INDEX(FILTERXML("<Tom><Jerry>"&TEXTJOIN("</Jerry><Jerry>",TRUE,Table1)&"</Jerry></Tom>","//Jerry"),SEQUENCE(COUNTA(Table1[Item]),10))
this is working
whereas if i add second range
=INDEX(FILTERXML("<Tom><Jerry>"&TEXTJOIN("</Jerry><Jerry>",TRUE,Table1,Table2)&"</Jerry></Tom>","//Jerry"),SEQUENCE(COUNTA(Table1[Item],Table2[Item]),10))
if am getting value error

Table1 and Table2 are defined as tables in sheet 1 and sheet 2

what i am missing in the formual

anandvarma
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi if you are on 365 then appending data is way simpler with Power Query.
Google append tables with Power Query. It's a walk in the park.
 
Upvote 0
Hi

Use TEXTJOIN

=FILTERXML("<t><s>"&TEXTJOIN("</s><s>",,A1:A12,C4:C8)&"</s></t>","//s")
 
Upvote 0

Forum statistics

Threads
1,214,423
Messages
6,119,398
Members
448,892
Latest member
amjad24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top