If Then And Statement

I

impreza251

I am trying to calculate my travel for work. I have a list of buildings I
frequently go too and travel between. I created an excell sheet that has a
Departure Bldg a Destination Building and the Mileage inbetween the two. If
I select a departure building and select a destination building I would like
the Mileage to be filled in automatically. This is what I thought it should
be but doesn't work.
436 and 268 are building numbers and Information!$I$4 is the mileage between
those buildings

=IF(AND(B4=436*(C4=268)),Information!$I$4)
 
G

Glenn

impreza251 said:
I am trying to calculate my travel for work. I have a list of buildings I
frequently go too and travel between. I created an excell sheet that has a
Departure Bldg a Destination Building and the Mileage inbetween the two. If
I select a departure building and select a destination building I would like
the Mileage to be filled in automatically. This is what I thought it should
be but doesn't work.
436 and 268 are building numbers and Information!$I$4 is the mileage between
those buildings

=IF(AND(B4=436*(C4=268)),Information!$I$4)


Take a look at this:

http://www.contextures.com/xlFunctions03.html#IndexMatch3
 

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