#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default if formula question

I am trying to use the following formula and it doesn't work for all my
tests. If the answer is false I want the value to return but not greater
than G7. Here is the formula =-if(A17(G4+G5+G7),0,min(A17-G7-(G4+G5),G7)).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default if formula question

"it doesn't work" is not the most helpful of problem descriptions.

What input values do you have in those cells?
What result are you getting?
What result did you expect?
--
David Biddulph

"Theresa" wrote in message
...
I am trying to use the following formula and it doesn't work for all my
tests. If the answer is false I want the value to return but not greater
than G7. Here is the formula
=-if(A17(G4+G5+G7),0,min(A17-G7-(G4+G5),G7)).



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default if formula question

The formula entered does do what you,re looking to do. the value returned is
greater than G7?

"Theresa" wrote:

I am trying to use the following formula and it doesn't work for all my
tests. If the answer is false I want the value to return but not greater
than G7. Here is the formula =-if(A17(G4+G5+G7),0,min(A17-G7-(G4+G5),G7)).

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default if formula question

Is the leading minus on purpose to make the result positive?


Maybe you want something like this


=IF(A17(G4+G5+G7),0,MIN(-(A17-G7-(G4+G5)),G7))

otherwise explain what you are doing, what you expect the result to be etc.

--


Regards,


Peo Sjoblom

"Theresa" wrote in message
...
I am trying to use the following formula and it doesn't work for all my
tests. If the answer is false I want the value to return but not greater
than G7. Here is the formula
=-if(A17(G4+G5+G7),0,min(A17-G7-(G4+G5),G7)).



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
Question on a Formula B. Levien Excel Discussion (Misc queries) 6 April 7th 08 09:59 PM
Formula Question Wanda Excel Worksheet Functions 6 November 7th 07 04:56 PM
formula question DEE Excel Worksheet Functions 2 July 10th 06 05:21 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Formula Question Bruce D. Excel Discussion (Misc queries) 2 January 5th 06 06:09 PM


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