+ Reply to Thread
Results 1 to 9 of 9

Google Sheets: Need to find the match number then enter the text

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Google Sheets: Need to find the match number then enter the text

    Hi,
    Please help me to find the match number in sheet2 if 2 conditions met then enter the text "FOUND" in sheet1

    See sample attached

    Regards,
    tt3
    Attached Files Attached Files
    Last edited by AliGW; 03-18-2021 at 04:09 AM.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Need to find the match number then enter the text

    does this work
    Look for the number in Sheet1 with Sheet2 column A and that Sheet2 Column D is blank and Column E is NOT blank
    =IF(COUNTIFS(Sheet2!$A$2:$A$30,Sheet1!A2,Sheet2!$D$2:$D$30,"",Sheet2!$E$2:$E$30,"<>"&"")=1,"Found","")
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need to find the match number then enter the text

    Hi etaf,
    That's perfect but somehow it doesn't work if there's duplicate numbers. Please help me one more time

    See updated sample
    Regards,
    tt3
    Attached Files Attached Files

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Need to find the match number then enter the text

    change
    =IF(COUNTIFS(Sheet2!$A$2:$A$31,Sheet1!A2,Sheet2!$D$2:$D$31,"",Sheet2!$E$2:$E$31,"<>"&"")=1,"Found","")
    to
    =IF(COUNTIFS(Sheet2!$A$2:$A$31,Sheet1!A2,Sheet2!$D$2:$D$31,"",Sheet2!$E$2:$E$31,"<>"&"")>0,"Found","")

  5. #5
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need to find the match number then enter the text

    Hi etaf,
    That's perfect. Thank for your help.

    Regards,
    tt3

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Need to find the match number then enter the text

    you are welcome

  7. #7
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need to find the match number then enter the text

    Hi Etaf,
    Just find out there should be BLANK if both columns D & E are BLANK. This works on Excel but somehow it doesn't work in google sheet in some cases. Do you know why?

    Regards,
    tt3
    Last edited by tuongtu3; 03-17-2021 at 06:37 PM.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Need to find the match number then enter the text

    for the D&E blank
    =IF(AND(Sheet2!D2="",Sheet2!E2=""),"",IF(COUNTIFS(Sheet2!$A$2:$A$30,Sheet1!A2,Sheet2!$D$2:$D$30,"",Sheet2!$E$2:$E$30,"<>"&"")>0,"Found",""))

    Not sure about google sheets , not really used much, but countifs is supported in google sheets
    https://blog.coupler.io/countif-and-countifs/

    Just checking what version of Excel are you using - you have Excel 2007 in your profile , is that still the version

    Perhaps its the "<>"&""
    maybe change to "<>" , which you should be able to do in excel anyway
    =IF(AND(Sheet2!D2="",Sheet2!E2=""),"",IF(COUNTIFS(Sheet2!$A$2:$A$30,Sheet1!A2,Sheet2!$D$2:$D$30,"",Sheet2!$E$2:$E$30,"<>")>0,"Found",""))

  9. #9
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Google Sheets: Need to find the match number then enter the text

    Hi etaf,
    Sorry for the late response and the below worked in excel 2007 and I will try in Google Sheet

    IF(COUNTIFS(Sheet2!$A$2:$A$31,Sheet1!A3,Sheet2!$D$2:$D$31,"",Sheet2!$E$2:$E$31,"<>"&"")>0,"Found","")

    Regards,
    tt3
    Last edited by tuongtu3; 04-01-2021 at 01:23 AM.

+ 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] Find and match cell text value on another sheet and paste row on correct row number
    By smashthegas in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-21-2016, 07:53 AM
  2. [SOLVED] Enter number in blank cell match number on sheet 2 & enter data from adjacent cell
    By Bikeman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2015, 08:36 PM
  3. [SOLVED] Find the row number with a partial match to text in column A
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-10-2014, 01:39 PM
  4. [SOLVED] Enter a number in a Textbox then find the number in a cell to activate Hyperlink
    By lapot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2014, 10:26 AM
  5. Replies: 1
    Last Post: 02-20-2014, 12:24 PM
  6. Need help to Find the match then enter the value fr WB to WB after Double_Click
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 06-13-2013, 07:52 PM
  7. 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

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