+ Reply to Thread
Results 1 to 11 of 11

Extracting data from table for related table

  1. #1
    Registered User
    Join Date
    05-27-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Question Extracting data from table for related table

    I have the below table (snap shot of large data)


    I want to extract the starting & Ending Number for the below Name & Number, so how can I do that.Here please note that the

    Name Number Starting Number Ending Number
    B 01/2013B 123 135
    B 02/2013B 1500 1650
    B 03/2013B 1600 1760
    B1 01/2013B1 1750 1925
    B1 02/2013B1 500 550
    B1 04/2013B1 600 660
    B1 06/2013B1 800 880
    D 01/2013D 550 605
    D 05/2013D 650 715
    D 06/2013D 780 858
    D 02/2013D 850 935

    I want to extract the starting & Ending Number for the below Name & Number, so how can I do that. Here pleae note that in the above table the position of col 3 & 4 will keep changing (like, 6&10 or 8 & 15 respectively).

    Name Number Starting Number Ending Number
    B 01/2013B ? ?
    B1 02/2013B1 ? ?
    D 06/2013D ? ?

    Thanks,
    Last edited by ikavdiya; 05-27-2013 at 07:14 AM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extracting data from table for related table

    Could you give an example of the desired output?
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    05-27-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting data from table for related table

    Quote Originally Posted by msexcelathome View Post
    Could you give an example of the desired output?
    Hi, thanks for having a look, the output will look like as per the below table.

    Out Put
    Name Number Starting Number Ending Number
    B 01/2013B 123 135
    B1 02/2013B1 500 550
    D 06/2013D 780 858


    Thanks,

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extracting data from table for related table

    Still unable to understand your problem.

    Please attach a sample workbook.

    Deep

  5. #5
    Registered User
    Join Date
    05-27-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting data from table for related table

    Please find attached, hope it will explain my question. Thanks
    Attached Files Attached Files

  6. #6
    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,895

    Re: Extracting data from table for related table

    Suggest you use a Vlookup function.

    http://www.techonthenet.com/excel/formulas/vlookup.php
    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

  7. #7
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Extracting data from table for related table

    You just need to use a VLook Up.

    Please see the file attached. See the formula in the colored section.

    Hope I understood you correctly.

    Deep
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-27-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting data from table for related table

    Thanks for your input. I tried for the vlookup but the that is not working as

    here I am looking for solution as mentioned in sheet "Need Data" in attached file which are highlighted in Yellow.

    And the data source is from three sheets named as "Jan, Feb & Mar".

    So still do you believe this can be done by vlookup? if yes, then can you show me or else advise.

    Thanks again for you time.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-27-2013
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Extracting data from table for related table

    Hi,

    Could you please advise on this, and let me know if this is possible in excel.

    Thanks you in advance.

  10. #10
    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,895

    Re: Extracting data from table for related table

    Look at columns D & E in the attached.
    Attached Files Attached Files

  11. #11
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Extracting data from table for related table

    Need Data sheet:

    B6: =VLOOKUP($B$3,INDIRECT($A6&"!C4:Z14"),MATCH(B$5,INDIRECT($A6&"!C3:Z3"),0),0)

    Copy across and down to C8.

    Use the same technique to adapt the other tables.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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