Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Smile Help with formula!

I need to do a formula that would show if E6 plus H6 is greater than or equal to 60 then show 60 but if its less than 60 to show 5% of that number. I see to be putting in the equation that would show it to be false if less than but it doesn't show 5% of that number.

Any help would be greatful!
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,872
Default Help with formula!

Hi,

Am Tue, 18 Jun 2013 20:39:00 +0100 schrieb NubianNewbie:

I need to do a formula that would show if E6 plus H6 is greater than or
equal to 60 then show 60 but if its less than 60 to show 5% of that
number. I see to be putting in the equation that would show it to be
false if less than but it doesn't show 5% of that number.


try:
=IF(E6+H6=60,E6+H6,0.05*(E6+H6))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 829
Default Help with formula!

"NubianNewbie" wrote:
I need to do a formula that would show if E6 plus H6
is greater than or equal to 60 then show 60 but if
its less than 60 to show 5% of that number.


=IF(E6+H6=60,60,(E6+H6)*5%)

But are you sure that is what you truly want?

Since 5% of 60 is 3, the result of that formula will be 0 to 3 if E6+H6<60
(assuming E6+H6=0), or 60 if E6+H6=60. That is a huge discontinuity.

I wonder if you really want one of the following:

=MIN(60,5%*(E6+H6))
or
=5%*MIN(60,E6+H6)

And just in case E6+H6 might be negative:

=MIN(60,5%*MAX(0,E6+H6))
or
=5%*MIN(60,MAX(0,E6+H6))

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
Build formula using field values as text in the formula referencing another workbook solardirect Links and Linking in Excel 6 June 4th 12 10:47 PM
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Formula expected end of statement error, typing formula into cell as part of VBA macro [email protected] Excel Programming 1 July 20th 06 07:58 PM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 04:13 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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