+ Reply to Thread
Results 1 to 10 of 10

IF/THEN on Bulk Orders (1-14,15-49, etc)

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    Louisiana
    MS-Off Ver
    2013
    Posts
    6

    IF/THEN on Bulk Orders (1-14,15-49, etc)

    Ladies, Gents...

    First thanks for having this forum available. Second, thanks in advance for any help you can provide.

    Third...

    I'm putting together a spreadsheet to use for a business plan that shows the Cost of Goods Sold for Assembly Items, and then measures the markup, etc.

    I have available pricing ranges from a vendor, 1-14, 15-49, 50-199, and 200+

    Currently, I input values of what completed products I need to produce, and the spreadsheet automatically fills the values of how many inventory items to order (including rounding up for things sold in packages)

    Right now, I have to manually check what pricing bracket I'm in, but I'd like to have the spreadsheet do it for me.

    How do I get the spreadsheet to automatically choose whatever bulk price bracket I'm in based on the value in the "Total Number Ordered" field?

    Again, thanks in advance!
    Daniel

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    Welcome to the board.

    A
    B
    C
    1
    Qty
    Price
    2
    1
    1.99
    3
    15
    1.45
    4
    50
    1.17
    5
    200
    1.08
    6
    7
    8
    27
    1.45
    B8: =VLOOKUP(A8, $A$2:$B$5, 2)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-25-2014
    Location
    Louisiana
    MS-Off Ver
    2013
    Posts
    6

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    Thanks for the welcome, and the help so far!

    I input this, because my table is horizontal:

    =HLOOKUP(L4,G3:K27,4,FALSE)

    It came back with a "Value Not Available Error"

    I'm assuming it's because I'm ordering 12, and the table only shows the values of 1, 15, 50, and 200. How do I get it to select the values from a range of 1-14, etc?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    What's in G23:K27?

    Save some time and post a workbook.

  5. #5
    Registered User
    Join Date
    07-25-2014
    Location
    Louisiana
    MS-Off Ver
    2013
    Posts
    6

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    Yellow is the Data Table, Orange is the cell I need the formula in, and red is the number of items I'm pulling from.
    Attached Images Attached Images
    Attached Files Attached Files

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    The last argument in the HLOOKUP function should be TRUE or omitted.

    EDIT: If I understand the workbook, the formula in K4 should be

    =HLOOKUP(L4, $G$3:J4, ROWS(K$3:K4))

    or (better, IMO),

    =INDEX($G4:$J4, MATCH(L4, $G$3:$J$3))
    Last edited by shg; 07-27-2014 at 06:18 PM.

  7. #7
    Registered User
    Join Date
    07-25-2014
    Location
    Louisiana
    MS-Off Ver
    2013
    Posts
    6

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    I tried that and it still was puling the wrong value. I needed to change that and the Row_Index_Number, or the third value in the formula, needs to reflect the row in the Table Array, not the row in the document.

    Thank you so much for the assistance. I'm sure I'll be back with some off the wall question in the future.

  8. #8
    Registered User
    Join Date
    07-25-2014
    Location
    Louisiana
    MS-Off Ver
    2013
    Posts
    6

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    Your INDEX function brings back the correct number (so it works) but alerts "Formula Omits Adjacent Cells". Out of curiosity, what does that mean?

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    I tried that and it still was puling the wrong value.
    Both formulas return the same result for me.

    alerts "Formula Omits Adjacent Cells" ...
    I don't use Excel's error checking, but don't see that error when I turn it on.

  10. #10
    Registered User
    Join Date
    07-25-2014
    Location
    Louisiana
    MS-Off Ver
    2013
    Posts
    6

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    are you using 13? It's a windows product, so I don't expect it to make sense 100% of the time.

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: IF/THEN on Bulk Orders (1-14,15-49, etc)

    2010 .

+ 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. Create orders log and monthly report for all orders
    By adfo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2013, 09:39 AM
  2. A Formula that can calculate bulk orders
    By tommywat in forum Excel General
    Replies: 22
    Last Post: 07-18-2012, 10:40 AM
  3. Bulk Sorting
    By johnlovesbeer in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-02-2009, 01:16 AM
  4. Transpose in bulk
    By Daisy10 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-27-2008, 02:26 AM
  5. Bulk processing
    By PO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2005, 09:06 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