Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJK
 
Posts: n/a
Default Help with a formula

Is there a "and" function available in Excel? I want to check the contents
of two different cells and if both are true change the format of another
cell. For example:
if "a2=AST" and if a3="Y" If both are true set the conditional format. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
broro183
 
Posts: n/a
Default Help with a formula


Hi AJK,

Yes there is, one solution you can use for your conditional formatting
is:

=if(and(a2="AST",a3="Y"),"true","false")

btw, your first port of call when you have a question should be the
help files ie [F1]. Type in "and function" and have a read.

hth
Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=537169

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Help with a formula

Yes: as it is a function the format is AND(condition1,condition2 etc).
So in your case the formula would be:

AND(A2="AST",A3="Y")

then set your format for the cell.

Hope this helps.

Pete

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AJK
 
Posts: n/a
Default Help with a formula

Thanks to both of you for the help. I had looked in a book and did not find
the "and" function. I then went to help and found it.

Thanks again.

"Pete_UK" wrote:

Yes: as it is a function the format is AND(condition1,condition2 etc).
So in your case the formula would be:

AND(A2="AST",A3="Y")

then set your format for the cell.

Hope this helps.

Pete


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
broro183
 
Posts: n/a
Default Help with a formula


Hi,
no problem, pleased I could help & thanks for the feedback.

as you may have noticed, the if part of my formula is redundant, only
the "and" is needed as shown by Pete.

Rob Brockett
NZ
Always learning & the best way to learn is to experience...


--
broro183
------------------------------------------------------------------------
broro183's Profile: http://www.excelforum.com/member.php...o&userid=30068
View this thread: http://www.excelforum.com/showthread...hreadid=537169



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Help with a formula

Thanks for feeding back, both of you.

Pete

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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 04:15 PM.

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"