+ Reply to Thread
Results 1 to 18 of 18

Update pricing and mark discontinued items for master price list

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Update pricing and mark discontinued items for master price list

    I've got 2 sheets.

    First sheet is my own master price list.
    Second one is Supplier "Fruit Co." price list.
    Third one is Supplier "Produce Land" price list

    Every year the supplier's will change their price list. Sometimes they will add items, sometimes they will remove some and sometimes they will change the pricing.

    I only have 1 sheet for each supplier, so if the supplier introduces a new price list, I clear their current one and paste in the new one. The formatting remains each time.

    I would like to rig something so that if the master file has the same part number and supplier as another sheet, it will look to see if the cost price has changed, and if it did, the it will change the price on the master file.

    Also, if the product is NOT to be found on any of the sheets, then the product will be marked "disco" followed by the year indicated in the spreadsheet's effective date column.

    Only problem, my actual sheet (this is just an example) is uber complex and has a crazy VBA running in the background. I was hoping to use vlookup in the master file's cost column and disco column to update it, rather than VBA.

    Is someone able to rig the example spreadsheet to work so I can try and apply the changes to my ultra complex one? (hope my attachment worked?)

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Update pricing and mark discontinued items for master price list

    It's not to difficult to merge lists, based on product codes (which will hopefully be unique). It's also possible to assemble a master list by lookup across multiple sheets (although it is rather more difficult to lookup from right to left across multiple sheets, as would need to be the case for column A). Using that construction you can, however, pick up all NEW items as they are added to the various suppliers' lists. Howwever, I don't see how you'll get to keep items that are no longer on the suppliers current lists. That's need VBA, and that's not one for me!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Update pricing and mark discontinued items for master price list

    On the sheet "Master" created three new columns with the following information:
    Column G :: MyDiscoRow is the product line in the supplier's sheet
    The formula is
    Formula: copy to clipboard
    =IFERROR(MATCH($B2,INDIRECT("'"&$A2&"'!$B$2:$B$"&COUNTA($B$2:$B$5000)),0),"")

    Column H :: NewDisco is the new situation of the product
    The formula is
    Formula: copy to clipboard
    =IF(ISNUMBER(G2),"",IF(F2<>"",F2,"Disco "& INDIRECT("'"&$A2&"'!$E$2")))

    Column I :: NewCost is the new cost (independent of having been changed)
    The formula is
    Formula: copy to clipboard
    =IF(ISNUMBER(G2),INDEX(INDIRECT("'"&$A2&"'!$D$2:$D"&COUNTA($B$2:$B$5000)),G2,1),"")

    This example sets in 4999 the number of supplier by product ($B$2:$B$5000)
    I attached the file with the changes I made.
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Update pricing and mark discontinued items for master price list

    Neat, but it doesn't pick up new items....

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Update pricing and mark discontinued items for master price list

    We can point out at every supplier which are the new items using the following formula to each of the suppliers sheets in a new column (E)
    Formula: copy to clipboard
    =IF(OR(A2&B2=Master!$A2:$A$5000&Master!$B2:$B$5000),"No","Yes")

    For new items we can copy and paste the new information on the sheet "Master"
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Update pricing and mark discontinued items for master price list

    Very neat!!

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Update pricing and mark discontinued items for master price list

    Maybe this will be of interest. I have added helper columns A and B to all worksheets and a small table to the Master worksheet. New product sheets are added to each supplier's worksheet leaving the old product sheet in place. These new product sheets will update the Master worksheet. If a cost is new, the new cost will be both in the cost column and the New Cost column (just to emphasize the difference) New products are also identified in the New column.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Update pricing and mark discontinued items for master price list

    Thanks all for the posts. Newdoverman, good job on the worksheet :-)

    Your example is great, only in our situation its a little different. You see, the master file is actually created one by one, as we need the parts. So the suppliers might have 50,000 items between their price books, but we only enter the ones we actually want to sell. The master file might only have 500 items on it.

    But, because the suppliers have so many parts, weeding through their new price list to find out if the items price has changed or is not on the list (means it was discontinued) is alot of work.

    I've attached the actual file we are working with. May as well, instead of playing with the apples and oranges sheet :-) There is a complex VBA in the background what generates product codes in column F&G.

    Can anyone get column "U" to update price based the supplier tabs (other workbooks expressed by the supplier names). If the price is changed, update Column U, regardless if it went up or down. I'm not interested in keeping history on price changes. For that I can pull up old sheets.

    For column AU, if the product code can't be found in any of the supplier tabs, to show "Disco XX/XXXX" (where XX/XXXX is the current date expressed in Month/Year in excel that the entry was made into the cell) in Column AU.

    Hope this is do-able. I'm thinking with v-lookup in Column U to look through the supplier tabs and find the price searching by supplier code (column T) and supplier name. Codes are unique, but incase the suppliers have duplicates, the supplier name would be the unique identifier. If no price, N/A shows.

    Same, in column AU. Use v-lookup to check supplier tabs to find if the product code is listed anywhere (match to supplier name as well as code). If its not, mark it as Disco and the date. Not sure if VBA is required for this?

    Thanks all for your help!
    Attached Files Attached Files

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Update pricing and mark discontinued items for master price list

    I'm taking a bit of a guess on this. I have used INDIRECT INDEX and MATCH in column U and AU to extract the data from the individual worksheets.

    Column U
    Formula: copy to clipboard
    =IFERROR(INDEX(INDIRECT("'"&A2&"'!d:d"),MATCH(T2,INDIRECT("'"&A2&"'!B:B"),0)),"")


    Column AU

    Formula: copy to clipboard
    =IFERROR(INDEX(INDIRECT("'"&A2&"'!d:d"),MATCH(T2,INDIRECT("'"&A2&"'!B:B"),0)),"Disco "&TEXT(TODAY(),"dd/mm/yyyy"))
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Update pricing and mark discontinued items for master price list

    Hi Newdoverman,

    Very good job! This worked great!!!!

    When I pasted the formula from column AU into my sheet, I'm getting a number what appears to be the suppliers book price if its a NON discontinued item.

    In your example, the cell shows blank in column AU unless there is a date in the cell...only if i select one of the cells that has an item that has not been discontinued, select copy and paste the values in another cell, I also get a number what is the book price.

  11. #11
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Update pricing and mark discontinued items for master price list

    Oh. I think I see what you were trying to do in Column AU and there being a hidden number if there is no "disco" displayed.

    I think you did this in order to enable the sheet to keep the "book price" should the item become discontinued.

    I'd imagine the only way to remove the hidden value from column AU is to then remove the ability to keep the old price. If then the supplier and code is not found in any of the other workbooks, then the value would change to 0.00 for the price.

    This works for me if thats what its got to be. Can you post the updated formula to make the disco show the date it was removed without the hidden value?

    Let me know :-)

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Update pricing and mark discontinued items for master price list

    The values were hidden due to the reason that you discovered. I have just worked out a solution (I think).

    Enter this in Import File AU2 and fill down:
    Formula: copy to clipboard
    =IF(ISERROR(INDEX(INDIRECT("'"&A2&"'!d:d"),MATCH(T2,INDIRECT("'"&A2&"'!B:B"),0))=U2),"Disco "&TEXT(TODAY(),"dd/mm/yyyy"),"")


    Delete the Conditional Formatting Rule.
    Attached Files Attached Files
    Last edited by newdoverman; 06-07-2015 at 10:24 AM.

  13. #13
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Update pricing and mark discontinued items for master price list

    My friend, I think you hit the nail on the head. I'm going to mark this one problem solved and I thank you kindly for your hard work! 10 out of 10!

    I pasted the formula into my sheet, but did not see any conditional formatting. Can you tell me where and what cells the conditional formatting its applied to?

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Update pricing and mark discontinued items for master price list

    The only Conditional Formatting that I had employed were for columns U and AU. The rule is no longer needed and can be deleted as the formula change eliminated the need to hide values.

    Thank you for the feedback.

  15. #15
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Update pricing and mark discontinued items for master price list

    Ok!

    Thanks again for your effort in solving this one :-)

  16. #16
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Update pricing and mark discontinued items for master price list

    Can I ask one more question?

    If I wanted a conditional formatting that would made an entire row contents red if it contained the word "disco" in column AU

    Seems this task must be accomplished by "use a formula to determine which cells to format" under conditional formatting new rules.

    I used making the cell range the entire sheet, then formula $AU2="Disco 06/10/2015" and it works...but if I have to for any cell in column AU that has the word "Disco" in it, it would produce the result of highlighting the row in red.

    Any idea what formula I could use in Conditional formatting to achieve the highlighted red row if the word "Disco" appears in the column AU?

  17. #17
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Update pricing and mark discontinued items for master price list

    Create a new Conditional Formatting rule. Use formula and enter this formula and choose the formatting that you want:
    Formula: copy to clipboard
    =NOT(ISERROR(SEARCH("Disco",$AU2)))


    In the Applies to enter =$A$2:$AU$2000
    Attached Files Attached Files
    Last edited by newdoverman; 06-10-2015 at 05:48 PM.

  18. #18
    Forum Contributor
    Join Date
    02-26-2009
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    209

    Re: Update pricing and mark discontinued items for master price list

    newdoverman, good job yet again :-)

    Thanks!!!

+ 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] Promotional pricing formula (buy 3 items get cheapest half price)
    By fishsticks in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-14-2019, 06:13 AM
  2. Compare Price Lists for New, Existing and Discontinued
    By GolfCarGuy in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-16-2014, 05:53 PM
  3. Update Prices on price list and ID and add New Items - Multiple Product Lines
    By KNS Brakes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2011, 09:50 AM
  4. Mark up price list
    By bethvan in forum Excel General
    Replies: 3
    Last Post: 04-15-2008, 04:51 PM
  5. Replies: 0
    Last Post: 06-26-2005, 09:05 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