+ Reply to Thread
Results 1 to 6 of 6

Referencing another Excel Sheet and adjusting cells based off entered quantity

  1. #1
    Registered User
    Join Date
    10-18-2018
    Location
    Minnesota, USA
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    3

    Referencing another Excel Sheet and adjusting cells based off entered quantity

    Hello

    I am currently attempting to edit an existing Excel spreedsheet/formula to be more intuitive. We currently have a Quote sheet template that is copied and used to quote customers. This quote sheet references a Part number table, which is another spreedsheet shared on the network with one sheet. The information in the sheet has the part number, a description, a supplier, and pricing, which we have moved onto the quote sheet. The pricing for individual parts becomes cheaper as more are ordered at once, thus the lower prices for higher quantities. The part number table looks like this:

    Part Number Table.png

    There are currently no formulas in the part number table. It is just a large excel table.

    When in the Quote sheet, entering a part number that is present in the part number table sheet will then populate the entire row in the quote sheet. Here is an example of what the quote sheet looks like. I only entered a quantity and a part number into the quote sheet and the rest was pulled from the table.

    Quote Sheet example.png

    The quote sheet has a formula written into each cell on each row columns C through O. The formula is as follows (Taken from row 14 column C description cell):

    =IF(ISNA(VLOOKUP(B14,'[Part Number Table.xls]Sheet1'!$A:$M,2,FALSE)),"",(VLOOKUP(B14,'[Part Number Table.xls]Sheet1'!$A:$M,2,FALSE)))

    The issue that I am having is when entering a part from the table that has a large quantity in the assembly, the pricing is not adaptive and will still have the price as if a lower quantity is being ordered. This is because it is just taking that row from the part number table and adding it to the quote sheet at the appropriate spot. Below are two examples. The first image has an quantity of 1, while the second has a quantity of 25.

    Quantity of 1.png

    Quantity of 25.png

    The total parts cost for 1 assembly then should be $62.50 and not $112.50 since 25 parts are being ordered to make the one product and the price for each would then be lower ($2.50 each for orders of 25). If 25 products where being made using one part each this would work just fine, and many times it does, but certain assemblies using multiples of one part to make one complete product. What I'd like is for the lower pricing to shift to every cell to the left that part qualifies for. So in this case the 1, 2-4, 5-9, and 10-24 column would also be updated to $2.50. But only for the row where the quantity is appropriate.

    I attempted to add some extra instruction to the formula such as another LOOKUP, and then trying to compare the column A number (QTY) and setting a cell, but I am thinking that I need to go about pulling the information in a different way since it is currently pulling that entire row into the sheet.

    I appreciate any advice or helpful links, and I can add clarification where needed. I apologize if this post is extremely long for a question, but I thought it might be helpful to add as many details as possible.

    Thank you.

    -Ricky

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Referencing another Excel Sheet and adjusting cells based off entered quantity

    Instead of pulling a Price. Pull a list of break points and a list of prices.

    In my test My Test

    I pulled my Price Breaks into columns G to K

    I pulled my Prices into columns L to P

    Then My Qty is in Cell A2. This Formula then returns the appropriate price. =OFFSET(K2,0,MATCH(HLOOKUP(A2,G2:K2,1,TRUE),G2:K2,0))
    Attached Files Attached Files
    Last edited by mehmetcik; 10-18-2018 at 05:39 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    10-18-2018
    Location
    Minnesota, USA
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    3

    Re: Referencing another Excel Sheet and adjusting cells based off entered quantity

    Thanks for the quick reply! The attached workbook was very helpful!

    Would you have any suggestions on how to implement something similar to my current workbooks? The example provided looks at one row correct? The part number table currently works by adding that number anywhere in the sheet it will be pulled. Would I be able to have one row of break points that each row in the part number table would compare to?

    Thanks again. I appreciate the help. I'm new with Excel so anything and everything helps a ton!

    -Ricky

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Referencing another Excel Sheet and adjusting cells based off entered quantity

    You would have a list of breakpoints and matching prices for every product.

    I showed 5 each. You could use ten or twenty. But you do not have to use them. You could just just use one.

    I will demonstrate.

    Look at the attachment.
    Attached Files Attached Files
    Last edited by mehmetcik; 10-18-2018 at 06:52 PM.

  5. #5
    Registered User
    Join Date
    10-18-2018
    Location
    Minnesota, USA
    MS-Off Ver
    Microsoft Office Standard 2016
    Posts
    3

    Re: Referencing another Excel Sheet and adjusting cells based off entered quantity

    So by this method I would need to use a break-point row for each part number and its special pricing? In your example it seems like I am unable to change where it is referencing to. This is because you have an array correct? Is there a way to reference each row to one break-point table? This would be helpful since every part has the same break-points.

    Thanks again!

    -Ricky

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Referencing another Excel Sheet and adjusting cells based off entered quantity

    Hello Ricky Naut and Welcome to Excel Forum.
    If I understand post #1 correctly then you are looking for a formula like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The above formula is used to populate C9:J11 in the attached file.
    If the file is not representative of your set up, I suggest that you upload a sample.
    To attach a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Adjusting Cells Based On Completion
    By MrPifster in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2017, 05:37 PM
  2. adjusting for quantity
    By Excel_noob_ in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-30-2013, 08:09 PM
  3. Replies: 0
    Last Post: 12-28-2012, 06:24 PM
  4. Replies: 6
    Last Post: 04-21-2010, 11:59 AM
  5. Replies: 5
    Last Post: 11-23-2009, 06:24 PM
  6. Referencing cells on a separate sheet based on pull down menu response
    By Jenrich in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-03-2009, 03:37 PM
  7. [SOLVED] can excel draw a shape based on values entered in cells
    By Milo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2005, 09:06 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