Formulas

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to create a worksheet that automatically inserts roundtrip mileage for a specific location when the location code is entered. There are approximately 20 location codes. Theoretically, it should be an IF...Then function but it looks as if each formula is limited to 7 conditions. Any help?
 
Hi
use VLOOKUP for this. See:
http://www.mvps.org/dmcritchie/excel/vlookup.htm

--
Regards
Frank Kabel
Frankfurt, Germany

bwest said:
I want to create a worksheet that automatically inserts roundtrip
mileage for a specific location when the location code is entered.
There are approximately 20 location codes. Theoretically, it should be
an IF...Then function but it looks as if each formula is limited to 7
conditions. Any help?
 
You should create a small table with the location codes in the first column
and the corresponding mileages in the second column. Then, use the VLOOKUP
function.

If your location code is in cell C1, and your lookup table is in columns A
and B, you can use the following formula:
=VLOOKUP(C1,A1:B20,2,FALSE)

bwest said:
I want to create a worksheet that automatically inserts roundtrip mileage
for a specific location when the location code is entered. There are
approximately 20 location codes. Theoretically, it should be an IF...Then
function but it looks as if each formula is limited to 7 conditions. Any
help?
 

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

Back
Top