+ Reply to Thread
Results 1 to 6 of 6

Position of Last Specific Text Item in a Column

  1. #1
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Position of Last Specific Text Item in a Column

    Have a column

    A B
    1 SELL
    2
    3 BUY
    4
    5
    6
    7 SELL
    8
    9 BUY
    10
    11
    12 SELL

    I want to find the position of the last BUY (9) or the last SELL (12). The empty cells are "".
    Thanks for any assistance. An array formula will also be acceptable.
    Last edited by SDruley; 03-07-2013 at 10:16 PM.
    Turn Data into Information
    Turn Information into Knowledge
    Turn Knowledge into Direction
    Turn Direction into Leadership
    Turn Leadership into Results
    Stephen Druley

    It's not how quickly you think
    But how deeply you think
    The quality of thinking is measured
    by remoteness to conformance
    Stephen Druley

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Position of Last Specific Text Item in a Column

    =MATCH("SELL",B:B,1) and =MATCH("BUY",B:B,1)

  3. #3
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Position of Last Specific Text Item in a Column

    Thanks, rcm. It appears that I was incorrect in the original post. The blank cells contain "". When I use your formula as follows:

    Please Login or Register  to view this content.
    I get the last cell (row number) in shadowsBS which is a blank ("") cell, but when I remove the "" entries I get the correct answer. I would rather not remove the "" cells as this is a time consuming step.
    Last edited by SDruley; 03-07-2013 at 10:34 PM.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Position of Last Specific Text Item in a Column

    This will return the row number of the last instance, regardless of any other data or blanks in column B.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Marcol; 03-07-2013 at 10:39 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Valued Forum Contributor SDruley's Avatar
    Join Date
    04-27-2009
    Location
    Conover, NC
    MS-Off Ver
    Excel 2010 64 bit
    Posts
    415

    Re: Position of Last Specific Text Item in a Column

    Thank you gentlemen for your guidance and thank you Mr. Marcol for your innovative solution.

  6. #6
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Position of Last Specific Text Item in a Column

    with your data-set above:

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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