+ Reply to Thread
Results 1 to 4 of 4

How to retrieve row number using search function

Hybrid View

  1. #1
    Registered User
    Join Date
    07-04-2018
    Location
    India
    MS-Off Ver
    2017
    Posts
    2

    How to retrieve row number using search function

    Hello

    I have two sheets named as "Sheet 1" and "Sheet 2". In Sheet"2" there are group of values placed in Column A1:A10 which is a subset of text string written in "Sheet1" however in "Sheet 1" in column A multiple text strings are put in each and every cell.

    I want to search "Sheet 2" values in "Sheet 1" text string of each and every cell, If there is any match in that particular text string need to return the row number of Sheet 1

    Could you please help which formula to use for getting this result
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by kaushalagr; 07-04-2018 at 11:53 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: How to retrieve row number using search function

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-04-2018
    Location
    India
    MS-Off Ver
    2017
    Posts
    2

    Re: How to retrieve row number using search function

    Thanks for your suggestion

    I have attached the sample excel for my problem

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: How to retrieve row number using search function

    Try array entering this formula in B1 of Sheet 1. Fill across about 4 or 5 columns and then fill down.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Formula: copy to clipboard
    =IFERROR(SMALL(IF(ISNUMBER(FIND(Sheet2!$A$1:$A$19,'Sheet 1'!$A1)),ROW($A$1:$A$18)),COLUMNS($B$1:B$1)),"")


    There is a second method in F1 as well. Same instructions.

    Formula: copy to clipboard
    =IFERROR(SMALL(IF(COUNTIF($A1,"*"&Sheet2!$A$1:$A$19&"*"),ROW($A$1:$A$18)),COLUMNS($F$1:F$1)),"")
    Dave

+ 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] If is number search function
    By king10001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2016, 07:33 AM
  2. [SOLVED] Using IS Number and Search function
    By MarieK in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-09-2014, 07:33 AM
  3. [SOLVED] Search & retrieve data between sheets
    By brisser90 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2012, 03:13 PM
  4. Replies: 13
    Last Post: 12-03-2010, 10:39 PM
  5. Search, retrieve & input
    By OakmontBob in forum Excel General
    Replies: 2
    Last Post: 07-11-2008, 03:47 PM
  6. [SOLVED] Search and retrieve
    By dziw in forum Excel General
    Replies: 5
    Last Post: 04-25-2006, 04:50 PM
  7. How do I create a function to search a range for a number and...
    By NECCExcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2005, 05:20 PM

Tags for this Thread

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