Excel..nested vlookup possibly..looking for help

Copper Contributor

Hi All

Column A & B are exported form pricing software - Column A is product codes. Column B is current product prices.

Column C & D are exported from daily salesbooks every morning. C is Product Codes and D is the price they were charged. 

I want to check that if a product code in column C has turned up on the daybooks that the price in column D matches the price in Column B. 

Product CodeVat Incl PriceProduct CodeUnit Price (Incl)
2090018 207924560
207214886207924560
207214590207924560
2072156228207924560
2071117 207924560
2071165 207924560
2079292 207924560
207215225207924560
2071183500207924560
2071182250207924560
207616990207924560
2076163622076165310
2076159742076165310
2079111 2076165310
20711793382076165310
20793374402076165310
2075116392076165310
207517699207112548
207924560207112548
207110310207112548
207110446207112548
20900205.35207927254
2078153 207927254
207812310520790304126
2073123 20790304126
2073124 2079303116
2079192 2079303116
2078171 2072113240
2 Replies

@Susan1085 

use this formula next to you data

=IFERROR(IF(VLOOKUP(C2,A:B,2,FALSE)=D2,"Match","Mismatch"),"Product Code Not Found!")

Match = represents the prices are the same,
Mismatch = there is discrepancies on the prices 

Rr__0-1710552481612.png

 

@Susan1085 ,

 

You could use the following formula

=IFERROR(D2-(VLOOKUP(C2,A:B,2,0)),"Product not found")

 

This formula does a vlookup to find the price from your pricing software (col A & B) and then subtracts that number from the salesbook value giving you the difference as well. Anything that has a 0 as the output is a perfect match, while a positive number means that the salesbook value is higher and negative meaning the pricing software values are higher. 

 

Additionally I put in conditional formatting to show colored arrow to display wherever you see a number whether +ve, -ve or 0.  

 

VGEe7_0-1710564198587.png

 

Attached the file for your reference.