Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
BenJAMMIN
 
Posts: n/a
Default IF greater than...IF less than....======

I am trying to figure out a simple formula but it is giving me fits:

If cell C3 is bigger than D3, Then take D3 and less the amount in F3 and
give me the sum
If cell D3 is bigger than C3, Then take C3 and less the amount in F3 and
give me the sum

So the formula needs to be a sum if statement???
What would it look like?

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=IF(OR(C3="",D3="",F3=""),"",IF(C3D3,D3-F3,IF(D3C3,C3-F3,"equal")))

You haven't accounted for C3 and D3 being equal!

If any of the referenced cells are empty the formula will return blank ("").

Biff

"BenJAMMIN" wrote in message
...
I am trying to figure out a simple formula but it is giving me fits:

If cell C3 is bigger than D3, Then take D3 and less the amount in F3 and
give me the sum
If cell D3 is bigger than C3, Then take C3 and less the amount in F3 and
give me the sum

So the formula needs to be a sum if statement???
What would it look like?



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(COUNT(C3,D3,F3)=3,MIN(C3,D3)-F3,"")

In article ,
BenJAMMIN wrote:

I am trying to figure out a simple formula but it is giving me fits:

If cell C3 is bigger than D3, Then take D3 and less the amount in F3 and
give me the sum
If cell D3 is bigger than C3, Then take C3 and less the amount in F3 and
give me the sum

So the formula needs to be a sum if statement???
What would it look like?

  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

How about:

=MIN(C3,D3)-F3
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"BenJAMMIN" wrote in message
...
I am trying to figure out a simple formula but it is giving me fits:

If cell C3 is bigger than D3, Then take D3 and less the amount in F3 and
give me the sum
If cell D3 is bigger than C3, Then take C3 and less the amount in F3 and
give me the sum

So the formula needs to be a sum if statement???
What would it look like?


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
Less than, Greater than Formula Debbie Excel Discussion (Misc queries) 1 April 13th 05 07:58 PM
Help with SUMIF, INDEX, LOOKUP Please !! Robert Excel Worksheet Functions 13 March 13th 05 12:17 AM
Help w/ SUMIF ; INDEX Robert Excel Worksheet Functions 2 March 12th 05 02:23 AM
If Greater than when a formula Results in N/A John Excel Worksheet Functions 2 December 15th 04 08:19 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 02:06 AM


All times are GMT +1. The time now is 03:26 PM.

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"