+ Reply to Thread
Results 1 to 5 of 5

extract data from sheets and copy them in one sheet

  1. #1
    Forum Contributor
    Join Date
    08-06-2014
    Location
    iran
    MS-Off Ver
    2016
    Posts
    110

    extract data from sheets and copy them in one sheet

    Hi
    I need a code for extracting some data:
    1:sheets name and
    2:start time and 3:end time (In column Q)
    in one sheet as an example1 that I have attached : result sheet

    thank you
    Attached Files Attached Files
    Last edited by fakhteh; 05-21-2021 at 04:14 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,813

    Re: extract data from sheets and copy them in one sheet

    You can use these formulae in the cells stated in the Results sheet:

    B1: =INDIRECT("'"&$A1&"'!Q2")

    C1: =MAX(INDIRECT("'"&$A1&"'!Q:Q"))

    Copy down as required).

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: extract data from sheets and copy them in one sheet

    Firstly, you have to define a formula to extract worksheet names in Name Manager.
    Attached Files Attached Files
    Row row row your boat
    Gently down the stream

  4. #4
    Forum Contributor
    Join Date
    08-06-2014
    Location
    iran
    MS-Off Ver
    2016
    Posts
    110

    Re: extract data from sheets and copy them in one sheet

    hi
    thank you for your code
    but please help me to complete it you know unfortunatlly I understand that in some sheets column Q dosnt have data in related column R :

    I have attached another sheet
    if there is no data in R for year in Q:
    1380 1067.0375
    1381 1066.815
    1382 1067.076667
    1383 1066.878333
    1384
    1385 1067.460833
    1386 1067.8225
    1387 1067.872
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    then I must set start 1380 and end 1387
    or another sheet
    1380
    1381
    1382
    1383
    1384
    1385 1078.3775
    1386 1078.883333
    1387 1078.348
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    start 1385 and end 1387
    thank you
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: extract data from sheets and copy them in one sheet

    change the formulas to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. [SOLVED] extract Data for each sheets where Sheet name matches item on sheet "Divisions
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-31-2019, 04:30 AM
  2. Replies: 0
    Last Post: 09-06-2017, 08:30 PM
  3. [SOLVED] Data extract to different sheets from DAILY SHEET
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2016, 11:47 AM
  4. Extract data from Sheet 1 to several sheets
    By ECEUK in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-05-2015, 02:22 PM
  5. [SOLVED] Extract multiple sheets data into one sheet
    By jun22 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-20-2014, 09:58 AM
  6. extract data from 2 sheets to single sheet
    By sumonrezadu in forum Excel General
    Replies: 3
    Last Post: 01-31-2014, 10:26 AM
  7. [SOLVED] Need cell to find data and extract from one sheet of 10 possible sheets
    By JimmyHuss in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2012, 03:28 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