#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Formual Won't Work

Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate the
75% or 100%, it just stays at 50%
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Formual Won't Work

That is because 500 and 700 are = 3000, so it doesn't look any further
Change the order of testing the threshold values

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"George" wrote in message
...
Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate
the
75% or 100%, it just stays at 50%


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 206
Default Formual Won't Work

On Feb 13, 6:14*am, George wrote:
Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate the
75% or 100%, it just stays at 50%


This should work

=IF(F5<3000,"25%",IF(AND(F5=3000,F5<5000),"50%",I F(AND
(F5=5000,F5<7000),"75%",IF(F5=7000,"100%"))))
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formual Won't Work

Hi George

Not pretty, but it works. Have you considered a lookup?

=IF(F5<3000,25%,IF(AND(F5=3000,F5<5000),50%,IF(AN D(F5=5000,F5<7000),75%,100%)))

Regards

BT

"Niek Otten" wrote:

That is because 500 and 700 are = 3000, so it doesn't look any further
Change the order of testing the threshold values

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"George" wrote in message
...
Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate
the
75% or 100%, it just stays at 50%



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formual Won't Work

....or even

=IF(F57000,100%,IF(F55000,75%,IF(F53000,50%,25% )))

BT

"George" wrote:

Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate the
75% or 100%, it just stays at 50%



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Formual Won't Work

Another solution
=if(f5<=2999.99,"25%",if(f5<=4999.99,"50%",if(f5<= 6999.99,"75%","100%")))
--
Wag more, bark less


"George" wrote:

Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate the
75% or 100%, it just stays at 50%

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formual Won't Work

Defintely not pretty, and unnecessarily complicated. You don't need the
various AND functions, because, for example, you have already tested for
F5<3000 and hence you don't need to test for F5=3000.

=IF(F5<3000,25%,IF(AND(F5=3000,F5<5000),50%,IF(AN D(F5=5000,F5<7000),75%,100%)))
can be shortened to
=IF(F5<3000,25%,IF(F5<5000,50%,IF(F5<7000,75%,100% )))
--
David Biddulph

"BT" wrote in message
...
Hi George

Not pretty, but it works. Have you considered a lookup?

=IF(F5<3000,25%,IF(AND(F5=3000,F5<5000),50%,IF(AN D(F5=5000,F5<7000),75%,100%)))

Regards

BT

"Niek Otten" wrote:

That is because 500 and 700 are = 3000, so it doesn't look any further
Change the order of testing the threshold values

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"George" wrote in message
...
Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not
calculate
the
75% or 100%, it just stays at 50%





  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formual Won't Work

Yes, but why do the unncessary ANDs, Dave? Why test for F5=3000, as you've
already tested for F5<3000?
And let's guess that the OP may have wanted his percentages as numbers, not
as text strings.

=IF(F5<3000,"25%",IF(AND(F5=3000,F5<5000),"50%",I F(AND(F5=5000,F5<7000),"75%",IF(F5=7000,"100%")) ))
can be shortened to
=IF(F5<3000,25%,IF(F5<5000,50%,IF(F5<7000,75%,100% )))

--
David Biddulph

"CurlyDave" wrote in message
...

This should work

=IF(F5<3000,"25%",IF(AND(F5=3000,F5<5000),"50%",I F(AND
(F5=5000,F5<7000),"75%",IF(F5=7000,"100%"))))


On Feb 13, 6:14 am, George wrote:
Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate
the
75% or 100%, it just stays at 50%



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Formual Won't Work

Thanks to all.

"David Biddulph" wrote:

Defintely not pretty, and unnecessarily complicated. You don't need the
various AND functions, because, for example, you have already tested for
F5<3000 and hence you don't need to test for F5=3000.

=IF(F5<3000,25%,IF(AND(F5=3000,F5<5000),50%,IF(AN D(F5=5000,F5<7000),75%,100%)))
can be shortened to
=IF(F5<3000,25%,IF(F5<5000,50%,IF(F5<7000,75%,100% )))
--
David Biddulph

"BT" wrote in message
...
Hi George

Not pretty, but it works. Have you considered a lookup?

=IF(F5<3000,25%,IF(AND(F5=3000,F5<5000),50%,IF(AN D(F5=5000,F5<7000),75%,100%)))

Regards

BT

"Niek Otten" wrote:

That is because 500 and 700 are = 3000, so it doesn't look any further
Change the order of testing the threshold values

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"George" wrote in message
...
Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not
calculate
the
75% or 100%, it just stays at 50%





  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default Formual Won't Work

On Feb 13, 4:14*pm, George wrote:
Hello, can someone please help me with the following formula;
=IF(F5<=2999.99,"25%",IF(F5=3000,"50%",IF(F5=500 0,"75%",IF(F5=7000,"100%"))))
For some reason it calculates the 25% and 50%, but it will not calculate the
75% or 100%, it just stays at 50%


Try this one
=IF(F5<3000,"25%",IF(F5<5000,"50%",IF(F5<7000000," 75%","100%")))
In your formula. if a number is bigger than 3000, then obviously it
will be greater than 5000 and 7000 therefore it will never pass this
step.
HTH
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
some help with an IF formual or something like it Lost Will Excel Worksheet Functions 4 November 19th 08 12:00 PM
Formual Jodi Excel Worksheet Functions 1 May 16th 07 01:03 AM
WHAT DOES FORMUAL =C8+ 15 DO Tara Excel Discussion (Misc queries) 1 January 4th 07 03:38 PM
Formual Winnie Excel Discussion (Misc queries) 1 November 13th 06 10:19 AM
Set Formual Winnie Excel Discussion (Misc queries) 2 November 13th 06 09:47 AM


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