+ Reply to Thread
Results 1 to 5 of 5

need solution to extract the data of row in excel

  1. #1
    Registered User
    Join Date
    10-26-2010
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    22

    need solution to extract the data of row in excel

    hi

    i need a macro or button to display the row data into another sheet or in to another file like text pad...

    for example

    here is the row

    Button abcdef, 1234, date, data1,data2

    above is the single row but there might be many rows in excel sheet

    what i need is when i click on button it just show the corresponding row data in different sheet or text pad file....

    if hyperlink solve the problem than plz tell me that as well.......

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: need solution to extract the data of row in excel

    I don't use VBA for simple one-to-one row data retrieval like this. There are basic worksheet functions designed for this.

    VLOOKUP()
    LOOKUP()
    INDEX/MATCH()
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-26-2010
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: need solution to extract the data of row in excel

    thanx for your help

    can u give me a small example???

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: need solution to extract the data of row in excel


  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: need solution to extract the data of row in excel

    I use INDEX/MATCH for this, but you can also use VLOOKUP() or LOOKUP() based on some other restrictions about the layout of the table you're searching. INDEX/MATCH has none of those restrictions.

    Here's some sample sheets showing what I think you're looking to do.
    INDEX/MATCH Examples

    INDEX/MATCH explanation
    http://www.excelforum.com/excel-gene...ame-row.html#3

+ 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