Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

Formula Nightmare

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
IF function incompetent - 12 Feb 2008 16:20 GMT
I need to compare a range with a number and then have a certain result based
on the range. Can anyone help?
Pete_UK - 12 Feb 2008 16:38 GMT
I think you will need to give some more information (and details) than
just this.

Pete

On Feb 12, 4:20 pm, IF function incompetent <IF function
incompet...@discussions.microsoft.com> wrote:
> I need to compare a range with a number and then have a certain result based
> on the range. Can anyone help?
IF function incompetent - 12 Feb 2008 16:51 GMT
Sorry Pete

Here is what I need to do

I am trying to do a similar thing but my values are different.

>>> The idea is that if J16 equals 0, then G11 will show 0
>>> If J16 is greater than 0 and less than 1, then G11 will show 0
>>> If J16 is equal to 1 but less than 2, then G11 will show 1.5
>>> If J16 is equal to 2 but less than 3, then G11 will show 1.75
>>> If J16 is equal to 3 but less than 4, then G11 will show 2
>>> If J16 is equal to 4 but less than 5, then G11 will show 2.5

Can you help me with this one?? :(

> I think you will need to give some more information (and details) than
> just this.
[quoted text clipped - 5 lines]
> > I need to compare a range with a number and then have a certain result based
> > on the range. Can anyone help?
Ron Coderre - 12 Feb 2008 17:36 GMT
Try this:

G11: =CHOOSE(MIN(J16+1,6),0,1.5,1.75,2,2.5,"Invalid: >=5")

Is that something you can work with?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

> Sorry Pete
>
[quoted text clipped - 21 lines]
>> > based
>> > on the range. Can anyone help?
IF function incompetent - 12 Feb 2008 16:53 GMT
Sorry Pete

Here is what I am trying to do

The idea is that if J16 equals 0, then G11 will show 0
If J16 is greater than 0 and less than 1, then G11 will show 0
If J16 is equal to 1 but less than 2, then G11 will show 1.5
If J16 is equal to 2 but less than 3, then G11 will show 1.75
If J16 is equal to 3 but less than 4, then G11 will show 2
If J16 is equal to 4 but less than 5, then G11 will show 2.5

Can you help me with this one?? :(

> I think you will need to give some more information (and details) than
> just this.
[quoted text clipped - 5 lines]
> > I need to compare a range with a number and then have a certain result based
> > on the range. Can anyone help?
Harlan Grove - 12 Feb 2008 17:43 GMT
IF function incompetent wrote...
>Here is what I am trying to do
>
>The idea is that if J16 equals 0, then G11 will show 0
>If J16 is greater than 0 and less than 1, then G11 will show 0

Since 0 < 1, these could be combined into 'if J16 < 1, G11 shows 0'.

>If J16 is equal to 1 but less than 2, then G11 will show 1.5
>If J16 is equal to 2 but less than 3, then G11 will show 1.75
>If J16 is equal to 3 but less than 4, then G11 will show 2
>If J16 is equal to 4 but less than 5, then G11 will show 2.5
...

Use LOOKUP. Without validation checking (ensuring J16 >= 0),

=LOOKUP(J16,{0;1;2;3;4;5},{0;1,5;1.75;2;2.5})
IF function incompetent - 12 Feb 2008 17:54 GMT
You are a genious! thanks so much for your help!!

> IF function incompetent wrote...
> >Here is what I am trying to do
[quoted text clipped - 13 lines]
>
> =LOOKUP(J16,{0;1;2;3;4;5},{0;1,5;1.75;2;2.5})
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.