#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 703
Default Failing with formula

Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and 10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Failing with formula

Hi Charlie

Try his formula:

=ROUNDUP(B8/5000,0)

Regards,
Per

"Charlie" skrev i meddelelsen
...
Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and
10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Failing with formula

Hey Charlie

You could do something like this:

=IF(AND(B81,B8<5001),1,IF(AND(B85000,B8<10001),2 ,"Outside Range"))

This has one IF statement nested within another to handle your two listed
requirements, and if over 10000 then will display text 'Outside Range'. Nest
further IF statements if you need to.

Regards,

Lee

You are limited to 7 nested IF statements, not sure if this is still the
case in the latest Excel version, so if you need to go beyond 7 levels of
checking then another approach is probably needed.

"Charlie" wrote:

Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and 10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Failing with formula

Nice :-)

Wasn't sure if the 'and so on' was 5000 increments.

"Per Jessen" wrote:

Hi Charlie

Try his formula:

=ROUNDUP(B8/5000,0)

Regards,
Per

"Charlie" skrev i meddelelsen
...
Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and
10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Failing with formula

=CEILING(B8,5000)/5000

If this post helps click Yes
---------------
Jacob Skaria


"Charlie" wrote:

Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and 10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Failing with formula

Note that Lee's formula will give "Outside Range" for a B8 value of 5000, or
of 5001, or of any value between 5000 and 5001. You may wish to think
carefully about how you define your limits.
Some of the alternative methods suggested may be better.
--
David Biddulph

"Lee Diggins" wrote in message
...
Hey Charlie

You could do something like this:

=IF(AND(B81,B8<5001),1,IF(AND(B85000,B8<10001),2 ,"Outside Range"))

This has one IF statement nested within another to handle your two listed
requirements, and if over 10000 then will display text 'Outside Range'.
Nest
further IF statements if you need to.

Regards,

Lee

You are limited to 7 nested IF statements, not sure if this is still the
case in the latest Excel version, so if you need to go beyond 7 levels of
checking then another approach is probably needed.

"Charlie" wrote:

Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and
10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Failing with formula

Hi David

I agree that the other suggestions are far better.

I can only get 'Outside Range' displayed for < 0 or 10000, I cannot
replicate your results for the 5000 - 5001 values.

Don't want this to go off topic here as this is Charlies post, but, I did
get a problem with the value of 1 - ooops, so here's the updated:

=IF(AND(B80,B8<5001),1,IF(AND(B85000,B8<10001),2 ,"Outside Range"))

Regards,

Lee

"David Biddulph" wrote:

Note that Lee's formula will give "Outside Range" for a B8 value of 5000, or
of 5001, or of any value between 5000 and 5001. You may wish to think
carefully about how you define your limits.
Some of the alternative methods suggested may be better.
--
David Biddulph

"Lee Diggins" wrote in message
...
Hey Charlie

You could do something like this:

=IF(AND(B81,B8<5001),1,IF(AND(B85000,B8<10001),2 ,"Outside Range"))

This has one IF statement nested within another to handle your two listed
requirements, and if over 10000 then will display text 'Outside Range'.
Nest
further IF statements if you need to.

Regards,

Lee

You are limited to 7 nested IF statements, not sure if this is still the
case in the latest Excel version, so if you need to go beyond 7 levels of
checking then another approach is probably needed.

"Charlie" wrote:

Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and
10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 703
Default Failing with formula

Hi,

Thanks, that worked a treat :)

Charlie

"Per Jessen" wrote:

Hi Charlie

Try his formula:

=ROUNDUP(B8/5000,0)

Regards,
Per

"Charlie" skrev i meddelelsen
...
Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and
10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Failing with formula

Yes, you're right, Lee. I was misreading the formula, but in that case
5000.9 is giving 1, which may or may not be what the OP wanted, so again the
OP needs to be careful with defining the limits.
--
David Biddulph

"Lee Diggins" wrote in message
...
Hi David

I agree that the other suggestions are far better.

I can only get 'Outside Range' displayed for < 0 or 10000, I cannot
replicate your results for the 5000 - 5001 values.

Don't want this to go off topic here as this is Charlies post, but, I did
get a problem with the value of 1 - ooops, so here's the updated:

=IF(AND(B80,B8<5001),1,IF(AND(B85000,B8<10001),2 ,"Outside Range"))

Regards,

Lee

"David Biddulph" wrote:

Note that Lee's formula will give "Outside Range" for a B8 value of 5000,
or
of 5001, or of any value between 5000 and 5001. You may wish to think
carefully about how you define your limits.
Some of the alternative methods suggested may be better.
--
David Biddulph

"Lee Diggins" wrote in message
...
Hey Charlie

You could do something like this:

=IF(AND(B81,B8<5001),1,IF(AND(B85000,B8<10001),2 ,"Outside Range"))

This has one IF statement nested within another to handle your two
listed
requirements, and if over 10000 then will display text 'Outside Range'.
Nest
further IF statements if you need to.

Regards,

Lee

You are limited to 7 nested IF statements, not sure if this is still
the
case in the latest Excel version, so if you need to go beyond 7 levels
of
checking then another approach is probably needed.

"Charlie" wrote:

Hi,

I need to create a formula the will give the following results:
IF B8 is between 1 and 5000 the result is 1, if B8 is between 5001 and
10000
the result is 2 and so on.

Any help would be appreciated.

Many thanks

Charlie






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
Failing IF Statement Jemsilve Excel Discussion (Misc queries) 2 November 9th 07 09:23 PM
Data query failing jtrai491 Excel Worksheet Functions 1 November 13th 06 08:10 PM
COUNTA failing? dpenny Excel Discussion (Misc queries) 4 July 24th 06 06:52 PM
My formulas are failing! Excel_Orator Excel Discussion (Misc queries) 3 June 12th 06 08:16 PM
Link 'failing' ppetts Links and Linking in Excel 1 October 5th 05 06:20 AM


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