Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default If Then And Statement

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)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default If Then And Statement

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

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


"impreza251" wrote in message
...
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)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default If Then And Statement

Hi
Try it this way :=IF(AND(B4=436,C4=268),Information!I4,"")
HTH
John
"impreza251" wrote in message
...
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)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default If Then And Statement

impreza251 wrote:
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/xlFunctio...ml#IndexMatch3
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
SUMIF statement with AND statement Eric D Excel Discussion (Misc queries) 2 July 14th 08 07:24 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 05:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"