Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default CALCULATION BASED ON MORE THAN TWO CONDITIONS

Please would someone help me again?

I need to come up with a value in one cell dependent on conditions being met
or not met in another.

eg: if value in A1 is zero return value in A2 as zero, but if value in A1 is
greater than zero but less than 240 return a value of 240, however if value
in A1 is over 240 return whatever value it is in A2.

Hope this makes sense.

Kind regards


Eclaires
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default CALCULATION BASED ON MORE THAN TWO CONDITIONS

Maybe this?

=IF(A1=0,0,IF(A1<240,240,A2))

HTH,
Paul

"Eclaires" wrote in message
...
Please would someone help me again?

I need to come up with a value in one cell dependent on conditions being
met
or not met in another.

eg: if value in A1 is zero return value in A2 as zero, but if value in A1
is
greater than zero but less than 240 return a value of 240, however if
value
in A1 is over 240 return whatever value it is in A2.

Hope this makes sense.

Kind regards


Eclaires



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default CALCULATION BASED ON MORE THAN TWO CONDITIONS

I think you mean

=IF(A1=0,0,IF(A1<240,240,A1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"PCLIVE" wrote in message
...
Maybe this?

=IF(A1=0,0,IF(A1<240,240,A2))

HTH,
Paul

"Eclaires" wrote in message
...
Please would someone help me again?

I need to come up with a value in one cell dependent on conditions being
met
or not met in another.

eg: if value in A1 is zero return value in A2 as zero, but if value in A1
is
greater than zero but less than 240 return a value of 240, however if
value
in A1 is over 240 return whatever value it is in A2.

Hope this makes sense.

Kind regards


Eclaires





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default CALCULATION BASED ON MORE THAN TWO CONDITIONS

=(A1<0)*MAX(240,A1)

Generally the answer is the classic if, then, else and nested ifs that has
already been given. However, many people dislike nested ifs (myself
included), because they are hard to follow. Of course it is a matter of
opinion which route to choose.

"Eclaires" wrote:

Please would someone help me again?

I need to come up with a value in one cell dependent on conditions being met
or not met in another.

eg: if value in A1 is zero return value in A2 as zero, but if value in A1 is
greater than zero but less than 240 return a value of 240, however if value
in A1 is over 240 return whatever value it is in A2.

Hope this makes sense.

Kind regards


Eclaires

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default CALCULATION BASED ON MORE THAN TWO CONDITIONS

Yes. That is what I had at first but got confused at the way the request
was written. I thing you're correct though.
Thanks.

"Bob Phillips" wrote in message
...
I think you mean

=IF(A1=0,0,IF(A1<240,240,A1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"PCLIVE" wrote in message
...
Maybe this?

=IF(A1=0,0,IF(A1<240,240,A2))

HTH,
Paul

"Eclaires" wrote in message
...
Please would someone help me again?

I need to come up with a value in one cell dependent on conditions being
met
or not met in another.

eg: if value in A1 is zero return value in A2 as zero, but if value in
A1 is
greater than zero but less than 240 return a value of 240, however if
value
in A1 is over 240 return whatever value it is in A2.

Hope this makes sense.

Kind regards


Eclaires







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
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM
Counting based upon 2 conditions that are text based walkerdayle Excel Discussion (Misc queries) 7 August 22nd 06 01:29 AM
Sum based on two conditions luvgreen Excel Worksheet Functions 4 July 10th 06 04:05 AM
Sum based on conditions Hakojin Excel Discussion (Misc queries) 4 May 23rd 06 06:01 AM
Use different formula to calculation based on conditions 0-0 Wai Wai ^-^ Excel Discussion (Misc queries) 2 December 3rd 05 08:28 AM


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