+ Reply to Thread
Results 1 to 16 of 16

Please help with function extracting specific data -attached workbook

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Exclamation Please help with function extracting specific data -attached workbook

    I need a function that will extract ONLY the independent directors' "time between appointment and offering"
    (please see workbook)

    I made an additional column underneath to show you how it's meant to look like (I got their numbers manually)

    Need it to be automatic. I cannot do it manually as there are over 1000 rows to do.
    Maybe Vlookup? I dont know how to do it though.
    Last edited by check00; 06-29-2012 at 08:26 AM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    Why does the extraction start at column AU instead of column L?

  3. #3
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Please help with function extracting specific data -attached workbook

    Because I just want those who have position with the word independent director in it

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    OK, saw that after I posted. But given the limited sample it's impossible to give a proper answer. This does it for the sample you gave, though.

    In cell B18: =INDEX(5:5,MATCH("*Independent Director",5:5,0)+4)
    In cell C18 (and dragged over): =INDEX(5:5,MATCH("*Independent Director",5:5,0)+COLUMN(A:A)*7+4)

  5. #5
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Please help with function extracting specific data -attached workbook

    ohhh thank you!!
    can you explaing the column a:a thing?
    what does that do exactly

  6. #6
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Please help with function extracting specific data -attached workbook

    Oh and i have another question.
    the results are supposed to be displayed on a different sheet, so how would the function look like on another sheet referring to that one?

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    As you drag across the COLUMN(A:A) increases by 1 so that after the multiplication by 7 you increase by 7 the first time, then by 14, then by 21 etc.

    It hinges on the sample's inference that all independent directors follow the first one found. If some other title is thrown in between them then that person's value will be returned.
    A test can be added to the formula that will return a blank cell after exceeding the total # of independent directors. I don't know if you need that or not?

  8. #8
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Please help with function extracting specific data -attached workbook

    there are 8 columns,
    if there are only 2 directors, i'd like the other 6 to be blank

    Also, how can I put this formula on the second sheet? Because it's meant to be on another sheet

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    As for your second question: add the sheet name reference in front of both instances of 5:5 - like so: Sheet1!5:5 or 'Sheet One'!5:5 (apostrophes needed for names having space(s) in them)

  10. #10
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Please help with function extracting specific data -attached workbook

    =INDEX(Sheet1!5:5,MATCH("*Independent Director",5:5,0)+4)

    like this?
    it returns N/A

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    Use this formula on another sheet to find the 2nd occurrence - and drag across:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Cutter; 06-29-2012 at 08:23 AM.

  12. #12
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    =INDEX(Sheet1!5:5,MATCH("*Independent Director",5:5,0)+4)
    returns #N/A because you didn't
    add the sheet name reference in front of both instances of 5:5
    Note the word "both"

  13. #13
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Please help with function extracting specific data -attached workbook

    Thank you so much!!! You're a life saver

  14. #14
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    You're welcome. If that solves your issue please remember to mark your thread as SOLVED (instructions in rule #9 - click Forum Rules @ top of page to view).

  15. #15
    Registered User
    Join Date
    05-16-2012
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Please help with function extracting specific data -attached workbook

    Will do.
    I have a question though. Is it possible to do this referring to two sheets?
    So lets say the first sheet has 5 independents.
    But the 2nd sheet (for the same company) has 2 independents.
    Is it possible to include sheet2 in the function??

  16. #16
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Please help with function extracting specific data -attached workbook

    Sounds like it would be possible but much more complicated.

+ 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