Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 2 if statements

I have a cell (cell C) that has an if statement in it. The statement is, if
cell A is greater than or equal to 15000 than this cell equals cell B. I also
want to put another if statement in that reads if cell B is greater than
15000 then this cell equals 15000.

=if(a1=15000,b1,0)
=if(b1=15000,15000,b1)

how can I put these 2 statements into 1 cell?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 2 if statements

nevermind, I solved
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default 2 if statements

Depents on priorities of the decisions which is better for you:
=IF(A1=15000;B1;IF(B115000;15000))
or
=IF(B115000;15000;IF(A1=15000;B1))

You did not specify what if both A and B are less than 15000. Put that
after last argument.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default 2 if statements

Matthew,

Try this....

=IF(A3=15000,IF(B3=15000,15000,B3),0)

Is that what you are after ?
Donna

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
IF Statements (Mutliple Statements) Deezel Excel Worksheet Functions 3 October 19th 06 06:13 AM
If Statements: Miguel Zapico Excel Discussion (Misc queries) 2 April 26th 06 09:48 PM
If Statements Dbettini Excel Discussion (Misc queries) 1 March 22nd 06 06:22 PM
If... Then statements BaldySlaphead Excel Discussion (Misc queries) 1 March 21st 06 11:53 AM
using if statements LAybar Excel Worksheet Functions 4 March 20th 06 02:55 PM


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