#1   Report Post  
Posted to microsoft.public.excel.misc
Zul Zul is offline
external usenet poster
 
Posts: 7
Default IF formula

The sum of A1 & B1 if it is greater than 2000 I want to display 2000 in C1,
and if it between 1 and 1999 the actual should be displayed. If the figure is
in minus I want it to be displayed 0 in C1
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF formula


Zul;214852 Wrote:
The sum of A1 & B1 if it is greater than 2000 I want to display 2000 in
C1,
and if it between 1 and 1999 the actual should be displayed. If the
figure is
in minus I want it to be displayed 0 in C1


Hi,
try
Code:
--------------------
=if(a1+b1=2000,2000,if(a1+b10,a1+b1,0))
--------------------


I took the liberty of inserting the condition when the sum equal 2000


--
Pecoflyer

Cheers -
*'Membership is free' (http://www.thecodecage.com)* & allows file
upload -faster and better answers

*Adding your XL version* to your post helps finding solution faster
------------------------------------------------------------------------
Pecoflyer's Profile: http://www.thecodecage.com/forumz/member.php?userid=14
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=58993

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default IF formula

Put this in C1:

=MAX(0,MIN(2000,A1+B1))

Hope this helps.

Pete

On Feb 5, 10:08*am, Zul wrote:
The sum of A1 & B1 if it is greater than 2000 I want to display 2000 in C1,
and if it between 1 and 1999 the actual should be displayed. If the figure is
in minus I want it to be displayed 0 in C1


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

=MAX(0,MIN(2000,A1+B1))
You didn't define what you wanted if A1+B1 is between 1999 and 2000, but I
guessed.
--
David Biddulph

"Zul" wrote in message
...
The sum of A1 & B1 if it is greater than 2000 I want to display 2000 in
C1,
and if it between 1 and 1999 the actual should be displayed. If the figure
is
in minus I want it to be displayed 0 in C1



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default IF formula

You are welcome! Thanks for the feedback!
Stefi

€žZul€ť ezt Ă*rta:

Thanks for your quick reply. I had made a mistake in my posting. But i
figured it out from your formula.

Thanks a lot!!!!

Sum of A1-B1

"Stefi" wrote:

=MAX(0,MIN(2000,A1+B1))

Regards,
Stefi

€žZul€ť ezt Ă*rta:

The sum of A1 & B1 if it is greater than 2000 I want to display 2000 in C1,
and if it between 1 and 1999 the actual should be displayed. If the figure is
in minus I want it to be displayed 0 in C1



  #6   Report Post  
Posted to microsoft.public.excel.misc
Zul Zul is offline
external usenet poster
 
Posts: 7
Default IF formula

Thanks for your quick reply. I had made a mistake in my posting. But i
figured it out from your formula.

Thanks a lot!!!!

Sum of A1-B1

"Stefi" wrote:

=MAX(0,MIN(2000,A1+B1))

Regards,
Stefi

€žZul€ť ezt Ă*rta:

The sum of A1 & B1 if it is greater than 2000 I want to display 2000 in C1,
and if it between 1 and 1999 the actual should be displayed. If the figure is
in minus I want it to be displayed 0 in C1

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 08:26 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"