Forum Discussion
Comparing a price list to an invoice
- Oct 26, 2020
In J4:
=H4-VLOOKUP(E4,$A$4:$C$8,3,FALSE)
if you want to compare the prices, or
=G4*(H4-VLOOKUP(E4,$A$4:$C$8,3,FALSE))
if you want to calculate the overcharge on the total.
Adjust the range, then fill down.
In J4:
=H4-VLOOKUP(E4,$A$4:$C$8,3,FALSE)
if you want to compare the prices, or
=G4*(H4-VLOOKUP(E4,$A$4:$C$8,3,FALSE))
if you want to calculate the overcharge on the total.
Adjust the range, then fill down.
- Ian955Oct 27, 2020Copper Contributor
HansVogelaar Hi Hans, this worked perfectly on the exercise, I'm trying to use it in my actual spreadsheet, what does the 3 before the word false relate to?
Thanks
Ian
- HansVogelaarOct 27, 2020MVP
In VLOOKUP(E4,$A$4:$C$8,3,FALSE):
E4 is the cell whose value you want to search for.
$A$4:$C$8 is the lookup range. VLOOKUP searches its first column $A$4:$A$8 for the value of E4.
3 is the number of the column to return a result from - in this example column C.
FALSE means that Excel looks for an exact match.
- Ian955Oct 28, 2020Copper Contributor
HansVogelaar Thanks very much for your help Hans
- Ian955Oct 27, 2020Copper Contributor
HansVogelaar Thanks for your help Hans, you have answered my question perfectly.