R
Rainyvanc
I'm trying to find a function that will lookup a value
from a list and retrieve a value in the second column.
For example, List 1 has item codes
123456
233556
etc
I want to see if those items are in a sales report that
have item codes and sales numbers. If the item codes
match, then I want the formula to return the sales value
for the item.
For example, List 2 is
Item Sales$
123456 $500
123467 $700
345678 $800
233556 $1000
In the case of List 1, I want a function that will look at
List 2 and return the values of $500 and $1000 for each of
the two items.
I've tried Vlookup (i.e. vlookup(field, range, 2)) which
worked UNLESS THE ITEM ISN'T in List 2. The problem I'm
having is if the item isn't in List 2, the function is
returning the sales value of the next item on the list.
Is there a function that will only return the sales value
if the two items match exactly?
Thanks
from a list and retrieve a value in the second column.
For example, List 1 has item codes
123456
233556
etc
I want to see if those items are in a sales report that
have item codes and sales numbers. If the item codes
match, then I want the formula to return the sales value
for the item.
For example, List 2 is
Item Sales$
123456 $500
123467 $700
345678 $800
233556 $1000
In the case of List 1, I want a function that will look at
List 2 and return the values of $500 and $1000 for each of
the two items.
I've tried Vlookup (i.e. vlookup(field, range, 2)) which
worked UNLESS THE ITEM ISN'T in List 2. The problem I'm
having is if the item isn't in List 2, the function is
returning the sales value of the next item on the list.
Is there a function that will only return the sales value
if the two items match exactly?
Thanks