+ Reply to Thread
Results 1 to 20 of 20

Need help updating price list

  1. #1
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Need help updating price list

    I have two lists, #1 is the price list from my website, and #2 is the updated pricing list from the manufacturer. Here is a pic of list #1: http://snag.gy/yoBXU.jpg. I need it so the prices from column H (the cost) will be replaced by the prices from column F of list #2. Here is a pic of list #2: http://snag.gy/03eMk.jpg. The product #'s are not lined up and so I need them to be matched up also. Some products are not on list #1 and vice versa because they have either been discontinued or new products have been added on. Does anybody know a good way to update these prices? Thanks ahead of time.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,455

    Re: Need help updating price list

    Hi
    sheets are much easier to work with than pictures

  3. #3
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need help updating price list

    so should I attach both sheets?

  4. #4
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need help updating price list

    anybody know?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need help updating price list

    it would make it easier to help you if we had a sample of the data you are working with
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need help updating price list

    Hi monkmonkey
    This is rather straight forward. If you have two workbooks, post two workbooks. If you have one workbook with two (or more worksheets) post that. Let us know the LINK between the workbooks/worksheets.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  7. #7
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need help updating price list

    Productssample2.csv.xlsxsamplepricinglist2.csv.xlsx

    Attached are two excel files. 1st one is from my website and second is the updated pricing list. I just need the prices in column h from "productsample2" replaced by "your price" from "samplepricinglist2".

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need help updating price list

    in colums H, try this formula...adjust the file name if i have it the wrong way round....

    =VLOOKUP(A2,'samplepricinglist2.csv(1).xlsx'!$A:$F,6,FALSE)

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need help updating price list

    Hi monkmonkey
    As I said earlier, this is rather straight forward. Should you desire a VBA solution give me a bit of time (couple of days). It's Family Vacation time and I have a houseful of guests.

  10. #10
    Forum Contributor
    Join Date
    01-26-2012
    Location
    Mumbai
    MS-Off Ver
    Excel 2013
    Posts
    154

    Re: Need help updating price list

    Can you please check the two files you have attached,they seem to contain the same data .

    Also ,there are no prices in column H in productsample2.csv,its a blank column with title MAP_PRICE ,

    Can you just once check and confirm whether the productsamplefile is correct ,i have a feeling that you have uploade the same file twice by mistake?

    Regards ,

    Amlan Dutta

  11. #11
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need help updating price list

    Yea sorry uploaded the wrong files. Here are the right files. In "Newprices" column B(your price) needs to match up with column I (prices) in "Oldprices. Here are the files: Newprices.xlsOldprices.xls

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need help updating price list

    Hi monkmonkey

    Place BOTH workbooks ("Oldprices" and "Newprices") in the SAME Folder. Place this code in a General Module of your "Oldprices" workbook. "Newprices" workbook can be open or closed, no matter...the code runs from "Oldprices" and opens "Newprices" if it's not open.

    Change this Constant to the actual name of your "Newprices" workbook
    Please Login or Register  to view this content.
    It matters not what the actual name of your "Oldprices" workbook is...just place this code in a General Module of that workbook...and, as always, test the code on a copy of your "Oldprices" workbook.

    Let me know of issues.
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need help updating price list

    John,

    I am having trouble inserting the codes. Is there anyway you can control my screen so I can see exactly how to insert the codes? I am a newbie at this so I honestly have no clue where to even put the codes. If you could I would greatly appreciate that. Thanks


    Derek

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need help updating price list

    Hi Derek

    Open a COPY of your "Old Prices" workbook (whatever it's called).
    From your keyboard press ALT---->F11 to open VBA.
    In the VBA Ribbon select Insert--->Module.
    Copy the Code from this Thread Post #12 and Paste into the right hand window of the VBA screen.
    You'll end up with this
    VBA Screen.jpg
    The code is now in the workbook.
    Be certain to change this line of code to the actual name of your Newprices workbook
    Please Login or Register  to view this content.
    Close the VBA screen and save the file.

    Now you need to decide how you want to trigger the Code. You can do it from a button or you can add it to your Quick Access Toolbar.
    See this link for the Button approach
    http://office.microsoft.com/en-us/ex...010342137.aspx
    See this link for the Quick Access Toolbar approach.
    http://www.dummies.com/how-to/conten...ck-access.html
    Let me know of issues.

  15. #15
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need help updating price list

    John,

    Thanks a million! I got it figured out on Microsoft excel but how would I do this for openoffice (if possible)?
    Thanks again
    Derek

  16. #16
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need help updating price list

    Hi Derek

    I don't know the answer to this question
    how would I do this for openoffice
    Perhaps you can pose the question in the Open Office Forum. Let me know how you make out.

  17. #17
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need help updating price list

    Hi Derek

    I'm uploading a stand alone "Macro Book" that contains all the code. There's two main procedures in the code:
    • Clean_Old_id
    • Find_Me

    Procedure Clean_Old_id compares all ID Numbers in Old Prices Column B to Stock Code in New Prices Column A. If they don't exist in New Prices they're deleted from Old Prices. At this point it's a stand alone procedure that takes about 12 seconds to run on my platform.

    Procedure Find_Me compares all Stock Code in New Prices Column A to all ID Numbers in Old Prices Column B. If it finds a match it updates Columns I and J of Old Prices with the values in New Prices Columns B and C respectively. At this point it's a stand alone procedure that takes about 20 seconds to run on my platform.

    Your setup is as follows:
    Place the attached Macro Book file, your Old Prices file and your New Prices file in the same folder. Make certain the code is updated for your File Names and Columns here
    Please Login or Register  to view this content.
    Open the Macro Book and click a button...I'd run the Clean Old Prices procedure first but that's your call. Then run the Update Old Prices procedure.

    Please note...Old Prices is an .xlsx file (no macros in it). Also, be aware, these procedures can be run together but I currently have then running as stand alone...let's get it working first.

    Let me know of issues.
    Attached Files Attached Files

  18. #18
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Need help updating price list

    Hi monkmonkey,

    I need to learn a lot more about Open Office as I've standardized on Microsoft Office. I've found a few pages to answer my questions and possibly yours too at:
    http://www.techsoup.org/learningcent...e/page4765.cfm
    of http://answers.yahoo.com/question/in...5122252AAXdsvG or
    http://www.brighthub.com/computing/w...les/70973.aspx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  19. #19
    Registered User
    Join Date
    07-06-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Need help updating price list

    John,

    Thanks that worked great!! If possible I would also like to have a macro button named "New Products" which would let me know all of the stock codes that are not in "oldprices" but are in "newprices". This would tell me what new products I need to add in.

    Really appreciate all you've done
    Thanks
    Derek

  20. #20
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Need help updating price list

    Hi Derek

    The attached book contains code that does this
    I would also like to have a macro button named "New Products" which would let me know all of the stock codes that are not in "oldprices" but are in "newprices".
    It creates the list in a new worksheet in "New Prices" workbook.

    Please be aware, you have 12 duplicate items in "Old Prices".
    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)

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