Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ron1234
 
Posts: n/a
Default if, and statement

I need to do an if and statement something like this-
if A1=1 and A2x(A1)110 then no more than 10, but
if A2=2 and A2xA125 then no more than 25

so if A2= 12 and A1=1 then the result will be 10
but if A2= 12 and A1=2 then the result will be 24
but if A2= 15 and A1=2 then the reult will be 25

I know it is a lot, but you can guys figure it out.
  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

Try this:

=MIN((A1=1)*A2,10)+MIN(2*(A1=2)*A2,25)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"ron1234" wrote in message
...
I need to do an if and statement something like this-
if A1=1 and A2x(A1)110 then no more than 10, but
if A2=2 and A2xA125 then no more than 25

so if A2= 12 and A1=1 then the result will be 10
but if A2= 12 and A1=2 then the result will be 24
but if A2= 15 and A1=2 then the reult will be 25

I know it is a lot, but you can guys figure it out.


  #3   Report Post  
CLR
 
Posts: n/a
Default

Another way...........

=IF(A1=1,MIN(A1*A2,10),IF(A1=2,MIN(A1*A2,25)))

Vaya con Dios,
Chuck, CABGx3


"ron1234" wrote in message
...
I need to do an if and statement something like this-
if A1=1 and A2x(A1)110 then no more than 10, but
if A2=2 and A2xA125 then no more than 25

so if A2= 12 and A1=1 then the result will be 10
but if A2= 12 and A1=2 then the result will be 24
but if A2= 15 and A1=2 then the reult will be 25

I know it is a lot, but you can guys figure it out.



  #4   Report Post  
ron1234
 
Posts: n/a
Default

This worked great!! My formula was actually more complex than described. The
other reply did not work, but CLR's worked wonderfully, 3 hours of agony.
THANKS!!!!

"CLR" wrote:

Another way...........

=IF(A1=1,MIN(A1*A2,10),IF(A1=2,MIN(A1*A2,25)))

Vaya con Dios,
Chuck, CABGx3


"ron1234" wrote in message
...
I need to do an if and statement something like this-
if A1=1 and A2x(A1)110 then no more than 10, but
if A2=2 and A2xA125 then no more than 25

so if A2= 12 and A1=1 then the result will be 10
but if A2= 12 and A1=2 then the result will be 24
but if A2= 15 and A1=2 then the reult will be 25

I know it is a lot, but you can guys figure it out.




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
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM
IF Statement difficulty susan hayes Excel Worksheet Functions 3 November 2nd 04 09:46 PM


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