Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula Nightmare

I need to compare a range with a number and then have a certain result based
on the range. Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formula Nightmare

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
wrote:
I need to compare a range with a number and then have a certain result based
on the range. Can anyone help?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Formula Nightmare

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?? :(

"Pete_UK" wrote:

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
wrote:
I need to compare a range with a number and then have a certain result based
on the range. Can anyone help?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Formula Nightmare

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?? :(

"Pete_UK" wrote:

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
wrote:
I need to compare a range with a number and then have a certain result based
on the range. Can anyone help?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Formula Nightmare

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)

"IF function incompetent"
wrote in message ...
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?? :(

"Pete_UK" wrote:

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
wrote:
I need to compare a range with a number and then have a certain result
based
on the range. Can anyone help?







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Formula Nightmare

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})
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Formula Nightmare

You are a genious! thanks so much for your help!!

"Harlan Grove" wrote:

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})

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
PivotTable Nightmare Sandi Excel Discussion (Misc queries) 3 March 3rd 07 04:34 PM
Concatenate Nightmare! DEE Excel Worksheet Functions 10 November 16th 06 12:00 AM
PivotTable Nightmare Sandi Excel Discussion (Misc queries) 1 August 15th 06 12:27 AM
Help - array formula nightmare!!!! [email protected] Excel Worksheet Functions 3 March 22nd 06 03:21 PM
IF Statement nightmare eugenevr Excel Discussion (Misc queries) 6 May 18th 05 01:09 PM


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