LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default fHow to write in a formula "if a nuber s between these two numbers

Hi

I should have made the cell holding the number, e,g 22 A1 rather than I8
(which looks like eighteen - I happened to be in column I when I was
testing)

=MIN(30,MAX(10,(INT(A1/10)*10)))

--
Regards

Roger Govier


"Roger Govier" wrote in message
...
Hi Freddie

Try
=MIN(30,MAX(10,(INT(I8/10)*10)))

--
Regards

Roger Govier


"FreddieP" wrote in message
...
Hi I need to write a formula that chooses from 3 different values and
returns
the one I want it to.

lets say I have 10, 20 & 30 in 3 different cells and the number I
want it
to look at is 22.

I want to say that if the number I look for is below 20 return 10, if
its
between 20 & 30 I want it to return 20 and if it's above 30 I want it
to
return 30.


How would I write this formula or at least ifsomeone can help me with
hw I
write the between 20 & 30 formula.

/Freddie





 
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
How do I write a formula to convert numbers to written text? Jess Excel Worksheet Functions 2 April 25th 06 03:25 PM
How do I write formula to compare two values and pull the resulta. Renee Excel Worksheet Functions 1 February 11th 05 01:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Displaying numbers used in formula SeeFar Excel Discussion (Misc queries) 2 December 28th 04 07:05 PM


All times are GMT +1. The time now is 04:31 AM.

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"