#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default If Then Statement

I want to do an If then statement in Excel like If I2 = mudstone and I3 =
Coal the value is 1.

I have worked on this all afternoon and I am stumped!

Please help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default If Then Statement

Hi

IF(AND( I2 ="mudstone", I3 ="Coal"),1,"")
-
-
Regards

Roger Govier


"Add to distribution list without opening"
icrosoft.com wrote in
message ...
I want to do an If then statement in Excel like If I2 = mudstone and I3
=
Coal the value is 1.

I have worked on this all afternoon and I am stumped!

Please help!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default If Then Statement

See if this will do what you want,
=IF(AND(I2="mudstone",I3="Coal"),1,"")

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Add to distribution list without opening"
icrosoft.com wrote in
message ...
I want to do an If then statement in Excel like If I2 = mudstone and I3 =
Coal the value is 1.

I have worked on this all afternoon and I am stumped!

Please help!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default If Then Statement


Add to distribution list without opening wrote:
I want to do an If then statement in Excel like If I2 = mudstone and I3 =
Coal the value is 1.

I have worked on this all afternoon and I am stumped!

Please help!


This works on my PC:

=IF(AND(A1="mudstone",B1="coal"),1,0)

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default If Then Statement

=IF(AND(I2="mudstone",(I3="Coal")),1,"message when not")

Entered in I4 or wherever.


Gord Dibben MS Excel MVP

On Thu, 19 Oct 2006 16:03:01 -0700, Add to distribution list without opening
icrosoft.com wrote:

I want to do an If then statement in Excel like If I2 = mudstone and I3 =
Coal the value is 1.

I have worked on this all afternoon and I am stumped!

Please help!


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
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
Returning Specific Cell Content using IF Statement weeclaire Excel Discussion (Misc queries) 0 February 17th 06 09:25 AM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 09:09 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"