+ Reply to Thread
Results 1 to 6 of 6

Search and IF functions

Hybrid View

RpGroves Search and IF functions 08-20-2017, 11:31 PM
benishiryo Re: Search and IF functions 08-21-2017, 12:56 AM
RpGroves Re: Search and IF functions 08-21-2017, 01:01 AM
Phuocam Re: Search and IF functions 08-21-2017, 01:03 AM
RpGroves Re: Search and IF functions 08-21-2017, 01:10 AM
Phuocam Re: Search and IF functions 08-21-2017, 01:18 AM
  1. #1
    Registered User
    Join Date
    08-20-2017
    Location
    Surrey
    MS-Off Ver
    2016
    Posts
    3

    Search and IF functions

    So I'm trying to put together a spreadsheet that will search for certain text in a range of cells and if it finds it copy other cells in the row onto the original worksheet.

    For Example:

    On Worksheet 1 I have the name John Smith

    On Worksheet 2 I have a whole list of names and next to those names in the same row numbers in different columns

    I want to set up a formula where it will search for 'John Smith' in that list of names and when if it finds that name copy the numbers next to it into the cells next to the name of worksheet 1.

    Hopefully that makes sense, if not let me know and ill make a dummy workbook with an example.

    Thanks!
    Attached Files Attached Files
    Last edited by RpGroves; 08-21-2017 at 12:57 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Search and IF functions

    Welcome to the forum, RpGroves. a sample workbook always helps. But if my eg works for you, then great. If you are looking for a simple exact match of John Smith, a simple VLOOKUP will do.
    =VLOOKUP(A2,Sheet2!A:B,2,0)

    if you are looking for a cell containing John Smith, then maybe:
    =LOOKUP(99^99,SEARCH(A2,Sheet2!$D$1:$D$3),Sheet2!$E$1:$E$3)
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    08-20-2017
    Location
    Surrey
    MS-Off Ver
    2016
    Posts
    3

    Re: Search and IF functions

    Thanks! I've attached an example to my original post. I'm looking for it to search for that name then pull the data from the cells next to it.

    So in my example I want it to search for john smith in worksheet 2 then take the numbers in Audit 1-5 and put it in the corresponding columns on worksheet 1

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Search and IF functions

    =INDEX(Sheet2!$B$14:$L$21,MATCH(Sheet1!$A2,Sheet2!$A$14:$A$21,0),MATCH(Sheet1!B$1,Sheet2!$B$10:$L$10,0))

    Change Audit 1 to Audit1
    Last edited by Phuocam; 08-21-2017 at 01:07 AM.

  5. #5
    Registered User
    Join Date
    08-20-2017
    Location
    Surrey
    MS-Off Ver
    2016
    Posts
    3

    Re: Search and IF functions

    Unfortunately on mine that just shows #N/A

    I changed the names of the columns too

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Search and IF functions

    It working for me.
    Attached Files Attached Files

+ 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. IF ISTEXT SEARCH OR AND functions
    By mit_mercy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-18-2015, 09:05 AM
  2. Need some help by search functions in database
    By blood4blood in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2014, 12:05 PM
  3. Nested IF Using SEARCH functions
    By SoleAris in forum Excel General
    Replies: 3
    Last Post: 01-24-2012, 03:24 PM
  4. Using IF and SEARCH functions
    By visionwindowfilms in forum Excel General
    Replies: 2
    Last Post: 07-01-2010, 11:10 AM
  5. search functions
    By iain hamilton in forum Excel General
    Replies: 6
    Last Post: 04-21-2008, 05:18 PM
  6. search & if functions
    By sys-con in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2007, 12:02 PM
  7. [SOLVED] Need help using search functions
    By cburgess57 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2005, 05:06 PM

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