#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default conditional formula

I am setting a spreadsheet about drainage pipe but need to insert a
condition. I need to add a distance: "that is 1/4 of the diameter of the pipe
or 4 inches minimum"...thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default conditional formula

You gave us few details to work with but....
Let A1 have the diameter of the pipe
In B1 I have the formula =MAX(A1/4,4)
When A1 has value 12, B1 displays 4 (the specified minimum); but when A1 has
value 24 then B1 displays 6 (1/4 of 24)
Note that we specify a min but need to use the max function! We want the
larger of A1/4 and 4

I could have used a complicated IF as in =IF(A1/4 4, A1/4, 4) which says
if a quarter of A1 is greater than 4 then give me A1/4 else give me 4.
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"jcheko" wrote in message
...
I am setting a spreadsheet about drainage pipe but need to insert a
condition. I need to add a distance: "that is 1/4 of the diameter of the
pipe
or 4 inches minimum"...thanks for your help



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default conditional formula

thanks a lot....that was very helpful.

"Bernard Liengme" wrote:

You gave us few details to work with but....
Let A1 have the diameter of the pipe
In B1 I have the formula =MAX(A1/4,4)
When A1 has value 12, B1 displays 4 (the specified minimum); but when A1 has
value 24 then B1 displays 6 (1/4 of 24)
Note that we specify a min but need to use the max function! We want the
larger of A1/4 and 4

I could have used a complicated IF as in =IF(A1/4 4, A1/4, 4) which says
if a quarter of A1 is greater than 4 then give me A1/4 else give me 4.
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"jcheko" wrote in message
...
I am setting a spreadsheet about drainage pipe but need to insert a
condition. I need to add a distance: "that is 1/4 of the diameter of the
pipe
or 4 inches minimum"...thanks for your help




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
Conditional Formula klmiura Excel Worksheet Functions 2 February 11th 09 08:56 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
conditional formula Beans Excel Discussion (Misc queries) 1 July 3rd 07 07:18 PM
Formula, Conditional Formula Needed Karl Excel Discussion (Misc queries) 12 June 23rd 07 04:12 AM
Conditional Formula to indicate Formula in cell SteveW New Users to Excel 9 August 2nd 06 01:12 AM


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

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"