+ Reply to Thread
Results 1 to 17 of 17

Find Key Word, Then Find Min, Max & Median Values

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Question Find Key Word, Then Find Min, Max & Median Values

    Hi Group,

    I have a table of values & I wish to find a key word, such as "rate" then, find the min, max or median value

    How would I set this up?
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Find Key Word, Then Find Min, Max & Median Values

    Try the example in this file.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    Hi Beamernsw,

    Wow! It works!

    The function is not what I was expecting but it seems to work well.

    What does the contents within the quotes do?

    Can this function work find wildcards or key word, such as:

    XXX Rate
    ABC Rate
    123 Rate

    -- Where I just look for the word "rate"?

    I'll see if I can apply this to my worksheet.


    Thanks again...

  4. #4
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: Find Key Word, Then Find Min, Max & Median Values

    Try changing the A2 in the formulas to "*"&A2

    The "E" and "I" are the column letters for the array.

    If it doesn't work, could you post a sample sheet so we can see how the data is laid out and also provide some examples of the results you expect to see.

  5. #5
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Question Re: Find Key Word, Then Find Min, Max & Median Values

    Hi Beamernsw & Others,

    I attached an example file for reference. I'm actually looking to do a couple of things.

    As you will see in the first file, I'm looking for MIN, MAX, MEDIAN horizontally between different positions & companies. Highlighted areas in yellow is where I need assistance.

    In the second table, I'm looking for min & max dates vertically based from search criteria

    See attached

    Thanks again for the assistance.
    Attached Files Attached Files

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Key Word, Then Find Min, Max & Median Values

    For min values enter in L5 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For Max enter in M5 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For Median enter in N5 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    What you are trying to calculate in the second part of your problem is a mystery to me as I don't see any dates or tasks associated with your data.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    Hi newdoverman,

    Great solutions for the first table. However, if this table was bigger or wider, could another function type work where it would like for the key word, then across or down columns - depending on intent needs?

    Now that I'm seeing this - For Min values - I want to exclude $0.00 rates or find the next smallest value.


    As for my second table,

    I'm simply looking for the following types of tasks & some type of function that will give me the First Start or minimum & Last Start or maximum dates (in the yellow shaded areas)

    First Start Date Last Start Date
    Task 1 04/12/16
    Task 2
    Task 3
    Task 4


    I just noticed that I didn't drag the tasks all the down but it should be.

    Thanks

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Key Word, Then Find Min, Max & Median Values

    For a larger table of values, enter an X above each of the columns that have values to be included in the calculations (every second column)

    All these are ARRAY entered (Ctrl + Shift + Enter)
    Formula for Min if X values are in row 3 from D3 to J3
    Enter in L5 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Max value enter in M5 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Median
    Enter in N5 and fill down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I still don't understand the second part of your problem. Where do the Tasks come from? They are not in your data.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Key Word, Then Find Min, Max & Median Values

    I must be slow today.
    Second part of the problem. I only used the dates that had the Tasks beside them
    First Start ARRAY enter in D16 and fill down. Format as Date
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Last Start Array enter in F16 and fill down. Format as Date
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    Hi newdoverman,

    Something is not working with above examples.

    I revised my example file a little bit.

    With Table 2

    I'm looking for "Task 1" within the Log Data table below it & wanting to find the First or minimum date for "First Start Date". "Last Start Date" is looking for the last date or maximum date when "Task 1" is found

    Once have functions, then I want to drag that down in Table 2


    See updated file for both
    Attached Files Attached Files

  11. #11
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Key Word, Then Find Min, Max & Median Values

    Copy of your workbook with the formulae properly applied.
    Attached Files Attached Files

  12. #12
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    Hi newdoverman

    Fantastic Solutions!

    Thank you for the assistance.

  13. #13
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    Hi newdoverman,

    It doesn't appears that wildcard word searches work. Why is this?

    {=MIN(IF(($D$4:$J$4="X")*(D5:J5>0),D5:J5))}

    The "X" makes it work but would've been nice to use the column headers & look up the word "Rate".

    Doesn't -Matter - You gave the needed results.

    Thanks

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Key Word, Then Find Min, Max & Median Values

    Thank you for the feedback. Not all functions can use wildcards. It would be nice if they did but for now that is the way it is.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  15. #15
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    Hi,

    I have the following which works great!

    {=MIN(IF(($G$33:$G$1000=G7)*($I$33:$I$1000),$I$33:$I$1000))}

    However, in some of my column cells, I have "N/A" in it. Now, instead of the minimum date, I'm getting a "###" result.

    How to ignore the "N/A"?

    Thanks

  16. #16
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    To add above questions,

    In addition to having, "N/A" in some cells, I may also have "TBD" down the same column. How to ignore both of these to make the following work?

    {=MIN(IF(($G$33:$G$1000=G7)*($I$33:$I$1000),$I$33:$I$1000))}

  17. #17
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Find Key Word, Then Find Min, Max & Median Values

    Hi Group,

    Not sure what I did, but I managed to get the function working just fine...

    Thanks

+ 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 Median of an array
    By Sean Thomas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2015, 06:06 AM
  2. Replies: 2
    Last Post: 07-02-2015, 07:35 AM
  3. Median Indirect: Find median in range and bring back adjacent cells
    By Keelin in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-27-2014, 08:31 AM
  4. Find a Median Point along a Row
    By nyiballs in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-11-2014, 03:02 PM
  5. Find blank cell, insert formula to find median of above cell range
    By lilyeye in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-05-2013, 11:58 AM
  6. [SOLVED] Median Ifs, need to find median $ amount per deal for each year
    By xenomorph8472 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2012, 02:01 PM
  7. How do find Median of a set of totals and find the relating grade
    By whitespaces in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2006, 11:16 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