#1   Report Post  
Posted to microsoft.public.excel.misc
Amy Amy is offline
external usenet poster
 
Posts: 165
Default Formula Help

I need to write a formula in excel that says the following:
If C2 = "x" and B2 = "d", then D2*21%

I can get the first part using the IF function, but I am only allowed 1
logical test - how can I use 2?

Thanks!!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Formula Help

Amy,

Try this

=IF(AND(C2="x",B2="d"),D2*21%,"")

Mike

"Amy" wrote:

I need to write a formula in excel that says the following:
If C2 = "x" and B2 = "d", then D2*21%

I can get the first part using the IF function, but I am only allowed 1
logical test - how can I use 2?

Thanks!!!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
Amy Amy is offline
external usenet poster
 
Posts: 165
Default Formula Help

Anyway for me to take it further and say
=IF(AND(C2="x",B2="d"),D2*21%,"") or if B2="e",D2*14%



"Mike H" wrote:

Amy,

Try this

=IF(AND(C2="x",B2="d"),D2*21%,"")

Mike

"Amy" wrote:

I need to write a formula in excel that says the following:
If C2 = "x" and B2 = "d", then D2*21%

I can get the first part using the IF function, but I am only allowed 1
logical test - how can I use 2?

Thanks!!!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Help

=IF(AND(C2="x",B2="d"),D2*21%,IF(B2="e",D2*14%,"wh atever you want in the
other cases"))
--
David Biddulph

"Amy" wrote in message
...
Anyway for me to take it further and say
=IF(AND(C2="x",B2="d"),D2*21%,"") or if B2="e",D2*14%



"Mike H" wrote:

Amy,

Try this

=IF(AND(C2="x",B2="d"),D2*21%,"")

Mike

"Amy" wrote:

I need to write a formula in excel that says the following:
If C2 = "x" and B2 = "d", then D2*21%

I can get the first part using the IF function, but I am only allowed 1
logical test - how can I use 2?

Thanks!!!!



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



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