Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default cell formulae giving negative result.

Hi,

I'm using the calculation IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less than
10 in C2?

Any help very much appreciated

Brian
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default cell formulae giving negative result.

Firstly there is an error in the formula -
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))
IF(C2=49.99,39.99*0.06,IF(C2<49.99,(C2-10)*0.06))

Now, to answer the question. You can't stop the formula returning a
negative number because it is a mathematical function. You can, however,
change what it does when it gets a negative number. What do you want to
happen when the formula returns a negative number?

Regards.

Bill Ridgeway
Computer Solutions

"BrianC500" wrote in message
...
Hi,

I'm using the calculation
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less
than
10 in C2?

Any help very much appreciated

Brian



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default cell formulae giving negative result.

what do you want the result to be if C2 < 10?

"BrianC500" wrote:

Hi,

I'm using the calculation IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less than
10 in C2?

Any help very much appreciated

Brian

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default cell formulae giving negative result.

The second IF function (nested) isn't necessary since if C2 failed to meet
the first criterion where C2=49.99 then it is mandated to be less than
49.99. Also, since 39.99*0.06 is a hard number, the second of the two formula
options below lists this number (2.399) instead:

=If(C2=49.99, 39.99*0.06, Max(C2-10, 0)*0.06)
=IF(C2=49.99,2.399,MAX(C2-10,0)*0.06)

Regards,
Greg

"BrianC500" wrote:

Hi,

I'm using the calculation IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less than
10 in C2?

Any help very much appreciated

Brian

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default cell formulae giving negative result.

Hi Bill,

Thanks for the reply. I would like the fomula to return a figure of zero.

Regards

Brian

"Bill Ridgeway" wrote:

Firstly there is an error in the formula -
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))
IF(C2=49.99,39.99*0.06,IF(C2<49.99,(C2-10)*0.06))

Now, to answer the question. You can't stop the formula returning a
negative number because it is a mathematical function. You can, however,
change what it does when it gets a negative number. What do you want to
happen when the formula returns a negative number?

Regards.

Bill Ridgeway
Computer Solutions

"BrianC500" wrote in message
...
Hi,

I'm using the calculation
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less
than
10 in C2?

Any help very much appreciated

Brian






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default cell formulae giving negative result.

Hi,

I would like the result to be zero.

Thanks

Brian

"Toppers" wrote:

what do you want the result to be if C2 < 10?

"BrianC500" wrote:

Hi,

I'm using the calculation IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less than
10 in C2?

Any help very much appreciated

Brian

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default cell formulae giving negative result.

I think the formula you want is -
=IF(C2=49.99,39.99*0.06,IF((C2-10)*0.06<0,0,C2-10)*0.06)

Regards.

Bill Ridgeway
Computer Solutions

"BrianC500" wrote in message
...
Hi Bill,

Thanks for the reply. I would like the fomula to return a figure of zero.

Regards

Brian

"Bill Ridgeway" wrote:

Firstly there is an error in the formula -
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))
IF(C2=49.99,39.99*0.06,IF(C2<49.99,(C2-10)*0.06))

Now, to answer the question. You can't stop the formula returning a
negative number because it is a mathematical function. You can, however,
change what it does when it gets a negative number. What do you want to
happen when the formula returns a negative number?

Regards.

Bill Ridgeway
Computer Solutions

"BrianC500" wrote in message
...
Hi,

I'm using the calculation
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less
than
10 in C2?

Any help very much appreciated

Brian



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default cell formulae giving negative result.

Hi Bill,

Thank you very much for all your help. That calculation was perfect. I can
press on with my spreadsheet now.

Regards

Brian

"Bill Ridgeway" wrote:

I think the formula you want is -
=IF(C2=49.99,39.99*0.06,IF((C2-10)*0.06<0,0,C2-10)*0.06)

Regards.

Bill Ridgeway
Computer Solutions

"BrianC500" wrote in message
...
Hi Bill,

Thanks for the reply. I would like the fomula to return a figure of zero.

Regards

Brian

"Bill Ridgeway" wrote:

Firstly there is an error in the formula -
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))
IF(C2=49.99,39.99*0.06,IF(C2<49.99,(C2-10)*0.06))

Now, to answer the question. You can't stop the formula returning a
negative number because it is a mathematical function. You can, however,
change what it does when it gets a negative number. What do you want to
happen when the formula returns a negative number?

Regards.

Bill Ridgeway
Computer Solutions

"BrianC500" wrote in message
...
Hi,

I'm using the calculation
IF(C2=49.99,39.99*0.06,IF(C2<49.99(C2-10)*0.06))

How can I stop achieving a negative result when I put a figure of less
than
10 in C2?

Any help very much appreciated

Brian




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
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
VBA Monty Excel Worksheet Functions 2 January 30th 06 01:37 PM
cell calculation check if result is negative and zero out if not l Rich Excel Worksheet Functions 2 January 16th 06 08:31 PM
How do i get excel to format a cell for a negative result. Cisco Excel Discussion (Misc queries) 4 July 21st 05 08:40 AM
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM


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