Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
repke
 
Posts: n/a
Default if than statement has too many variable


Hello

I'm pretty much a novice at using Excel but made a formula a couple
years ago to calculate freight. There are 2 basic scenarios, if the
weight falls between a certain brackets it gets a set price or it gets
multiplied by a percentage. I think the max number of if than
statements is seven... correct? My excel file was corrupted about 3
months back and I have been unsuccessful in recreating it. I'm open to
using a more appropriate formula or fixing the current one. Either way
I appreciate the help.

=IF(E4<=50,28,IF(E4<=305,42,IF(E4<=393,E4*0.1373,I F(E4<=500,54.05,IF(E4<=712,E4*0.1081,IF(E4<=1000,7 7))))))

Thanks
Chris


--
repke
------------------------------------------------------------------------
repke's Profile: http://www.excelforum.com/member.php...fo&userid=9890
View this thread: http://www.excelforum.com/showthread...hreadid=537915

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bernie Deitrick
 
Posts: n/a
Default if than statement has too many variable

Chris,

Your current formula worked fine for me, with the exception that it didn't handle weights greater
than 1000. You could change the last IF to something like - if you have a rate for items over
1000.....

=IF(E4<=50,28,IF(E4<=305,42,IF(E4<=393,E4*0.1373,I F(E4<=500,54.05,IF(E4<=712,E4*0.1081,IF(E4<=1000,7 7,0.07*E4))))))

HTH,
Bernie
MS Excel MVP


"repke" wrote in message
...

Hello

I'm pretty much a novice at using Excel but made a formula a couple
years ago to calculate freight. There are 2 basic scenarios, if the
weight falls between a certain brackets it gets a set price or it gets
multiplied by a percentage. I think the max number of if than
statements is seven... correct? My excel file was corrupted about 3
months back and I have been unsuccessful in recreating it. I'm open to
using a more appropriate formula or fixing the current one. Either way
I appreciate the help.

=IF(E4<=50,28,IF(E4<=305,42,IF(E4<=393,E4*0.1373,I F(E4<=500,54.05,IF(E4<=712,E4*0.1081,IF(E4<=1000,7 7))))))

Thanks
Chris


--
repke
------------------------------------------------------------------------
repke's Profile: http://www.excelforum.com/member.php...fo&userid=9890
View this thread: http://www.excelforum.com/showthread...hreadid=537915



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
Aling multiple sets of data by header column MarkusO Excel Discussion (Misc queries) 2 April 12th 06 07:29 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
testing more than one variable in an if statement Charles Excel Discussion (Misc queries) 3 February 22nd 05 06:46 PM
Add 2nd variable to if statement - ifAnd? Todd F. Excel Worksheet Functions 4 December 18th 04 07:49 PM


All times are GMT +1. The time now is 12:42 PM.

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"