Solved

Excel Formula

Posted on 2012-03-22
7
233 Views
Last Modified: 2012-03-27
I have the following formula that works.
=IF((F11*0.04)>120,120,(F11*0.04))

I need to add a section that would calculate a minimum value of say 5. As in this formula
=IF(SUM(F11*0.04)<5,5,SUM(F11*0.04))

I basically need a combination of the two, so F11*0.04 with a minimum value of 5 amnd a maximum of 120.

Any help greatly appreciated
0
Comment
Question by:iainmacleod
  • 3
  • 2
7 Comments
 
LVL 4

Expert Comment

by:petr_hlucin
Comment Utility
1) There is a MIN(...) function in Excel which is more comfortable to use in the case you describe, e.g. the initial working formula would be:
=MIN(120,(F11*0.04))

Open in new window


2) What do you mean by "section"? You don't need to use SUM(...) function for a 1-item list like SUM(F11*0.04).
0
 
LVL 4

Accepted Solution

by:
petr_hlucin earned 250 total points
Comment Utility
Sorry, now I read your post more carefully. What you probably need is the following:
=MIN(MAX(F11*0.04, 5), 120)

Open in new window

This formula will return F11*0.04 if it is in range of 5..120, otherwise it will return 5 (if it is smaller), or 120 (if it is greater).
0
 
LVL 6

Assisted Solution

by:wshark83
wshark83 earned 250 total points
Comment Utility
how about this:

=IF((F11*0.04)>120,120,IF(SUM(F11*0.04)<5,5,SUM(F11*0.04)))
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:iainmacleod
Comment Utility
Thanks for the quick response, both work perfectly..
0
 
LVL 4

Expert Comment

by:petr_hlucin
Comment Utility
Since both work perfectly could you please assign several points to me as well?
0
 

Author Closing Comment

by:iainmacleod
Comment Utility
I had to ask for the question to be reopened as I had meant to accept both solutions. This is now done. Thanks to both
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now