+ Reply to Thread
Results 1 to 2 of 2

Extract data from report and bring it over to a another sheet

  1. #1
    Forum Contributor
    Join Date
    05-16-2018
    Location
    SG
    MS-Off Ver
    2013
    Posts
    217

    Extract data from report and bring it over to a another sheet

    Hi All,

    I have a file which i use a some help on. I'll explain on how it functions first. On the tab names sheet2 there are is the report which the data needs to be extracted from. We will need to locate the location first for example 1000 and then look up the type called "main".once these 2 info has been referenced the name that is indicated on column D needs to be brought over to the tab called Sheet1 and input in column E called names. it would be helpful if it can be coded into vba on the sheet as I am looking at quite a number of rows of data.

    I've added some samples with expected results.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Extract data from report and bring it over to a another sheet

    Why do you need VBA for this?

    This works on your sample:

    =LOOKUP(2,1/((Sheet2!$B$4:$B$12=Sheet1!B5)*(Sheet2!$F$4:$F$12="Main")),Sheet2!$D$4:$D$12)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 10-18-2017, 02:12 PM
  2. Replies: 1
    Last Post: 03-29-2017, 10:03 AM
  3. Replies: 2
    Last Post: 01-10-2017, 10:25 AM
  4. Replies: 0
    Last Post: 10-14-2015, 12:53 PM
  5. Replies: 30
    Last Post: 08-17-2015, 01:18 AM
  6. Macro to bring data to sheet from another sheet!!! based on certain criteria
    By cory0789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2015, 06:43 AM
  7. Bring Report the Focus
    By lanziniad in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-19-2011, 02:57 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1