+ Reply to Thread
Results 1 to 8 of 8

retrieve multiple cells with identical cell next to it

  1. #1
    Registered User
    Join Date
    02-03-2012
    Location
    ATL, GA
    MS-Off Ver
    Excel 2007
    Posts
    6

    retrieve multiple cells with identical cell next to it

    Hey guys- first post.
    Quick question- How do I use either Vlookup or some other command that with extract/index out all cell (numerical) values that are next to a certain cell.
    Such as:
    #boats| 5|
    house| 2|
    name| cp|
    #boats|13|
    #boats|3|

    how would I get all #boats into a column easily?
    thank you guys so much
    -cp
    Last edited by Perkett21; 02-10-2012 at 12:56 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: retrieve multiple cells with identical cell next to it

    =IFERROR(INDEX($B$2:$B$100,SMALL(IF($A$2:$A$100=$C$2,ROW($A$2:$A$100)-ROW($A$2)+1),ROWS($A$2:$A2))),"")

    where table is in A2:B100, and C2 contains item to match in column A of the table...

    Confirm this formula with CTRL+SHIFT+ENTER not just ENTER and copy down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-03-2012
    Location
    ATL, GA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: retrieve multiple cells with identical cell next to it

    This is kind of making sense but I am having trouble applying it to what I need.
    What I need to do is extract all of the information from messy data and put it into a nice table.
    In the example file I have here, I want to get out every timestamp (Column F) where "start" comes up in
    the D column. and I want to do this for every single "Start".
    After this I am going to do that for every value field in column D- but that is just replacing what I am looking for.
    If you could look into a bit more, I would greatly appreciate it.
    Thank you so much!

    examplesearch.xlsx

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: retrieve multiple cells with identical cell next to it

    I used this formula in Sheet2:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER and copied down.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-03-2012
    Location
    ATL, GA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: retrieve multiple cells with identical cell next to it

    It is really close to working- It grabs the first Start time, but the remaining times are off. Would this be because of a row subtraction thing?
    thanks again.
    (what do you recommend is the best way to learn all of this stuff? being a college student I am just starting to scrape the top of deeper level excel)

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: retrieve multiple cells with identical cell next to it

    Sorry, that was a bit careless of me... I forgot to make a couple references absolute... try:

    =IFERROR(INDEX(Sheet1!$F$1:$F$31,SMALL(IF(Sheet1!$D$1:$D$31="Start",ROW(Sheet1!$D$1:$D$31)-ROW(Sheet1!$D$1)+1),ROWS($A$2:$A2))),"")

    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down.

    what do you recommend is the best way to learn all of this stuff? being a college student I am just starting to scrape the top of deeper level excel
    That's really a difficult question to answer. Most of what I (and many others here) have learned is from forums such as this one you and I are in. If you stick around and follow some threads, and try to answer a few, it is amazing what you will learn and grasp. Other than that, there are many websites from Excel gurus out there and books that teach some of the basics... but it depends on what you mean by "this stuff" really....

  7. #7
    Registered User
    Join Date
    02-03-2012
    Location
    ATL, GA
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: retrieve multiple cells with identical cell next to it

    It worked! Thank you very much I appreciate it! I guess if I have any questions of the sorts I'll post it here. I still have to retrieve each of the other rows to the left but hopefully I will be able to figure it out.
    Have a great day

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: retrieve multiple cells with identical cell next to it

    If you remove the $ from before the F's in the first part, then you can copy the formula to the right to grab adjacent column info... and if you put the formula somewhere in the middle of the sheet, you can drag left too...

    Please Login or Register  to view this content.

+ 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