+ Reply to Thread
Results 1 to 9 of 9

Formula to Locate Matching Data in Worksheets and return Yes or No

  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 Yes or No

    Hi Folks

    Need a formula to satisfy some criteria and then to lookup other sheet/s and return Yes or "" to a cell.

    I have attached a sample Workbook.

    Cheers
    hammer
    Attached Files Attached Files
    If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
    No idea why I need Rep, other than feeling left out....

  2. #2
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Formula to Locate Matching Data in Worksheets and return Yes or No

    Hi Hammer,
    Not sure if I've understood fully what you want the calculation to be, but try with this formulas:

    - to get TrA_Rank value in column P2 copy this formula in the cell and copy down the cell till the last needed row
    Please Login or Register  to view this content.
    - to show "Yes" or "" in column P2 copy this formula in the cell and copy down the cell till the last needed row
    Please Login or Register  to view this content.

  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 Yes or No

    Hi Igormigor
    Thanks for the response
    The 2nd formula is the one but I would like to be able to pull it across 57 Cols in all
    As it is at the moment I would have to manually change the next one A:D"),4,0 to A:E"),5,0 etc
    Hoping to get a formula that will pull across?
    Thanks
    hammer

  4. #4
    Forum Contributor
    Join Date
    01-18-2013
    Location
    Prague
    MS-Off Ver
    Excel 2013
    Posts
    159

    Re: Formula to Locate Matching Data in Worksheets and return Yes or No

    Check this formula. Based on the TrA_Rank value in column L (if its 1) you are displaying the value in column P.
    After that I presume that you have same relative position for JoA_Rank, aDS_Rank and bDS_Rank, for both ranges M-O and Q-S.
    Let me know if you have some issues.

    Please Login or Register  to view this content.
    Watch out, the formula will work if the values in columns ZZ-AAF are empty.

  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 Yes or No

    Hi igormigor
    I've put the formula in Col P just to explain the situation-
    In the real workbook the headings begin with TrA_Rank as shown in Col L and continue to BO inclusive-

    The formula would actually start in BP and be pulled across to DS inclusive.

    So this is the formula I currently have in BP:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This works correctly but will not pull across-
    The next cell in col BP would have this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and so on but I would have to do them all manually- was hoping to avoid that.
    Thanks
    hammer

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Formula to Locate Matching Data in Worksheets and return Yes or No

    If I understand your requirement

    Try

    =IF(AND(J2=1,L2=1),IF(VLOOKUP(C2,INDIRECT(I2&"!A:BG"),COLUMNS($P:P)+3,0)>=10,"Yes",""),"")

  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 Yes or No

    Just had to change $P:P to $D:D to reflect the real Workbook and we are underway

    Many thanks to both igormigor and John for your wonderful assistance!
    Regards
    hammer

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: Formula to Locate Matching Data in Worksheets and return Yes or No

    FYI ... a little "neater"

    =IF(AND(J2=1,L2=1),IF(VLOOKUP(C2,INDIRECT(I2&"!A:BG"),COLUMNS($A:D),0)>=10,"Yes",""),"")

    starting 4th column in VLOOKUP range

  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 Yes or No

    Very good!

+ 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 a value to a specified Cell
    By hammer2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-16-2015, 08:42 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: 9
    Last Post: 03-19-2015, 05:38 AM
  3. [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
  4. [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: 5
    Last Post: 01-24-2015, 06:51 AM
  5. [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
  6. [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
  7. 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