+ Reply to Thread
Results 1 to 5 of 5

LOOKUP logic assistance needed to return value

  1. #1
    Registered User
    Join Date
    07-10-2019
    Location
    England
    MS-Off Ver
    2018
    Posts
    1

    Exclamation LOOKUP logic assistance needed to return value

    class 1 25% Limit Min class 1 Min class 2 Min class 3
    class 2 50% 250,000 1,350 1,575 1,800
    class 3 25% 500,000 1,800 2,125 2,500
    1,000,000 2,250 2,600 3,375
    2,000,000 2,600 3,000 4,050
    Limit 250,000 3,000,000 2,880 3,375 7,500
    min ????? Amount 6,000 4,000,000 4,900 6,500 6,250
    5,000,000 4,320 5,400 9,900
    6,000,000 6,500 8,100 8,400
    7,000,000 5,760 7,200 11,000
    8,000,000 7,200 9,000 13,350
    9,000,000 8,500 10,600 15,500
    10,000,000 9,650 12,000 17,650

    -----------------------------------------------------------------------------------------------------------------

    If you cannot view please look at the attached


    Essentially what I am trying to do is create a logic which would return the highest min class value(from the table). However this depends on whether class 1/2/3 are filled(top left), for example as the limit entered is 250,000, then we must look towards the first row, and since class 1,2,3 all have values in them, then i wish to return min class 3 (1800)

    BUT

    if it were to be

    CLASS 1 50%
    CLASS 2 50%
    CLASS 3 0%

    then i wish to return min class 2 (1575)


    Thanks
    Attached Files Attached Files
    Last edited by Aksaboutme; 07-10-2019 at 02:31 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Formula assistance needed for a problem

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: LOOKUP logic assistance needed to return value

    Hello and welcome to the forum.

    Here's how I would do this:

    L1 =C2
    M1 =C3
    N1 =C4

    Then you can use this formula:

    =AGGREGATE(14,6,(K3:K14=G7)*(L1:N1>0)*(L3:N14),1)

    See attachment. I changed L1:N1 to white font.
    Attached Files Attached Files

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: LOOKUP logic assistance needed to return value

    Here's an array formula that does not require L1:N1

    =MAX(IF((K3:K14=G7)*TRANSPOSE(C2:C4>0),L3:N14)) Ctrl Shift Enter

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

    Re: LOOKUP logic assistance needed to return 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 post the link for you.)

    https://www.excelguru.ca/forums/show...o-return-value
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Sumproduct formula assistance needed
    By Roma1r in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2019, 02:01 AM
  2. [SOLVED] Assistance Needed With a LookUp Formula
    By wael_afifi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-04-2018, 09:00 AM
  3. IF formula assistance needed
    By dallen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-28-2018, 05:13 PM
  4. [SOLVED] Vlookup formula - assistance needed
    By abdumon7 in forum Excel General
    Replies: 3
    Last Post: 01-23-2018, 07:39 AM
  5. Over time formula assistance needed
    By Russ15 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2015, 09:23 PM
  6. [SOLVED] Logical Formula Assistance Needed
    By respuzy in forum Excel General
    Replies: 6
    Last Post: 03-24-2012, 09:44 AM
  7. Formula Assistance Needed
    By MoonShot in forum Excel General
    Replies: 4
    Last Post: 01-29-2010, 03:02 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