+ Reply to Thread
Results 1 to 14 of 14

Quantity computed based on a drop down list & a numerical value greater than or equal to

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Quantity computed based on a drop down list & a numerical value greater than or equal to

    I sure hope you guys can help me. I am working on a new spreadsheet for a job where I have numerous line items of a product. For each line item there is one product type (ex door, window, glass). However, if the width of the product is greater than a given dimension than I actually will need two pieces. To compound this, there is one type of product that is actually 2 different pieces and if that one product is greater than say 36, I would actually need 4 pieces. This is where I run into the problem.

    I have attached a sample of the worksheet.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    May be this......

    In D3
    Please Login or Register  to view this content.
    and copy down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    The vlookup in D4 finds "1" and - as C4 <> "2L" (it's "NL"- the conditional multiply factor also is 1.
    So either your formula has an error or the table Data contains incorrect data.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  4. #4
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    sktneer
    I tried that formula and when I use I for row 4 which is the "NL" it still only gives me a quantity of1. But is should be 2 since the width is greater than 37. That is where I always get hung up.

  5. #5
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    Tsjallie
    I think I understand what you are saying and agree with those items. However, since the width is greater than 37 in E4 the factor should increase to 2 right? Sorry, I'm better at construction than computers.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    I think you only need this...

    Please Login or Register  to view this content.
    If this is not what you are trying to achieve. Fill the correct desired output manually in the workbook and upload it.

  7. #7
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    Spreadsheet help2.xlsxEntered the results that I am looking for manually.

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    In the attached sheet E5 is less than 37 so D5 is 1 which is OK as per your logic. But E6 is greater than 37 so why D6 is 1? Are you applying any additional criteria to achieve this?

  9. #9
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    Yes. Since the C6 = "W1" it doesn't need an additional piece. If C6 = 2L and the width is less than 37 the quantity would be 2 - if the width was greater than 37 it would require 4. If any other call out in the "Mark" column - width less than 37 then 1 is required, if the width is greater than 37, 2 would be required.

  10. #10
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    Can anyone help me with what I uploaded yesterday? I would really appreciate it.
    Mike

  11. #11
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    since the width is greater than 37 in E4 the factor should increase to 2 right?
    Yes, but your formula only evaluates cell E4 when C4 contains "2L". So there's your problem.

  12. #12
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    Try this....
    Please Login or Register  to view this content.
    With the formula above, while C6=W1 and E6=72, the formula returns 2. Is it right as per your logic?

  13. #13
    Registered User
    Join Date
    12-27-2012
    Location
    Alabama
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    That seems to work perfectly. I appreciate it.

  14. #14
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Quantity computed based on a drop down list & a numerical value greater than or equal

    Glad it helped.
    If that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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] COUNTIFS function w/greater than or equal to, and less than or equal to time values
    By AliciaRenee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-27-2014, 03:57 PM
  2. Replies: 0
    Last Post: 12-28-2012, 06:24 PM
  3. Colouring cells based on equal to or greater than value in another cell
    By bexybeeuk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2011, 11:47 AM
  4. Replies: 7
    Last Post: 05-11-2011, 12:36 PM
  5. Macro to change date format and then run function based on greater than or equal to
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2010, 09:37 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