Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BJS
 
Posts: n/a
Default What if formulas and calculations - not true/false

I need to create a calculation based upon a number of fields e.g.
A1 = Y or N
B1 = Y or N
C1 = 32
D1 = a number
E1 is for the result

Required: If A1 = Y and B1 = Y then E1 = C1 * D1 else E1 = D1

All I can get is FALSE if either A1 or B1 is not Y but is both are Y then I
get the correct result

  #2   Report Post  
Niek Otten
 
Posts: n/a
Default

=IF(AND(A1="Y",B1="Y"),C1*D1,D1)

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"BJS" wrote in message
...
I need to create a calculation based upon a number of fields e.g.
A1 = Y or N
B1 = Y or N
C1 = 32
D1 = a number
E1 is for the result

Required: If A1 = Y and B1 = Y then E1 = C1 * D1 else E1 = D1

All I can get is FALSE if either A1 or B1 is not Y but is both are Y then
I
get the correct result



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

E1: =IF(AND(A1="Y",B1="Y"),C1*D1,D1)

In article ,
BJS wrote:

I need to create a calculation based upon a number of fields e.g.
A1 = Y or N
B1 = Y or N
C1 = 32
D1 = a number
E1 is for the result

Required: If A1 = Y and B1 = Y then E1 = C1 * D1 else E1 = D1

All I can get is FALSE if either A1 or B1 is not Y but is both are Y then I
get the correct result

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
Formulas don't calculate until SAVE (excel 2000) Rick G. Excel Discussion (Misc queries) 2 May 19th 05 05:31 PM
Help, Urgent Excel Formulas are not calculating maashoff Excel Discussion (Misc queries) 1 May 3rd 05 12:25 AM
Protecting Formulas Keith Camacho New Users to Excel 1 April 9th 05 04:37 PM
workbook size and calculations Hugh Excel Worksheet Functions 1 March 11th 05 02:05 PM
Updating calculations + graph when i enter in new data WITHOUT OFF superman Excel Worksheet Functions 0 February 2nd 05 05:05 PM


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