+ Reply to Thread
Results 1 to 12 of 12

How to extract data from given table

  1. #1
    Registered User
    Join Date
    12-21-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    46

    How to extract data from given table

    Hi, Suppose I have data table in column A1 to A50 ( e.g. say here 1 to 50 numbers ). Now I want the result from B2 and down upto B10. Suppose in B1 I have number 38. From B2 and down I want 39, 40, 41 etc. actual result. I want a formula in cell B2 and below cells that it lookup at B1 cell, search that particular number in given table at A1 to A50 and show result in B2 and down.
    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to extract data from given table

    If your numbers are sequential (in order), why not just use =B1+1?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-21-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: How to extract data from given table

    Thanks FDibbins for quick reply.
    No, given data in table are not just sequential numbers, and also sometimes in B1 it could be 38 or it could be 12. I want a formula that search number or data 12 or 38 from that table and show next number below in B2 onward.

    I tried Index Match, Lookups but could not succeed.
    Last edited by watermasa; 08-02-2019 at 09:18 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to extract data from given table

    Index/Match should work for you. You just need to include a row increment added onto the MATCH function

  5. #5
    Registered User
    Join Date
    12-21-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: How to extract data from given table

    Thanks for suggestion. I tried some basics but fail. Could you please provide formula on it ?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to extract data from given table

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  7. #7
    Registered User
    Join Date
    12-21-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: How to extract data from given table

    Attachment 635581

    sending sample workbook. pl check.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to extract data from given table

    Put this in C8 and copy down to C12. Then copy down from C13 to C17...
    =INDEX(A:A,MATCH($C$12,A:A,0)+ROWS(A$1:A1)-5)

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,883

    Re: How to extract data from given table

    v A B C
    1 2540
    2 2520
    3 2500
    4 2480
    5 2460
    6 2440
    7 2420
    8 2400 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)-5,0) 2280
    9 2380 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)-4,0) 2260
    10 2360 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)-3,0) 2240
    11 2340 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)-2,0) 2200
    12 2320 2400 2180
    13 2300 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0),0) 2160
    14 2280 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)+1,0) 2140
    15 2260 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)+2,0) 2120
    16 2240 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)+3,0) 2100
    17 2220 =OFFSET($A$1,MATCH($B$12,$A$1:$A$39,0)+4,0) 2080
    18 2200
    19 2180
    20 2160
    21 2140
    22 2120
    23 2100
    24 2080
    25 2060
    26 2040
    27 2020
    28 2000
    29 1980
    30 1960
    31 1940
    32 1920
    33 1900
    34 1880
    35 1860
    36 1840
    37 1820
    38 1800
    39 1780
    Last edited by alansidman; 08-03-2019 at 01:35 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  10. #10
    Registered User
    Join Date
    12-21-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    46

    Re: How to extract data from given table

    Thanks FDibbins, I use above Index Match function after making some needs according to me.

  11. #11
    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
    80,830

    Re: How to extract data from given table

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: How to extract data from given table

    Happy to help

+ 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: 8
    Last Post: 10-22-2018, 05:24 PM
  2. [SOLVED] Extract data from specific table using dropdown list to select table
    By Maggie.S in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-08-2018, 09:21 AM
  3. Using VBA in Excel macro to extract data from table and reconstruct table
    By pbentonh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2017, 04:03 PM
  4. [SOLVED] vba code to extract data from data table and update data sheet
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-25-2017, 01:23 PM
  5. Extract data from table into new table that matches multiple criteria
    By joplrw10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2016, 12:30 PM
  6. Extract html table data from specifi table only
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2016, 02:34 PM
  7. Search for Excel file and the sheet within that from the given table data and extract data
    By adrian_slash in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2013, 07:55 AM

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