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 I Need Help With A Complex Formula

I have been trying to make a formula that will out put a certain percentage
for the numbers I input. for example if i put 2,000,000 in Cell A16 I want it
give me 3% in Cell B16. This is the complex formula that i came up with

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%,IF(AND(A16=1000000,A16<1500000),4.5%,IF(AND( A16=600000,A16<1000000),5%,IF(AND(A16=450000,A16 <600000),5.5%,IF(A16<450000,6%,0))))))

Every time i use this formula, I doesn't give me the right percentages if I
input anything under 150,000,000. For example if I input the number 600,000
then i should return me the percentage of 5%. However when i attempt this,
the output percentage will always be 4%. to me this means that only
this portion is functional:

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%

If anyone can find out what I'm doing wrong. I would mean a world of help
for me.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default I Need Help With A Complex Formula

=IF(A16="","",IF(A16=2000000,3%,IF(AND(A16=15000 00,A16<2000000),4%,IF(AND(A16=1000000,A16<1500000 ),4.5%,IF(AND(A16=600000,A16<1000000),5%,IF(AND(A 16=450000,A16<600000),5.5%,IF(A16<450000,6%,0)))) )))

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Jonathan Cheek" wrote:

I have been trying to make a formula that will out put a certain percentage
for the numbers I input. for example if i put 2,000,000 in Cell A16 I want it
give me 3% in Cell B16. This is the complex formula that i came up with

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%,IF(AND(A16=1000000,A16<1500000),4.5%,IF(AND( A16=600000,A16<1000000),5%,IF(AND(A16=450000,A16 <600000),5.5%,IF(A16<450000,6%,0))))))

Every time i use this formula, I doesn't give me the right percentages if I
input anything under 150,000,000. For example if I input the number 600,000
then i should return me the percentage of 5%. However when i attempt this,
the output percentage will always be 4%. to me this means that only
this portion is functional:

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%

If anyone can find out what I'm doing wrong. I would mean a world of help
for me.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default I Need Help With A Complex Formula

There seem to be a number of unnecessary tests there.
You've tested for =2000000, so you don't then need to test for <2000000, &
similarly for the later tests.

You can simplify
=IF(A16="","",IF(A16=2000000,3%,IF(AND(A16=15000 00,A16<2000000),4%,IF(AND(A16=1000000,A16<1500000 ),4.5%,IF(AND(A16=600000,A16<1000000),5%,IF(AND(A 16=450000,A16<600000),5.5%,IF(A16<450000,6%,0)))) ))) to =IF(A16="","",IF(A16=2000000,3%,IF(A16=1500000,4 %,IF(A16=1000000,4.5%,IF(A16=600000,5%,IF(A16=4 50000,5.5%,6%))))))--David Biddulph"Ms-Exl-Learner" wrote in ...=IF(A16="","",IF(A16 =2000000,3%,IF(AND(A16=1500000,A16<2000000),4%,I F(AND(A16=1000000,A16<1500000),4.5%,IF(AND(A16=6 00000,A16<1000000),5%,IF(AND(A16=450000,A16<60000 0),5.5%,IF(A16<450000,6%,0))))))) Remember to Click Yes, if this post helps! -------------------- (Ms-Exl-Learner) -------------------- "Jonathan Cheek" wrote: I have been trying to make a formula that will out put a certainpercentage for the numbers I input. for example if i put 2,000,000 in Cell A16 Iwant it give me 3% in Cell B16. This is the complex formula that i came up with=IF(A16=2000000,3%,IF(AND(A16=150000,A16 <2000000),4%,IF(AND(A16=1000000,A16<1500000),4.5% ,IF(AND(A16=600000,A16<1000000),5%,IF(AND(A16=45 0000,A16<600000),5.5%,IF(A16<450000,6%,0)))))) Every time i use this formula, I doesn't give me the right percentages ifI input anything under 150,000,000. For example if I input the number600,000 then i should return me the percentage of 5%. However when i attemptthis, the output percentage will always be 4%. to me this means that only this portion is functional: =IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4% If anyone can find out what I'm doing wrong. I would mean a world of help for me.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default I Need Help With A Complex Formula

Yes David Sir you are right, I have just modified the OP's formula and given
the same. After seeing your post only I come to know that it can be
simplified.

--------------------
(Ms-Exl-Learner)
--------------------


"David Biddulph" wrote:

There seem to be a number of unnecessary tests there.
You've tested for =2000000, so you don't then need to test for <2000000, &
similarly for the later tests.

