+ Reply to Thread
Results 1 to 15 of 15

Extract data from another worksheet by using LOOKUP or by any other command

  1. #1
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Extract data from another worksheet by using LOOKUP or by any other command

    Dear all,

    I got 2 worksheets, sheet1 has an array from B2:K11. While sheet2 extract data from cells C3:I11 of sheet1 of every 2 rows and every 3 columns. What will be the formula in sheet2 to get this result?


    Thanks
    Kent
    ScreenHunter_002.jpg
    ScreenHunter_003.jpg

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Hi,

    Please upload the actual workbook. This is clearly a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results. Also indicate what determines the starting position,
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    TRY

    =INDEX(Sheet1!$A$2:$K$11,ROWS($1:1)*2,COLUMNS($A:A)*3)

  4. #4
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Dear Richard,


    Actually I had tried but didn't know how to upload my excel table, but insert image is OK.

  5. #5
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Quote Originally Posted by JohnTopley View Post
    TRY

    =INDEX(Sheet1!$A$2:$K$11,ROWS($1:1)*2,COLUMNS($A:A)*3)
    Dear John,

    Your formula fails when sheet1 contains string.

    Thank you.


    Kent

  6. #6
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Dear Richard,

    My table is attached for your reference please.



    Kent
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    I don't understand: If you mean TEXT (string) , then it works OK. The data format should have no bearing on the output: it is simply a "Lookup".

    Post a file (Click "Go advanced" then scroll down to "Manage "Attachments")

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    I have just put the formula in your file and it works fine.
    Last edited by JohnTopley; 05-19-2016 at 11:09 AM.

  9. #9
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Dear John,

    Yeah~ It's my fault. Your formula works on both text and numeric.

    Thank you very much.


    Kent

  10. #10
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Copy the following formula into sheet2 cell B2 and then drag formula across and down . The solution assumes data source is on "sheet1" in the specified range.

    =INDIRECT(ADDRESS((COUNT(B$1:B1)*2)+3,(COUNT($A2:A2) + 1) *3,,,"Sheet1"))


    ... oops ... you got some great answers already ... sorry .
    Last edited by nimrod; 05-19-2016 at 11:30 AM.

  11. #11
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Dear John,

    My attached table becomes more complicated this time. What is the formula in sheet2 this time please.
    ScreenHunter_004.jpgScreenHunter_005.jpg

    Kent
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Dear nimrod,

    Thanks anyway.
    Any idea on my question on thread #11 please?

    Kent

  13. #13
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Hi,

    Before looking at this are there any more complications on the horizon?

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,199

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    I suspect the answer is no single formula because it is a "random" (irregular) pattern.

  15. #15
    Forum Contributor
    Join Date
    07-24-2013
    Location
    HongKong
    MS-Off Ver
    Excel 2010
    Posts
    237

    Re: Extract data from another worksheet by using LOOKUP or by any other command

    Quote Originally Posted by JohnTopley View Post
    I suspect the answer is no single formula because it is a "random" (irregular) pattern.
    Yeah~
    I think so.

+ 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. Macros to lookup column and row headings and extract data
    By ramliedt in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-04-2013, 11:33 AM
  2. INDEX, SUMIFS, AND LOOKUP to extract data
    By 58Spring in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-18-2012, 09:53 AM
  3. Replies: 0
    Last Post: 07-09-2012, 03:10 PM
  4. Lookup and extract data
    By ccpjim in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2011, 10:44 PM
  5. EXTRACT / LOOKUP from another Worksheet
    By Robotacha2010 in forum Excel General
    Replies: 6
    Last Post: 12-09-2009, 06:53 AM
  6. AGAIN... I need another Lookup Function to extract some data
    By BillReese in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2006, 07:35 PM

Tags for this Thread

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