+ Reply to Thread
Results 1 to 5 of 5

Lookup value based on minimum Height and Width

  1. #1
    Registered User
    Join Date
    02-06-2019
    Location
    Whistler, Canada
    MS-Off Ver
    Office 2017
    Posts
    2

    Lookup value based on minimum Height and Width

    Hi all,

    I'm trying to create a formula where a value is looked up based on a minimum height and width from an allowed list.

    For example there are 5 dimensions allowed: 2 x 4, 5 x 7, 10 x 15, 12 x 20, and 15 x 30.

    If i needed to look up 8 x 20, it would need to recognise that although 10 x 15 fits the first criteria, actually 12 x 20 is the smallest to fit both criteria.

    I'm thinking it would need to be some sort of a MIN array formula?

    Thanks in advance for your help!

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Lookup value based on minimum Height and Width

    Hello sanderb1. Welcome to the forum.

    With dimensions allowed in A1:E1 as in the attached and the sizes to lookup in A3:An this array entered formula in B3 and filled down.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Lookup value based on minimum Height and Width

    If figures can be split as in the file.

    =IFERROR(INDEX($A$2:$A$6&" X "&$B$2:$B$6,AGGREGATE(15,6,ROW($A$2:$A$6)/(($A$2:$A$6>=$D3)*($B$2:$B$6>=$E3)),1)-ROW($A$2)+1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Lookup value based on minimum Height and Width

    Try this

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-06-2019
    Location
    Whistler, Canada
    MS-Off Ver
    Office 2017
    Posts
    2

    Re: Lookup value based on minimum Height and Width

    Thank you very much, I couldn't make it work without splitting them, but the splitting solution worked perfectly!

+ 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. Get PNG height and width
    By Chocobo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-01-2015, 10:30 AM
  2. Need help creating a pricing matrix based on width and height
    By alisssa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-10-2015, 07:24 PM
  3. Replies: 1
    Last Post: 01-14-2015, 11:39 AM
  4. Replies: 3
    Last Post: 03-22-2013, 12:19 AM
  5. Select Range based on offset with (row,column,height,width)
    By incjourn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2011, 08:41 AM
  6. [SOLVED] Name Box Width and Height
    By Werner Rohrmoser in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-28-2006, 08:20 AM
  7. Minimum Row Height?
    By PBS in forum Excel General
    Replies: 1
    Last Post: 02-11-2005, 02:06 AM

Tags for this Thread

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