Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default putting 2 conditions in a formula

Does anybody know how I can enter a formula on the condition of the contents
of 2 different cells?

For example:

I want AE4 to equal -P4, but only when S4='P' AND L4= 'cir'

Anybody got a formula?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default putting 2 conditions in a formula

Judgejulz

You keep adding to this ;-)

=IF(AND(S4="P",L4="Cir"),-P4,0)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"judgejulz" wrote in message
...
Does anybody know how I can enter a formula on the condition of the
contents
of 2 different cells?

For example:

I want AE4 to equal -P4, but only when S4='P' AND L4= 'cir'

Anybody got a formula?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default putting 2 conditions in a formula

Assume the dash in front of P4 is a minus sign:

=-AND(S4="P",L4="cir")*P4

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"judgejulz" wrote in message
...
Does anybody know how I can enter a formula on the condition of the contents
of 2 different cells?

For example:

I want AE4 to equal -P4, but only when S4='P' AND L4= 'cir'

Anybody got a formula?


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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Array formula and multiplying conditions KR Excel Worksheet Functions 6 September 22nd 06 12:33 AM
MULTIPLE CONDITIONS FORMULA TLAngelo Excel Discussion (Misc queries) 3 May 2nd 06 01:48 AM
Multiple conditions in a formula TV Excel Worksheet Functions 3 April 12th 06 08:32 PM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


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