Results 1 to 12 of 12

Thread: How to fetch data from a excel table with multiple rows.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Nov 2019
    Posts
    13
    Location

    How to fetch data from a excel table with multiple rows.

    Hi, I'm new to VBA and in programming in general & I have a excel workbook in which there are 2 sheets (sheet1 & sheet2).

    In sheet1 there is a table with multi row header
    1.jpg

    In sheet2 I want to query data given in the below format:
    2.png

    Also, in sheet2 I want the output to be like:
    3.jpg

    For each query a new row will be added to the above table in sheet2 (range J:N). Note that in sheet1 MONTHLY SALARY & YEARLY SALARY appear twice one under NATIVE CURRENCY(USD) & other under FOREIGN CURRENCY(EURO). I have not found any data fetching technique for excel table with multiple header in any tutorial websites.How can I write the code to do what I just mentioned?

    Also, attaching the file for testing.
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •