+ Reply to Thread
Results 1 to 11 of 11

Search values in data table that are greater than cell value

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    41

    Search values in data table that are greater than cell value

    I have a formula that I need to have expanded to included finding filtered data based on a value in a cell - one cell is greater than and one cell is less than.

    Formula - (Array)

    {=IFERROR(INDEX(Total!A$2:A$88,SMALL(IF(ISNUMBER(SEARCH(TRIM($B$2),Total!$B$2:$B$88)*SEARCH(TRIM($H$4),Total!$L$2:$L$88)*SEARCH(TRIM($H$2),Total!$H$2:$H$88)*SEARCH(TRIM($B$8),Total!$K$2:$K$88)*SEARCH(TRIM($B$6),Total!$J$2:$J$88)*SEARCH(TRIM($B$4),Total!$I$2:$I$88)),ROW(Total!$A$2:$A$88)-MIN(ROW(Total!$A$2:$A$88))+1),ROWS($A$1:$A1))),"")}

    Greater than Cell - $H$6
    Less than Cell - $H$8

    Data Column - (Total!$G$2:$G$88)

    I included a sample to work on.

    Premier Quick Help.xlsx
    Last edited by sambuka; 07-04-2012 at 11:14 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Search values in data table that are greater than cell value

    Add a condition in Coumn G to populate BTG only within the minimum and maximum range and make all othe row cells conditional on whether the BTG column populates or not
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    03-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Search values in data table that are greater than cell value

    Not sure what you mean. In an array you can set conditions? Or conditional Formatting?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Search values in data table that are greater than cell value

    In cell G12 use
    Please Login or Register  to view this content.
    In A2 use

    Please Login or Register  to view this content.
    Adapt for all other columns and remember use Ctrl+Shift+Enter

  5. #5
    Registered User
    Join Date
    03-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Search values in data table that are greater than cell value

    We are almost there.

    Is there a way to sort the results in Column G (smallest to largest)?

    With your formula is spaces the results out, I am looking for a condensed view.

    Thank you

  6. #6
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Search values in data table that are greater than cell value

    there are three version of this file (1, 2, 3), each with increasing level of automation (and err... simplification). take your pick, based on preference and/or performance. let me know if you have any question.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Search values in data table that are greater than cell value

    Aha..didnt tackle the spaces. I'd go with first option given by icestationzbra

  8. #8
    Registered User
    Join Date
    03-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Search values in data table that are greater than cell value

    @Ace - Thank you for taking the time to help with my problem. Every bit teaches me more.

    @Ice - you came through for me again. Definitely a lifesaver. I went with the first option because I knew your formula. Thank you for giving me alternative options for me to play and learn from.

  9. #9
    Registered User
    Join Date
    03-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Search values in data table that are greater than cell value

    Ice - When I put your formula into the master sheet, it blanked everything out. I am sure the problem exists that the worksheet "Total" is derived of formulas pulling data from another worksheet.

    ie. ( ='Premier 750'!A8)

    I attached an update with the full pivottable and the "Total" worksheet pulling from that.

    Let me know if you can help. Thank you

  10. #10
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Search values in data table that are greater than cell value

    the reason is that there are some #N/A values in column G. use the following formula in 'Quick Search A12':

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    03-09-2012
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Search values in data table that are greater than cell value

    That was it! Thank you again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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