+ Reply to Thread
Results 1 to 9 of 9

Vlookup to look at one sheet and then if matching another cell to show difference in amoun

  1. #1
    Registered User
    Join Date
    05-22-2007
    Location
    Devon, UK
    MS-Off Ver
    Office 365
    Posts
    14

    Vlookup to look at one sheet and then if matching another cell to show difference in amoun

    I have two sheets which are price lists, some prices have changed and some products have been removed.
    I want to do a Vlookup to check if the product still available in new 2019 sheet and then have a column which shows percentage and amount changed by. HELP needed as beyond my feeble excel skills ?

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    Without a sample, i will guess the data columns. For availability in C2(B column contains prices in both sheets:
    =if(iserror(vlookup(a2,sheet2!$a$2:$a$100,1,0)),"not available","available")
    for percentage:
    =if(C2="Available",if(B2-vlookup(a2,sheet2!$a$2:$B$100,2,0)<0,"decrease by "&abs(B2-vlookup(a2,sheet2!$a$2:$B$100,2,0)),"Increase by "&abs(B2-vlookup(a2,sheet2!$a$2:$B$100,2,0))),"")
    for percentage: =iferror(B2/vlookup(a2,sheet2!$a$2:$B$100,2,0),"")
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    05-22-2007
    Location
    Devon, UK
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    thanks for the quick reply Paul, the columns in question are A contains the Product Number which is the same in each sheet and Column C contains the prices.

  4. #4
    Registered User
    Join Date
    05-22-2007
    Location
    Devon, UK
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    NoNo. Description Trade ex. VAT Retail inc. VAT

    10001 PRODUCT 1 90.00 154.29
    10002 PRODUCT 2 127.50 218.57
    10003 PRODUCT 3 127.50 218.57
    10004 PRODUCT 4 174.10 298.46

    4 Columns as shown above, with over 5000 rows

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    So, change the references in my formulas or upload a sample

  6. #6
    Registered User
    Join Date
    05-22-2007
    Location
    Devon, UK
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    I have added a sample file with the two sheets, sorry tried to use your formulae and cant seem to make it work.

    When I said a product is available or not, I mean that in one sheet a product exists but in this years price sheet it doesn't as it has been discontinued so its not a text search, its a match against Product No.
    Attached Files Attached Files

  7. #7
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    See attached
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-22-2007
    Location
    Devon, UK
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    Thanks so much Paul, its all working now except percentage change which is showing very high figures >90% even on products that are only changed by small amounts, any ideas ?

  9. #9
    Registered User
    Join Date
    05-22-2007
    Location
    Devon, UK
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Vlookup to look at one sheet and then if matching another cell to show difference in a

    sussed it, i needed to do 1-the column to get the actual percentage

+ 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] VLOOKUP to show all results, instead of first matching one
    By whatever61 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-02-2014, 03:28 PM
  2. Replies: 1
    Last Post: 04-26-2014, 08:28 AM
  3. Replies: 4
    Last Post: 08-21-2013, 07:15 AM
  4. Show Columns Matching Cell
    By Kingprawn in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-25-2012, 01:22 AM
  5. [SOLVED] How to write a formula for a price that is multiples for one amoun
    By louisvilleavonlady in forum Excel General
    Replies: 2
    Last Post: 06-28-2006, 11:00 AM
  6. How to write a formula for a price that is multiples for one amoun
    By louisvilleavonlady in forum Excel General
    Replies: 0
    Last Post: 06-28-2006, 08:57 AM
  7. How do I use solver to find which cells add up to a certain amoun.
    By Joe S in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2005, 08:06 PM

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