+ Reply to Thread
Results 1 to 10 of 10

Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    Hi folks
    Another one of these

    I have attached a workbook to better explain my need.

    Cheers
    hammer
    Attached Files Attached Files

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

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    =(COUNTIF(INDEX(Sheet2!$A$2:$BA$29,,MATCH(BL$1,Sheet2!$A$1:$BA$1,0)),$J2)>0)*K2
    Try this formula
    Samba

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

  3. #3
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    Hi Siva
    Right now the formula is returning every value. I need it to return '1' only when Col K has the value 1 in each row. Formula to return "" if no match.
    Thanks
    hammer

    ps I just added =1 to the K2 which works but returns True or False

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

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    =IFERROR((MATCH($J2,INDEX(Sheet2!$A$2:$BA$29,,MATCH(BL$1,Sheet2!$A$1:$BA$1,0)),0)>0)*1,"")
    then try this

  5. #5
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    Now we are getting '1' in every cell

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

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    If the identical heading in Col K has the value "1" in K2 and the identical heading in Sheet2 has a match in the same Col for Col J2 then I want the formula to return "1" in BL2

    The Values in Column J Matching with Sheet2 so it is giving 1

    Tell me in which case the formula returning the wrong answer / result

  7. #7
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    Should only return 1 when Col K has 1 and J is matched under the Pr1Rank heading in Sheet2

    The first formula works when I put k2=1 but it returns True or False in lieu of 1 or ""

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

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    will you please give me your expected result for Column BL and BM

  9. #9
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    It's okay Siva I can work it with TRUE/FALSE thanks.
    Thanks again for your assistance.

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

    Re: Formula to Locate Matching Data in Worksheets and return a value to a specified Cell

    =IFERROR((MATCH($J2,INDEX(Sheet2!$A$2:$BA$29,,MATCH(BL$1,Sheet2!$A$1:$BA$1,0)),0)>0)*1,"")
    then try this
    I think this formula will not give true/false

+ 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] Formula to Locate Matching Data in Worksheets and return Yes or No to a specified Cell
    By hammer2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2015, 01:09 AM
  2. [SOLVED] Formula to Locate Matching Data in Worksheets and return a value to a specified Cell-
    By hammer2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2015, 01:48 AM
  3. [SOLVED] Formula to Locate Matching Data in Worksheets and return a value to a specified Cell
    By hammer2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-05-2014, 11:38 PM
  4. [SOLVED] Formula to Locate Matching Data in Worksheets and return a value to a specified Cell
    By hammer2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2014, 12:30 AM
  5. Replies: 5
    Last Post: 10-26-2014, 10:37 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