+ Reply to Thread
Results 1 to 7 of 7

How to show only rows if value is found?

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    NOrway
    MS-Off Ver
    Excel 2007
    Posts
    14

    How to show only rows if value is found?

    Hi.

    I got two worksheet.

    I want to check if value in Sheet 2 A1 is found in Sheet 1 A1. If its there nothing happen, if not i want to see the whole row in Sheet 1.

    Can someone please help me with that?

  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
    52,923

    Re: How to show only rows if value is found?

    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
    02-06-2014
    Location
    NOrway
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to show only rows if value is found?

    Can you see if you understand this?
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,983

    Re: How to show only rows if value is found?

    Where you have typed this:

    Excel 2016 (Windows) 32 bit
    A
    1
    If A1 in Sheet 1 is found in Sheet 2 nothing happen. If A1 in sheet 1 is not found in Sheet 2 I want to see the whole row here.
    Sheet: Result

    please put your desired results (manually) so that we can see the output you require.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    02-06-2014
    Location
    NOrway
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to show only rows if value is found?

    The whole row in Sheet 1 A1? I though you guys would understand that?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,983

    Re: How to show only rows if value is found?

    You are being asked to clarify what you mean by it. Please do so.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,911

    Re: How to show only rows if value is found?

    A2=IFERROR(INDEX('Sheet 1'!A:A,MATCH(2,INDEX(ISERROR(MATCH('Sheet 1'!$A$1:$A$4,'Sheet 2'!$A$1:$A$2,0))+ISERROR(MATCH('Sheet 1'!$A$1:$A$4,$A$1:$A1,0)),0),0)),"")
    Try this and copy across
    leave row 1 as blank
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. Go to found duplicated row and show MsgBox with options
    By excellenthelp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2015, 07:42 AM
  2. How to show how many items found...
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2015, 09:13 PM
  3. Show worksheet name on match found
    By veloci in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2014, 08:21 PM
  4. [SOLVED] If value is not found show text instead
    By avidcat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-21-2013, 01:02 PM
  5. Macro to filter content and show not found info
    By Nachol in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2012, 12:49 PM
  6. Query to Show 0 if no match found
    By pr4t3ek in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-01-2009, 12:11 AM
  7. Show data that is not found in another table
    By marcuswilderby in forum Access Tables & Databases
    Replies: 1
    Last Post: 04-29-2009, 03:07 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