+ Reply to Thread
Results 1 to 8 of 8

Look a fix qty into intervals of qty and show specific value

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    7

    Look a fix qty into intervals of qty and show specific value

    HI,

    Can someone please help me with sthg? I look into queries on this forum , but didn't found it yet and I need.
    I have some products that take different price for different ordered qty.
    IF qty 1 => price is 200, if qty is (2-99) => 180, if qty is (100-299) the price is 170. How to match a fixed qty to the correct price? eg.if the qty =70..how to look it on the intervals? see file attached

    thanks
    Cami.

    data.xlsx

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Look a fix qty into intervals of qty and show specific value

    Hi Camelia,

    In your sample workbook, how do you match the PN to the price categories?
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    08-23-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Look a fix qty into intervals of qty and show specific value

    Hi Camelindazzz,

    You need to put in the IF functions. Based on your worksheet, I have started for you. (I have used your thread example in your worksheet)

    In cell K8, paste the following:
    Please Login or Register  to view this content.
    This means "if the value in cell J8 is equal to 1, the price is 200. If the value in J8 is less than 100, the price is 180. If the value in J8 is less than 299, the price is 170. If none of the following are true (over 299) the price is 170."


    I hope this helps!

    If you need anything, please message me.
    Last edited by thinkspac; 09-06-2012 at 03:35 PM.
    A macro does what you tell it, not what you want.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Look a fix qty into intervals of qty and show specific value

    Maybe like this.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    09-06-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Look a fix qty into intervals of qty and show specific value

    This is very good ,Thanks,but..
    if the PN are in no particular order, like I put first time (1/2/3/1/1/2/2/etc) not 1/1/1/2/2/2/3/3/3..this kind of solution doesn't work. I have attached the updated file, where I tried to do this..
    Another issue, but I think this could be solver easy, that in fact the PN cells are not like 1, 2,3,4...they are like a unique code, letters and numbers (UX200V,for example). I think I couldnt use the & if this is General data.
    ..
    I'm lost..

    Regards

  6. #6
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Look a fix qty into intervals of qty and show specific value

    Not a problem, you can do that with SUMPRODUCT like this:

    Please Login or Register  to view this content.
    but you stlll need to have a way of matching your PN numbers to the price categories. See column H in the attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-06-2012
    Location
    Romania
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Look a fix qty into intervals of qty and show specific value

    Great ! this works perfect now.
    I look for the Sumproduct definition , but I dont get what are these "--" , can you please explain me..because I want to understood it well, to know it next time.
    About the matching I'm ok, I have the PN numbers, I made the ad notation 1,2,3, only for making it easier

    Thanks a lot
    Last edited by Cutter; 09-07-2012 at 07:11 PM. Reason: Removed whole post quote

  8. #8
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Look a fix qty into intervals of qty and show specific value

    The Double Unary Operator (--) converts a TRUE/FALSE to a 1/0 and allows Excel to use these in further math operations. Have a look here for a more detailed explanation.

+ 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