+ Reply to Thread
Results 1 to 12 of 12

Comparing two different price lists

  1. #1
    Registered User
    Join Date
    01-06-2014
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    5

    Comparing two different price lists

    Hi,
    Could you please assist?
    I'm trying to set a formula that will calculate the price difference between two identical items in two different sheets. The items' order is not the same and each list includes some different items along the identical ones.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Comparing two different price lists

    Hello yoavf ! Welcome to the forum !

    can you attach a book with sample data
    (to attach book go to advanced option and select paper clip icon)
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    01-06-2014
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Comparing two different price lists

    Thank you,
    Here are the two documents.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Comparing two different price lists

    can you please update which sheets needed to be compared.

  5. #5
    Registered User
    Join Date
    01-06-2014
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Comparing two different price lists

    Quote Originally Posted by hemesh View Post
    can you please update which sheets needed to be compared.
    In case the field code (column A) in file 1 equals to a code in file 2 (the row number is different), then the prices need to be compared (price field (column C) of file 2 minus price field of file 1).

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Comparing two different price lists

    what do you want to do there are multiple occurrences of code from file 1 in , file 2

  7. #7
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Comparing two different price lists

    Hello try this formula in book 1 in D2 (i have changed the sheet name as CMES from you book 2, you also need to change the name of first sheet as CMES)

    =IF(SUM(--(IF(A2=[2.xlsm]CMES!$A$15:$A$498,1)))>0,SUM(--(IF(A2=[2.xlsm]CMES!$A$15:$A$498,[2.xlsm]CMES!$C$15:$C$498)))-C2,"")
    copy and paste then hold control and shift together and then hit enter to make it array formula and drag down till end of product!

    above formula will find the matching code in sheet 2 if there are multiple occurrences then it will sum their values and then will deduct the price field 2 - price field 1
    if there are no matches then cell will be blank

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Comparing two different price lists

    formula in column D in 1 is array formula you need to hold control and shift together and then hit enter to make it array formula if you
    change something.
    (once formula is entered as array you will find curly braces {} surrounding your formula)
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-06-2014
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Comparing two different price lists

    Quote Originally Posted by hemesh View Post
    formula in column D in 1 is array formula you need to hold control and shift together and then hit enter to make it array formula if you
    change something.
    (once formula is entered as array you will find curly braces {} surrounding your formula)
    I'm getting a #VALUE! error in all of the cells.
    Thanks for the help.

  10. #10
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Comparing two different price lists

    did you changed the sheet name and did you entered formula as array formula ?

  11. #11
    Registered User
    Join Date
    01-06-2014
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Comparing two different price lists

    Quote Originally Posted by hemesh View Post
    did you changed the sheet name and did you entered formula as array formula ?
    yes, it says that a value used in the formula is of the wrong data type.

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

    Re: Comparing two different price lists

    You can use the VLOOKUP formula

    =IFERROR(VLOOKUP(A10,[1.xlsm]מחירון!$A$1:$C$648,3,0),"")
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. Comparing Price Lists
    By chessnsnuff in forum Excel General
    Replies: 2
    Last Post: 12-07-2012, 02:44 PM
  2. Comparing item numbers in 2 price lists
    By andyob in forum Excel General
    Replies: 3
    Last Post: 12-12-2010, 06:04 AM
  3. Alter all my price lists
    By MrSaver in forum Excel General
    Replies: 2
    Last Post: 02-21-2008, 05:15 PM
  4. Replies: 1
    Last Post: 05-11-2006, 10:50 AM
  5. [SOLVED] Price Lists
    By Musky in forum Excel General
    Replies: 2
    Last Post: 05-01-2006, 11:40 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