Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 361
Default Combining IF Statements



I am trying to combine these 3 IF statements. Can't seem to get it to work.

if q11="A" then 0

if q11="OK" and k11="Buy" then (N11-M11)*L11*100) otherwise
(M11-O11)*L11*100)

if q110 and k11="Buy" then (N11-r11)*L11*100) otherwise
(r11-O11)*L11*100)


ColQ can contain numbers or text.

Thank you in advance

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Combining IF Statements

=IF(Q11="A",0,IF(AND(Q11="OK",K11="Buy"),(N11-M11)*L11*100,(M11-O11)*L11*100))


"carl" wrote:



I am trying to combine these 3 IF statements. Can't seem to get it to work.

if q11="A" then 0

if q11="OK" and k11="Buy" then (N11-M11)*L11*100) otherwise
(M11-O11)*L11*100)

if q110 and k11="Buy" then (N11-r11)*L11*100) otherwise
(r11-O11)*L11*100)


ColQ can contain numbers or text.

Thank you in advance

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default Combining IF Statements

Hello carl, this isn't possible without guesswork unless you give more
information

You have 2 "otherwises", which one applies if none of your conditions are met?

"carl" wrote:



I am trying to combine these 3 IF statements. Can't seem to get it to work.

if q11="A" then 0

if q11="OK" and k11="Buy" then (N11-M11)*L11*100) otherwise
(M11-O11)*L11*100)

if q110 and k11="Buy" then (N11-r11)*L11*100) otherwise
(r11-O11)*L11*100)


ColQ can contain numbers or text.

Thank you in advance

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
Combining IF statements Macmo Excel Worksheet Functions 2 May 5th 06 05:17 AM
combining IF and AND statements for multiple columns cubsfan Excel Discussion (Misc queries) 2 April 7th 06 05:25 PM
Combining "AND" with "OR" Statements keen learner Excel Worksheet Functions 4 February 2nd 06 06:35 AM
combining conditional statements wrosie Excel Worksheet Functions 4 November 29th 05 09:59 AM
Combining IF and multiple SUMIF statements, if A>0 & B is between Lee Excel Worksheet Functions 1 January 3rd 05 06:46 PM


All times are GMT +1. The time now is 07:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"