+ Reply to Thread
Results 1 to 7 of 7

Retrieve country and volume dependent price

  1. #1
    Registered User
    Join Date
    12-11-2017
    Location
    Germany
    MS-Off Ver
    Office 365
    Posts
    17

    Retrieve country and volume dependent price

    Hello together,
    I am looking for a (nested) formula which returns a volume and country dependent unit price.
    For each country there are 3 volume bands with 3 different unit prices.
    For each monthly volume I would need a unit price.
    I tried out a combination of If, match and index function to no avail.
    Many thanks in advance
    Philip

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Retrieve country and volume dependent price

    this would be one way...
    =IF(C15<101,C15*VLOOKUP($B15,$B$4:$C$8,2,FALSE),IF(C15<201,C15*VLOOKUP($B15,$B$4:$D$8,3,FALSE),C15*VLOOKUP($B15,$B$4:$E$8,4,FALSE)))
    in O15, dragged down and across.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Retrieve country and volume dependent price

    I am curious what combinations of IF(), MATCH(), and INDEX() you tried. It might help us help you understand better what you were doing wrong.

    Here's the approach I would probably use (only needs INDEX() and two MATCH() functions).

    1) Enter 0, 101, 201 into a helper row adjacent to the lookup table (I used row 10 -- 0 in C10, 101 in D10, 201 in E10).
    2) To get the row number, a MATCH() function referencing the country name MATCH($B15,$B$4:$B$8,0). Note the mix of relative and absolute references. Also note that the match type argument is 0 to indicate exact match (If you are unfamiliar with the behavior of the match_type argument, help file here: https://support.office.com/en-us/art...9-533f4a37673a ).
    3) To get the column number, I use a MATCH() function referencing the volumes. MATCH(C15,$C$10:$E$10,1). Note that I used 1 for the match_type argument to get the approximate match behavior. I know that almost all lookup examples across the internet demonstrate exact match type behavior and almost none of them demonstrate the approximate match behavior. I recommend you spend some time understanding how the approximate match behavior works, because I find it very useful in cases like this.
    4) With row and column number, a simple INDEX() function will extract the unit price INDEX($C$4:$E$8,MATCH(step 2),MATCH(step 3))
    Last edited by MrShorty; 07-06-2018 at 01:44 PM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,292

    Re: Retrieve country and volume dependent price

    Here another way.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Retrieve country and volume dependent price

    Another option with simple VLOOKUP:

    Please Login or Register  to view this content.
    Or:

    Please Login or Register  to view this content.
    With 10000000 is any number that is large enough.
    Last edited by bebo021999; 07-06-2018 at 11:07 PM.
    Quang PT

  6. #6
    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,647

    Re: Retrieve country and volume dependent price

    @Popipipo - Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    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.

  7. #7
    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: Retrieve country and volume dependent price

    Another way.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

+ 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. Volume Price Mix Calculation
    By Drewftaylor in forum Excel General
    Replies: 1
    Last Post: 11-15-2016, 12:39 PM
  2. [SOLVED] Mix, Volume and Price impact on revenue
    By Stumped in San Francisco in forum Excel General
    Replies: 2
    Last Post: 08-23-2014, 11:39 AM
  3. Does anyone have models for price/volume variance
    By ammartino44 in forum Excel General
    Replies: 1
    Last Post: 03-27-2014, 01:16 PM
  4. Comparative chart for volume and price
    By Aman Bains in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 12-06-2013, 04:50 PM
  5. adjusting a price based on volume
    By kwkness in forum Excel General
    Replies: 6
    Last Post: 06-17-2013, 03:53 AM
  6. Two Variables of price vs volume calculation concurrently
    By omega0010 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2012, 02:28 PM
  7. [SOLVED] calculate/convert volume price to monthly average price
    By Bultgren in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2006, 05:40 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