+ Reply to Thread
Results 1 to 10 of 10

I need some help with a better way to search the min/max value

  1. #1
    Registered User
    Join Date
    12-27-2020
    Location
    Maracaibo, Venezuela
    MS-Off Ver
    2013
    Posts
    5

    I need some help with a better way to search the min/max value

    Here´s the thing, I am an SEO Consultant and I am running a study where I compare the top 6 competitors from a client´s website, so many entries will be duplicates among the competitors and this is why I need help retrieving the min and max values from the Sheet2 into the Sheet1.

    For example, the Sheet2 is the data from all 6 competitors but the data I am interested in are the ones shown in the Sheet1...

    In Sheet1 - Max Vol (Col2) > This is the "Search Volume" metric int he Sheet2 (Col4)
    In Sheet1 - Max Difficulty (Col3) > This is the "Keyword Difficulty" metric in Sheet2 (Col5)
    In Sheet1 - Min Position (Col4) > This is the "Position" metric in Sheet2 (Col2)
    In Sheet1 - URL (Col5) > This is the "URL" metric in Sheet2 (Col7)

    This is Sheet1....

    dafe70483c8238d5c1754c015b34c7ca.png

    ...and this is Sheet2...

    bef533dbbaba143d3e3703ceaee6dcee.png

    Thoughts?

    Thanks in advance!!

  2. #2
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: I need some help with a better way to search the min/max value

    Please upload you sample file.

    Regards.

  3. #3
    Registered User
    Join Date
    12-27-2020
    Location
    Maracaibo, Venezuela
    MS-Off Ver
    2013
    Posts
    5

    Re: I need some help with a better way to search the min/max value

    There you go sir!
    Attached Files Attached Files
    Last edited by AliGW; 04-10-2022 at 02:21 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: I need some help with a better way to search the min/max value

    I can't found duplicated data in sheet2.

    but, please try this formula in sheet1

    D2 (follow with ctrl-shif-enter for array formula)
    =MIN(IF(Sheet2!$A$1:$A$201=$A2,Sheet2!$B$2:$B$201))

    Regards.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2502 (Windows 11 Home 24H2 64-bit)
    Posts
    89,698

    Re: I need some help with a better way to search the min/max value

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new here, I will do it for you this time: https://www.mrexcel.com/board/thread...value.1201795/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

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

    Re: I need some help with a better way to search the min/max value

    All ordinary formulae. B2:
    =IFERROR(AGGREGATE(14,6,Sheet2!$D$2:$D$201/(Sheet2!$A$2:$A$201=$A2),1),"")

    C2 (and similar for D2 & E2):
    =IFERROR(INDEX(Sheet2!E:E,AGGREGATE(14,6,ROW(Sheet2!$D$2:$D$201)/((Sheet2!$A$2:$A$201=$A2)*(Sheet2!$D$2:$D$201=$B2)),1)),"")
    Attached Files Attached Files
    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

  7. #7
    Registered User
    Join Date
    12-27-2020
    Location
    Maracaibo, Venezuela
    MS-Off Ver
    2013
    Posts
    5

    Re: I need some help with a better way to search the min/max value

    Quote Originally Posted by menem View Post
    I can't found duplicated data in sheet2.

    but, please try this formula in sheet1

    D2 (follow with ctrl-shif-enter for array formula)
    =MIN(IF(Sheet2!$A$1:$A$201=$A2,Sheet2!$B$2:$B$201))

    Regards.
    That´s because the original data is over 5,000+ entries and as per the forum rules I can´t upload such a big file.

  8. #8
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2408 and WPS V2024(12.1.0.18543)
    Posts
    3,834

    Re: I need some help with a better way to search the min/max value

    Hi xROGERx You allow permission to upload file extension and file size, please refer to this picture
    Attached Images Attached Images

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,634

    Re: I need some help with a better way to search the min/max value

    Along with the details wk9128 has shown you can also upload an xlsb file upto 9.7MB

  10. #10
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2408 and WPS V2024(12.1.0.18543)
    Posts
    3,834

    Re: I need some help with a better way to search the min/max value

    I missed one, it's very important, thank you @Fluff13 guru
    Attached Images Attached Images

+ 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] Search multiple worksheets for search term and paste results in a summary sheet
    By Andy15 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-03-2017, 01:49 PM
  2. [SOLVED] Code to search Excel and return results even if part of search text is present
    By Taoyuan00 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2016, 09:20 AM
  3. Replies: 4
    Last Post: 12-02-2014, 05:17 PM
  4. Replies: 4
    Last Post: 11-08-2014, 04:57 AM
  5. Replies: 4
    Last Post: 05-20-2014, 10:03 AM
  6. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  7. Replies: 1
    Last Post: 10-18-2012, 05:52 AM

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