+ Reply to Thread
Results 1 to 4 of 4

Formula Broken: Need to return Sheet3:C"Address" when Sheet3:C"Name" is in Sheet1:C"Name"

  1. #1
    Registered User
    Join Date
    06-16-2017
    Location
    Arizona, USA
    MS-Off Ver
    2013
    Posts
    2

    Formula Broken: Need to return Sheet3:C"Address" when Sheet3:C"Name" is in Sheet1:C"Name"

    =IF(OR(ISNUMBER(SEARCH(Elliott!A:A,B2))),INDEX(Elliott!D:D,MATCH(TRUE,ISNUMBER(SEARCH(Elliott!A:A,B2)),0)),"N/A")

    The results I received were different from what I expected:

    What results did you expect? I want to return “address” field on Sheet 3 (Elliott) when “name” in Sheet 3 (Elliott) is contained within “name” in sheet 1.

    What results did you actually receive from the code/formula? All records return #N/A (no value available) or N/A (as I have defined to return when FALSE)

    In what way are those 2 things different? I am not getting “Address” from sheet 3 returned when “Name” on sheet 3 is within “name” on sheet 1



    Which sheets/columns/rows contains which data?
    1. Sheet 1 has four Columns (FFL,NAME,Address, Phone), Around 70k rows
    2. Sheet 2 Has 1 column of names that have been removed from Sheet 1 – not relevant to issue.
    3. Sheet 3 (Elliott) has four Columns (Name, FFL, Phone, Address), nearly 200k rows



    ***The overall goal is to remove all records from sheet 1 that are present in sheet 3. I am trying to do this first by name (but name on sheet one is a combo of two possible names), then by FFL, then phone – address is to verify it is indeed a true match.***


    Here is 1 example that should result with an address from sheet 3:

    Sheet 1: (FFL,NAME,Address, Phone)
    571035027K04592 1 STOP PAWN SHOP LLC\1 STOP PAWN SHOP 1985 KROGER DR STE C1\WEST MEMPHIS 8703944589

    Sheet 3: (Name, FFL, Phone, Address) – want to find yellow within green and then return address from sheet 3
    1 STOP PAWN SHOP 571035027K04592 8703944589 1985 KROGER DR STE C1\WEST MEMPHIS


    I have tried INDEX MATCH as well with wildcards for Sheet3:C"Name"

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Formula Broken: Need to return Sheet3:C"Address" when Sheet3:C"Name" is in Sheet1:C"Na

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-16-2017
    Location
    Arizona, USA
    MS-Off Ver
    2013
    Posts
    2

    Re: Formula Broken: Need to return Sheet3:C"Address" when Sheet3:C"Name" is in Sheet1:C"Na

    The information on the spreadsheet is publicly published information, and thus not confidential.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Formula Broken: Need to return Sheet3:C"Address" when Sheet3:C"Name" is in Sheet1:C"Na

    If I understand correctly, you want to make sure that the name on the ATF sheet matches the name on the the Elliot sheet that is associated with the phone number on the ATF sheet. If that is correct then the following formula yields the expected result for row 9 (although not row 8):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Before the formula will work the phone numbers on the ATF sheet will need to be converted from text to general, which could be done by:
    1) putting the formula =b2*1 in cell E2
    2) copy down to E20
    3) With the range E2:E20 selected press Ctrl + c
    4) Select the range B2:B20 and select paste values from the clipboard pane
    5) Change the format in the number pane from text to general
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. copy sheet 2 data as it is in sheet3 if column "B" matches in sheet1 & Sheet2
    By shloksurya in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2015, 09:35 PM
  4. Replies: 2
    Last Post: 09-17-2014, 09:17 AM
  5. [SOLVED] "=Sheet3!A1" Here I want to reference "Sheet3" from another cell
    By 1tane1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2013, 06:04 AM
  6. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  7. use variable in Workbooks("book1").Worksheets("sheet1").Range("a1"
    By Luc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2005, 04:05 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