You can simplify
=IF(A16="","",IF(A16=2000000,3%,IF(AND(A16=15000 00,A16<2000000),4%,IF(AND(A16=1000000,A16<1500000 ),4.5%,IF(AND(A16=600000,A16<1000000),5%,IF(AND(A 16=450000,A16<600000),5.5%,IF(A16<450000,6%,0)))) ))) to =IF(A16="","",IF(A16=2000000,3%,IF(A16=1500000,4 %,IF(A16=1000000,4.5%,IF(A16=600000,5%,IF(A16=4 50000,5.5%,6%))))))--David Biddulph"Ms-Exl-Learner" wrote in ...=IF(A16="","",IF(A16 =2000000,3%,IF(AND(A16=1500000,A16<2000000),4%,I F(AND(A16=1000000,A16<1500000),4.5%,IF(AND(A16=6 00000,A16<1000000),5%,IF(AND(A16=450000,A16<60000 0),5.5%,IF(A16<450000,6%,0))))))) Remember to Click Yes, if this post helps! -------------------- (Ms-Exl-Learner) -------------------- "Jonathan Cheek" wrote: I have been trying to make a formula that will out put a certainpercentage for the numbers I input. for example if i put 2,000,000 in Cell A16 Iwant it give me 3% in Cell B16. This is

the complex formula that i came up with=IF(A16=2000000,3%,IF(AND(A16=150000,A16 <2000000),4%,IF(AND(A16=1000000,A16<1500000),4.5% ,IF(AND(A16=600000,A16<1000000),5%,IF(AND(A16=45 0000,A16<600000),5.5%,IF(A16<450000,6%,0)))))) Every time i use this formula, I doesn't give me the right percentages ifI input anything under 150,000,000. For example if I input the number600,000 then i should return me the percentage of 5%. However when i attemptthis, the output percentage will always be 4%. to me this means that only this portion is functional: =IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4% If anyone can find out what I'm doing wrong. I would mean a world of help for me.

.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default I Need Help With A Complex Formula

Hi Jonathin,
I think you have a zero missing from your second IF thingy.
You have 150000, and I think it should be 1500000
Regards - Dave.

"Jonathan Cheek" wrote:

I have been trying to make a formula that will out put a certain percentage
for the numbers I input. for example if i put 2,000,000 in Cell A16 I want it
give me 3% in Cell B16. This is the complex formula that i came up with

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%,IF(AND(A16=1000000,A16<1500000),4.5%,IF(AND( A16=600000,A16<1000000),5%,IF(AND(A16=450000,A16 <600000),5.5%,IF(A16<450000,6%,0))))))

Every time i use this formula, I doesn't give me the right percentages if I
input anything under 150,000,000. For example if I input the number 600,000
then i should return me the percentage of 5%. However when i attempt this,
the output percentage will always be 4%. to me this means that only
this portion is functional:

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%

If anyone can find out what I'm doing wrong. I would mean a world of help
for me.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I Need Help With A Complex Formula

Thank You all! All your solutions worked very well.


  #8   Report Post  
Junior Member
 
Posts: 3
Default

Hello Jonathan,

You have committed a simple and banal mistake in the formula: instead of 1500000 you has written 150000. Has missed one 0.
Anything terrible. Such happens, when you work with the big number of zero.
So, I have corrected it and have simplified the formula:

=IF (A16 =2000000,3 %, IF (A16 =1500000,4 %, IF (A16 =1000000,4.5 %, IF (A16 =600000,5 %, IF (A16 =450000,5.5 %, 6 %)))))

Yours faithfully.









Quote:
Originally Posted by Jonathan Cheek View Post
I have been trying to make a formula that will out put a certain percentage
for the numbers I input. for example if i put 2,000,000 in Cell A16 I want it
give me 3% in Cell B16. This is the complex formula that i came up with

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%,IF(AND(A16=1000000,A16<1500000),4.5%,IF(AND( A16=600000,A16<1000000),5%,IF(AND(A16=450000,A16 <600000),5.5%,IF(A16<450000,6%,0))))))

Every time i use this formula, I doesn't give me the right percentages if I
input anything under 150,000,000. For example if I input the number 600,000
then i should return me the percentage of 5%. However when i attempt this,
the output percentage will always be 4%. to me this means that only
this portion is functional:

=IF(A16=2000000,3%,IF(AND(A16=150000,A16<2000000 ),4%

If anyone can find out what I'm doing wrong. I would mean a world of help
for me.
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
complex color fill conditions- if statements or complex formula? lilly8008 Excel Discussion (Misc queries) 1 December 18th 09 04:57 AM
complex formula? Ronny Excel Discussion (Misc queries) 1 October 7th 07 03:02 PM
Need Help with complex formula TJF Excel Worksheet Functions 2 November 25th 05 10:04 PM
Complex formula Marc Excel Discussion (Misc queries) 8 October 20th 05 02:37 AM
complex formula shmurphing Excel Worksheet Functions 1 December 21st 04 01:57 PM


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