+ Reply to Thread
Results 1 to 9 of 9

Automating price file creation for multiple customers

  1. #1
    Registered User
    Join Date
    09-04-2018
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    4

    Question Automating price file creation for multiple customers

    First time posting, and this issue kind of covers general help, tables, formulas, and maybe macros, so not sure where was the best place to post it.

    I am trying to manage price files for multiple customers. In this example there are 2 main price files, and each customer could be on both price files dependant on product group. i.e. Price file 1 for some products and price file 2 for other products, which can be seen in the "Customer Master" tab in the (hopefully) attached file and below.

    Pears Bananas R Apples G Apples
    Adam 1 1 2 1
    Bill 2 2 2 1
    Charlie 1 2 2 2
    The next tab shows the actual price files, with different items having different prices based on which price file it is.

    Each month the price files will be updated, and certain prices will be tweaked and amended. This then needs to be reflected against each customer, so that there is an up to date price file for each one.

    What I'm looking for is some form of automation, but not sure the best way to go about it.
    In an ideal world, the end result would be something along the lines of:
    • The manager updates the price files in the Pricing tab at the end of each month based on marketing information etc.
    • Based on which price files the customer has listed for the different product groups in the customer master tab, a full price file for that customer is created.

    We would then have price files for all the customers which we could load into our ERP system. Doing that manually would be possible, but likely to result in mistakes and would take a long time especially with lots of customers. It would just involve looking at what price file they have for a certain product group, and then copying and pasting the relevant item numbers and prices into that customers price file. So cumbersome and very open to errors. Or alternatively (and even more time consuming), manually changing each customers price file one by one.

    Not sure if this is possible through excel, but even part automation of the process would be fantastic and save huge amounts of time. Especially if there is a solution that is scalable, over many customers and many items. Not sure what it requires though, as in I have no idea where to even start, hence wasn't sure where to post it. Hoping that someone can point me in the right direction as to what I should be thinking of doing! My excel knowledge is good when it comes to tables/formulas etc, but pretty lacking with regards to macros, but happy to learn if it's going to save me time!

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Automating price file creation for multiple customers

    First Question: What are price file 1 and price file 2? Which is used to determine price? Secondly, I do not see any date information. Tertiarily, I see item number on the price file sheet, but only "generic" bananas, pears, etc. on the Customer Master.

    We'll need some more explanation on how the fruit ties to the customer and since you are working with an ERP system, you'll need dates.

    Overall, this is do-able with Excel tables, vlookups and normalized data.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    09-04-2018
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Automating price file creation for multiple customers

    Hi dflak, thanks for the response.
    1) Price files 1 and 2 are in essence two completely different price files. For example price file 1 may be for customers in northern Ireland, and price file 2 for customers in the Republic of Ireland. But currently for any one customer, they may be using different parts of both price files. So a customer may be on price file 1 because they are based in NI. But if they are struggling to compete with a certain product group (say pears), and that product group is cheaper in price file 2, we may put them on price file 1 for all products, except for the "pears" product group where we will put them on price file 2. Each month both price files may be reviewed and edited based on market conditions.

    2) Not sure what you mean by date information, but lets say that the price files are valid from today for the next 5 years, for example

    3) So there are product groups, and within that group each type of product has a different item number. Maybe fruit was a bad example to use, but I wanted to generalise the information. For the fruit example, there are multiple types of red apples, so each different type would have a different item number. But all of the "AR" item numbers all fall under the "Red Apple" product group. The reason for setting it up like this is: the prices are typically determined at an item level number, but the entire group will be assigned to a customer. So in the example above, the customer will get price file 2 for the entire Red Apple product group.

    So in general, a customer can purchase any of the items. Each item falls under a different product group. And we manage the price files at an item level, but then set the prices for the customer by product group. This is because we have only a few prices files, but over a hundred customers. So it is easier to manage a few price files, rather than a separate price file for each of a hundred customers.

    Hope that clarified things. It's all very clear in my head, but it's a harder job putting it into words, so apologies if things aren't that obvious.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Automating price file creation for multiple customers

    OK, so you now need to add information to the customer master to tell the system which pricing applies to them.

    I guess you don't need a date if people don't actually order anything. Without a date the best we can say is this is what the products would cost if the customer ordered the indicated amounts. Every system I've seen that has orders also has an order date associated with it. One piece of missing information is what do you want the final product to look like so you can import it into your ERP system? I find it difficult to envision an ERP system not requiring an order date.

    As far as the fruit example goes, you have the mapping going in the wrong direction. If you told me item number P100 then I know that it is a pear. However if you told me that pears were ordered, I have no way of knowing whether it is P100, P101, P102 or P103.

    In fact with the information currently available if a customer places one order for pears it could cost 3.60, 3.45, 4.20, 4.07, 3.90, 3.82, 6.80 or 6.72 - due to the ambiguities of the data.

    Here is how I think the data should be organized.

    First I made use of Excel Tables since they know how big they are (so formulas based off them are always correct regardless of how many rows are added), and they repeat the formulas down automatically so you don't have to and they use column headers which makes understanding the formulas easier.

    I kept the price file exactly the way it was.

    On the customer master all I needed was what pricing scheme applied to each. You may want some additional information here as you develop it out like customer id, location and contact information.

    The orders sheet presents the data in normalized format. In this table are:
    - order date
    - who ordered the product (you can use data validation to provide a drop-down list of valid names)
    - the item ordered (data validation can also be applied)
    - the quantity ordered (data validation can be used to restrict this to positive whole numbers)
    - the item is looked up from the Price file based on the item ordered.
    - the subitem is looked up from the Price file based on the item ordered.
    - the price group is looked up from the customer master
    - the price is looked up from the price table based on the item ordered and the customer's price group
    - the cost is computed as the product of price * quantity

    You can keep a running "tab" of orders. Until you are ready to import them to the ERP system. Once they are imported, you can clear the table (Tables also "remember" formulas) and start data entry for the next import.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-04-2018
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Automating price file creation for multiple customers

    So the reason I don't think I need dates is that I'm not looking for this to be a running tracker of orders. Instead I want it to be a combined price file for all customers. Something along the lines of what is attached
    In either format really. But the key here is that each customer can be on multiple price files, dependant on the product group.

    So the customer master needs to be a matrix, because each customer can be on a different price file for a different product group.

    And for the mapping. The pricing is against the item number, so if they order item number P100 they get a certain price. The product groups are just a way for us to categorise and manage the data. So a customer would never order "pears," they would order a specific item number.
    And then when we are for example analysing sales, we could see 5 P100's sold, and 3 P101's sold, so in total 8 pears.
    And similarly, if doing a price review, we may say the price for all pears in Price file 1 is going up 5%, and in price file 2 it's 10%. Easier to manage multiple price files that way, rather than updating each price individually for every customer.

    What you've put together is excellent, so thanks very much! But I guess the next step from there is whether the lookup can be against multiple criteria.
    So for Customer 1, for this part number, if the product group is A, then it pulls the prices according to that price file?
    Attached Files Attached Files

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

    Re: Automating price file creation for multiple customers

    Will this file help you?
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Registered User
    Join Date
    09-04-2018
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Automating price file creation for multiple customers

    OK so hopefully this is much easier to understand.
    On the left is the price files which will be updated each month.
    Based on the matrix on the top right (which determines which price is used for a certain product group for a certain customer), for Item P100, as it is part of the "Pears" product group, Adam should have a price of £3.60, whereas Bill should have a price of £3.45. Because Adam is on Price 1 for Pears, and Bill is on Price 2.
    So those amounts need to be in the highlighted cells based on the previous 2 tables.

    Is that doable? And extendable across many customers.
    Attached Files Attached Files

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

    Re: Automating price file creation for multiple customers

    Another attempt
    Attached Files Attached Files

  9. #9
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: Automating price file creation for multiple customers

    I'm like one of those energy-efficient light bulbs. You turn on the switch and I get brighter .... eventually. It looks like popipipo is tuned into your wavelength.

    Here is my take on this using what I call a "composite key." The thing that makes a record unique is the combination of the customer and the product.

    The attached has 4 tables.

    The first table (Table_Customer - Orange) is a list of customers and their default Price Group.

    The second table (Table_Exceptions - Green) is a list of the customers and items for which they are excepted. The third column of this table is the composite.

    The third table (Table_Items - Gray) is your product list.

    The fourth table (Table_Test - Black) lets you choose customers and products and gives you the price. Play with the drop-downs.

    The first two items in this table are data validated against the customer name and the item number respectively. The third column is looked up from Table_Items.

    The price group column has the formula: =IFERROR(INDEX(Table_Exception,MATCH([@Customer]&":"&[@Item],Table_Exception[Composite],0),4),VLOOKUP([@Customer],Table_Customer,2,FALSE))

    This part: INDEX(Table_Exception,MATCH([@Customer]&":"&[@Item],Table_Exception[Composite],0),4) looks up the exception for the customer and product entered. If an exception for that product does not exist, then it returns and error.

    The IFERROR catches this and passes execution to the second part: VLOOKUP([@Customer],Table_Customer,2,FALSE) which looks up the default price group for the customer.

    So the bottom line is if there is an exception, use it. Otherwise, use the default.

    It is happenstance the groups are given numbers 1 and 2. To look up the price, do a VLOOKUP on the item table. To figure out which column to return (price group 1 or 2), use the value computed in the price group column.
    Attached Files Attached Files

+ 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. Replies: 3
    Last Post: 09-12-2015, 10:42 AM
  2. Automating Chart Creation and Exporting to Word
    By rpmccaffrey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2011, 09:03 PM
  3. Trouble automating creation of charts/graphs
    By vbanewb14 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2010, 05:01 PM
  4. [SOLVED] Multiple customers that have different price quotes
    By Pete Elbert in forum Excel General
    Replies: 1
    Last Post: 04-24-2006, 07:40 AM
  5. Replies: 0
    Last Post: 01-05-2006, 02:20 PM
  6. Automating hyperlink creation
    By Steve Williams in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-13-2005, 09:05 PM
  7. [SOLVED] Automating production book creation - many procedures to run
    By James W. in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2005, 02:05 PM

Tags for this Thread

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