Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Formula Help required!

I am trying to set a formula to achieve the following and would appreciate
any assistance:
I have a number in a cell which if less than 7 should show 7 but if greater
than 7 and less than 25 should display itself and greater than 25 should show
25.
i.e 3.4 shows 7; 9.5 shows 9.5; 28 shows 25 i can do any two of these but
not all 3. Please help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Formula Help required!

The following if statement should do the trick. Substitute your cell witht
the value for the expamples cell A1:

=IF(A1<=7,7,IF(AND(A17,A1<25),A1,25))
--
Kevin Backmann


"MarkW1307" wrote:

I am trying to set a formula to achieve the following and would appreciate
any assistance:
I have a number in a cell which if less than 7 should show 7 but if greater
than 7 and less than 25 should display itself and greater than 25 should show
25.
i.e 3.4 shows 7; 9.5 shows 9.5; 28 shows 25 i can do any two of these but
not all 3. Please help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default Formula Help required!

Just another option:

=MAX(MIN(A1,25),7)

--
HTH :)
Dana DeLouis


"MarkW1307" wrote in message ...

I am trying to set a formula to achieve the following and would appreciate
any assistance:
I have a number in a cell which if less than 7 should show 7 but if greater
than 7 and less than 25 should display itself and greater than 25 should show
25.
i.e 3.4 shows 7; 9.5 shows 9.5; 28 shows 25 i can do any two of these but
not all 3. Please help!
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Formula Help required!

Excellent, worked perfectly.
Thanks Kevin

"Kevin B" wrote:

The following if statement should do the trick. Substitute your cell witht
the value for the expamples cell A1:

=IF(A1<=7,7,IF(AND(A17,A1<25),A1,25))
--
Kevin Backmann


"MarkW1307" wrote:

I am trying to set a formula to achieve the following and would appreciate
any assistance:
I have a number in a cell which if less than 7 should show 7 but if greater
than 7 and less than 25 should display itself and greater than 25 should show
25.
i.e 3.4 shows 7; 9.5 shows 9.5; 28 shows 25 i can do any two of these but
not all 3. Please help!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Help required!

=MEDIAN(7,A1,25)
--
David Biddulph

"MarkW1307" wrote in message
...
I am trying to set a formula to achieve the following and would appreciate
any assistance:
I have a number in a cell which if less than 7 should show 7 but if
greater
than 7 and less than 25 should display itself and greater than 25 should
show
25.
i.e 3.4 shows 7; 9.5 shows 9.5; 28 shows 25 i can do any two of these but
not all 3. Please help!





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Help required!

Why test for A17, when you had previously tested for A1<=7 ?
--
David Biddulph

"Kevin B" wrote in message
...
The following if statement should do the trick. Substitute your cell
witht
the value for the expamples cell A1:

=IF(A1<=7,7,IF(AND(A17,A1<25),A1,25))
--
Kevin Backmann


"MarkW1307" wrote:

I am trying to set a formula to achieve the following and would
appreciate
any assistance:
I have a number in a cell which if less than 7 should show 7 but if
greater
than 7 and less than 25 should display itself and greater than 25 should
show
25.
i.e 3.4 shows 7; 9.5 shows 9.5; 28 shows 25 i can do any two of these but
not all 3. Please 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
formula required Trevor Excel Worksheet Functions 2 September 7th 07 01:02 AM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Formula required shaji Excel Discussion (Misc queries) 3 February 19th 07 01:56 PM
Formula Required Funkyfido Excel Worksheet Functions 2 January 25th 06 10:30 AM
Help Required With IF AND Formula Ian Excel Worksheet Functions 3 February 25th 05 12:30 PM


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