vlookup and hlookup

L

Lori

I have a pricing table that looks like the following

1 2 3
1 $0.190 $0.190 $0.250
2 $0.190 $0.170 $0.250
3 $0.250 $0.250 $0.250

The numbers 1,2,3 represent from and to calling destinations. I have
drop-down selections below to list the countries and convert to the
appropriate numbers. Then I want to create a formula using both vlookup and
hlookup to show the price. As example, if the call is from 2 and to 2, the
price displayed by this formula would be $0.170.
 
B

bj

if your table would be from A1 to D4
and if in e1 is the from number and in F1 the to number
and column A the From numbers in the table
something like
=vlookup(E1,A1:D4,match(F1,A1:D1,0))
should do what you want
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top