Hi guys,
I want to perform a lookup function that will find a given value within a range. Ie: A1:B12
Column 1 being a list of fruit.
Column 2 being the price of that fruit.
Upon inputting "Banana" the user will be told the price of a banana in cell D4 (can do with a standard vlookup)...but I also need to retrieve name of a fruit that is within a certain price range from the cost of a banana in D5(say 15cents/pence whatever the currency)
So if banana = 40, apple = 28, mango = 60 then D4 will display "40" and D5 should display "apple"
Ive just started getting to grips with VBA so any help would be brilliant.
Thanks
A
I want to perform a lookup function that will find a given value within a range. Ie: A1:B12
Column 1 being a list of fruit.
Column 2 being the price of that fruit.
Upon inputting "Banana" the user will be told the price of a banana in cell D4 (can do with a standard vlookup)...but I also need to retrieve name of a fruit that is within a certain price range from the cost of a banana in D5(say 15cents/pence whatever the currency)
So if banana = 40, apple = 28, mango = 60 then D4 will display "40" and D5 should display "apple"
Ive just started getting to grips with VBA so any help would be brilliant.
Thanks
A