+ Reply to Thread
Results 1 to 16 of 16

Update price list - please help!

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Unhappy Update price list - please help!

    I've been suffering in silence for a week, trying to figure this out by myself, but the more I try and fix, the more I'm getting confused. Please help!

    This is what I have:

    Sheet 1 (Master Price List with 11000 part numbers)
    Column A: Part number
    Column B: Price (New Prices)

    Sheet 2 (Stock list of 900 part numbers with OLD prices)
    Column A: Part number (in some cases containing 2 or more part numbers - OLD and NEW)
    Column B: Price (Old Prices)

    I need to pull the new prices from Sheet 1, Column B and insert into Sheet 2, Column B

    I have used the following formular to fulfill this task:
    =VLOOKUP(A2,Sheet1!A2:B10825,2,) which has been partly successful.

    The problem is that many part numbers in Sheet 2, Column A, contain 2 part numbers in a cell an OLD number and a NEW number (which is in Sheet 1, Column A).

    I can't work out how to set up the formula so that it checks partial data from Sheet 2, Column A to match the relevant part number in Sheet 1, Column A.

    For example in Sheet 2, Column A, I have 2 part numbers in one cell: "1111111 = 2222222" but of course excel can't extract 2222222 from one cell to match the relevant cell with 2222222 in Sheet 1, Column A.

    I apologise if this is long winded, I just want to make sure you understand my problem from the outset!

    Thanks in advance.

  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 price list - please help!

    Hi there... and welcome to the Excel Forum. Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Update price list - please help!

    To extract 2222222 from that cell use

    =RIGHT(A1,LEN(A1)-FIND("=",A1)-1)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    08-04-2009
    Location
    Golborne England
    MS-Off Ver
    2013
    Posts
    85

    Re: Update price list - please help!

    Try this, using right() in the formula will compare to the right hand number of characters specified (I have specified 7 as per your example)

    =VLOOKUP(A2,RIGHT(SHEET1!A2:B10825,7),2,0)

  5. #5
    Registered User
    Join Date
    08-04-2009
    Location
    Golborne England
    MS-Off Ver
    2013
    Posts
    85

    Re: Update price list - please help!

    I like Special-K's Method for finding the correct length of string You can incorporate that into your VLOOKUP like this.

    =VLOOKUP(A2,RIGHT(SHEET1!A2:B10825,LEN(A1)-FIND("=",A1)-1) ),2,0)

    I wasn't thinking about the possibility of different length strings. I manage a very large pricing system and all of our part numbers are 9 characters long.

  6. #6
    Registered User
    Join Date
    08-04-2009
    Location
    Golborne England
    MS-Off Ver
    2013
    Posts
    85

    Re: Update price list - please help!

    I like Special-K's Method for finding the correct length of string You can incorporate that into your VLOOKUP like this.

    =VLOOKUP(A2,RIGHT(SHEET1!A2:B10825,LEN(A1)-FIND("=",A1)-1 ),2,0)

    Oops, One too many ")" in the previous example.

  7. #7
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Re: Update price list - please help!

    Thank you all for answering so quickly! I should point out that despite using excel for more years than I can remember, it's at times like this I realise that I am next to clueless! I've been trying your various suggestions, but without any luck! I'm going to attach a sample of the file, and hope this helps....

  8. #8
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Re: Update price list - please help!

    Here is a small sample of the file in question....
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Re: Update price list - please help!

    Sorry - previous file had no formula included. This one has the formula I've been using.
    Attached Files Attached Files

  10. #10
    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 price list - please help!

    Thi sis made more diffciult because the new number sometimes comes first and sometimes comes second!!

  11. #11
    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 price list - please help!

    As said above - this is UGLY because of the way the new/old comparison is made. However this works; but I think you made a mistake about one instace of the expected answer. If there are 3-to-one conversions, this won't work. What libert have you to change the new/old number comparison?
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Re: Update price list - please help!

    OMG - it's no wonder I couldn't come up with a formula for this, if that's what it takes. Thank you very much Glenn!
    Yes well spotted - I did indeed make a mistake for the first part number.
    Please explain what you mean by "3-to-one conversions".
    The new numbers I add manually to my stock file as I go along, as this information is only available in a web based application. It's cumbersome (I have to retype part numbers into each relevant cell), but it means that when an enquiry comes in (which is often with an old part number) I can immediately see what the updated part number is and get the right price.

    Now pretend your explaining to an idiot, but please explain how I apply this formula to my sheet. I just tried copy/pasting your formula to my original sample file, and get the following error: Your formula is missing a parenthesis--) or (. Check the formula and then add the parenthesis in the appropriate place.
    Last edited by Al90; 06-11-2015 at 10:17 AM.

  13. #13
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Re: Update price list - please help!

    OK I just copied cell B2 from your edited sheet, and pasted the formula to B2 in my original sample sheet. Everything works, as in your version.
    BUT, when I try the same in my master file, and drag the formula down the column, I get a mixture of #VALUE! and #N/A. What am I doing wrong?

  14. #14
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Re: Update price list - please help!

    N.B. Some parts numbers have letters in them - I don't know if this has an influence on the errors I'm getting.

  15. #15
    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 price list - please help!

    "3 to 1": Cells A2 and A6 in your example will only work if the new value is in the first or second term of the string.

    OK idiot!! Did you over-write a bracket when adjusting the ranges? You MUST have... Can you post the real sheet? If not, I'll PM you my email address.

    You'd be MUCH, MUCH better off if you had two columns one for OLD cose and one for NEW code. That way, you'll alwaya know which is which. Is that possible?

    letters won't make any difference.

  16. #16
    Registered User
    Join Date
    06-11-2015
    Location
    Here
    MS-Off Ver
    2010
    Posts
    8

    Re: Update price list - please help!

    Well at least you made an idiot laugh!

    In some instances, a part number has been changed over the years up to 6-7 times, so if I understand you correctly, my stock list can't link up with the new price in the master list, if it's in position 3? (e.g. 111111 = 22222 = 333333) - in this case part number 333333 won't be updated - is that right?

    I suppose I could try and separate old and new into different cells - there would be a lot of manual work, as I would have to check which numbers are old and which are new, and then extract and sort into the required column....

    If you could PM your email address that would be really appreciated.

+ 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] how to auto update a price list from another excel?
    By jetlee in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-10-2014, 11:36 AM
  2. Update a price list
    By frapple in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2009, 03:10 PM
  3. update price list
    By derekbro in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-09-2007, 03:39 AM
  4. Update Price List
    By m3s3lf in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-04-2007, 03:45 PM
  5. Client list price update
    By tljeffrey21 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2006, 07:10 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