+ Reply to Thread
Results 1 to 6 of 6

How to get less than or equal to the amount according to two criteria

  1. #1
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    How to get less than or equal to the amount according to two criteria

    Requirement description: Set the formula in column C, and find data that meets the following conditions in columns H to J according to columns B and A:
    According to the item number in column B, go to columns H to J to get the price whose date is less than or equal to the corresponding date in column A
    For example: the second row A material number 2021/7/20 corresponds to the price of column H to J is 32

    Can someone please help me ? It would be much appreciated. Thanks in advance
    Attached Files Attached Files
    Last edited by rayhen; 07-26-2021 at 11:04 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,358

    Re: How to get less than or equal to the amount according to two criteria

    Sort the "Price File" by product then Date (Ascending): would you really have prices not sorted ???

    =INDEX($J$2:$J$10,MATCH($B2&$A2,$I$2:$I$10&$H$2:$H$10,1))

    Enter with Ctrl+Shift+Enter

  3. #3
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: How to get less than or equal to the amount according to two criteria

    @JohnTopley Excellent solution. Thank you very much.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,493

    Re: How to get less than or equal to the amount according to two criteria

    Sorting is the most ideal state, and it is a bit more troublesome if you don't sort the formula

    Cell C2 formula , Drag down

    HTML Code: 

  5. #5
    Forum Contributor
    Join Date
    09-01-2020
    Location
    bangladesh
    MS-Off Ver
    office 2007
    Posts
    167

    Re: How to get less than or equal to the amount according to two criteria

    @wk9128 , thank you very much for the solution.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,493

    Re: How to get less than or equal to the amount according to two criteria

    You're Welcome. Thank You for the feedback @rayhen

+ 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. Assigning equal amount of cases/rows
    By Nicolantonio in forum Excel General
    Replies: 2
    Last Post: 05-25-2021, 03:39 PM
  2. [SOLVED] Calculation with multiple criteria- CAP Amount, Min. Amount etc.
    By Shareez Saleem in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2021, 07:59 AM
  3. [SOLVED] Number range to equal same amount
    By baker3720 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-15-2017, 07:22 AM
  4. Trying to get random numbers that equal a specified amount
    By mjrubin23 in forum Excel Formulas & Functions
    Replies: 34
    Last Post: 11-10-2016, 02:54 PM
  5. [SOLVED] Trying to get a zero value to equal a negative amount
    By Raybee_69 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2014, 09:26 PM
  6. Number of equal groups given a total amount
    By traceyonley777 in forum Excel General
    Replies: 2
    Last Post: 02-23-2012, 09:52 AM
  7. returning lowest amount not equal to zero in range
    By johnm59 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2011, 05:03 PM

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