+ Reply to Thread
Results 1 to 11 of 11

Search a column for 2 conditions and display the cell content of last match

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Search a column for 2 conditions and display the cell content of last match

    Re-loaded the file with more clarification. Also wrote a formula. Would appreciate your help.
    Attached Files Attached Files
    Last edited by ansridhar; 02-18-2014 at 01:44 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Search part of a text data in a column and display the cell content of last match

    A simple way could be using a helper and hidden column. Let's say E. So in E2 and copy down use this.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then use this one to get your result.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Search part of a text data in a column and display the cell content of last match

    Any of those
    =LOOKUP(2,1/(D2:D22<>""),(D2:D22))
    =LOOKUP(2,1/(MONTH(C2:C40)=MONTH(O14)*(D2:D40<>"")),(D2:D40))
    Where O14 is 1/2/2014
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Registered User
    Join Date
    03-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Search part of a text data in a column and display the cell content of last match

    Robert

    Could you please see the file enclosed and revisit the reply given by you. I am not getting.

  5. #5
    Registered User
    Join Date
    03-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Search part of a text data in a column and display the cell content of last match

    Fotis

    I am not getting the way you have suggested. Please see the file which I had enclosed. Entering =INDEX(D2:D14,MATCH(TRUE,TEXT(B1497,"mmm")&TEXT(B1497,"yy"),0)) in D15 in the file does not get the result.

    Can you assist further?

  6. #6
    Registered User
    Join Date
    03-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Search part of a text data in a column and display the cell content of last match

    Fotis

    It is not B1497, it is C15 in the formulae.

  7. #7
    Registered User
    Join Date
    03-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Search part of a text data in a column and display the cell content of last match

    Hi

    Robert/Fotis

    If I use this in D15, I get error?
    =INDEX(D2:D14,SMALL(MATCH("*"&TEXT(C15,"mmm")&TEXT(C15,"yy"),D2:D14,0),COUNTIF(D2:D14,"*"&TEXT(C15,"mmm")&TEXT(C15,"yy"))),1) + Ctrl+Alt+Enter

    Would appreciate your help.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Search part of a text data in a column and display the cell content of last match

    Take a look to the example,pls.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Search part of a text data in a column and display the cell content of last match

    Got the result. However, I want to write the formula in cell D15 and roll it down. If I drag the formula given by you, it is giving an error. Please look into it. Thanks.

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Search part of a text data in a column and display the cell content of last match

    In D15??. Really i don't understand what are you trying to do... Perhaps to "lock" the formula?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    03-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Search part of a text data in a column and display the cell content of last match

    Sir, it is an ongoing data feed sheet. As the days pass, anywhere between 5 to 50 data gets added in column C and other columns of no relevance to what I am asking. So as soon as the data gets added, at the end of the day, I have to search above in column D (for every new data that has been added in a day) the last match of "mmmyy". I get it displayed. In fact I would use the substitute command and increase the middle part (number part) of the D column data by 1 unit. For the next row, this would be the last match and so on.. Hopefullly, I have conveyed my requirement properly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to display cell if the text content partially matches a search term
    By Avestron in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2013, 04:07 AM
  2. Match text in A1 to a part of a text string in B1 and enter data D1
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 10:16 PM
  3. [SOLVED] Formula to search a Column with Cell content from another Column?
    By GabeZ in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2012, 12:23 PM
  4. [SOLVED] Display missing Part Number if Column A does not match column B
    By Erik T in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2006, 06:30 PM
  5. Replies: 1
    Last Post: 12-16-2005, 05:50 AM

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