PC Review


Reply
Thread Tools Rate Thread

Combining Formulas

 
 
Mike
Guest
Posts: n/a
 
      20th Nov 2003
Hi Again,

In the following table, the formula for C is =IF(B1>5.5,0,5.5-B1)
A B C
------------------------
1 6 1 4.5
2 9 0 5.5
3 11 6 0
4 7 7 0

In the next table, the formula for C is =IF(A1<5.5,A1-B1,0)
A B C
--------------------------
1 2 0 2
2 5 4 1
3 3 3 0

The data in A will always be larger or equal to B
I would like to combine both formulas....I think I need the AND or OR
function in the IF statement but don't know how to set it up.

Any help would be appreciated,

Mike


 
Reply With Quote
 
 
 
 
JohnI in Brisbane
Guest
Posts: n/a
 
      20th Nov 2003
Mike,

Is this what you're after?

=IF(A2<5.5,A2-B2,IF(B2>5.5,0,5.5-B2))

JohnI

"Mike" <(E-Mail Removed)> wrote in message
news:%TTub.9863$0K4.1376@lakeread04...
> Hi Again,
>
> In the following table, the formula for C is =IF(B1>5.5,0,5.5-B1)
> A B C
> ------------------------
> 1 6 1 4.5
> 2 9 0 5.5
> 3 11 6 0
> 4 7 7 0
>
> In the next table, the formula for C is =IF(A1<5.5,A1-B1,0)
> A B C
> --------------------------
> 1 2 0 2
> 2 5 4 1
> 3 3 3 0
>
> The data in A will always be larger or equal to B
> I would like to combine both formulas....I think I need the AND or OR
> function in the IF statement but don't know how to set it up.
>



 
Reply With Quote
 
Mike
Guest
Posts: n/a
 
      20th Nov 2003
John,
That is exactly what I am looking for. Thank you for your help.

Mike
"JohnI in Brisbane" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Mike,
>
> Is this what you're after?
>
> =IF(A2<5.5,A2-B2,IF(B2>5.5,0,5.5-B2))
>
> JohnI
>
> "Mike" <(E-Mail Removed)> wrote in message
> news:%TTub.9863$0K4.1376@lakeread04...
> > Hi Again,
> >
> > In the following table, the formula for C is =IF(B1>5.5,0,5.5-B1)
> > A B C
> > ------------------------
> > 1 6 1 4.5
> > 2 9 0 5.5
> > 3 11 6 0
> > 4 7 7 0
> >
> > In the next table, the formula for C is =IF(A1<5.5,A1-B1,0)
> > A B C
> > --------------------------
> > 1 2 0 2
> > 2 5 4 1
> > 3 3 3 0
> >
> > The data in A will always be larger or equal to B
> > I would like to combine both formulas....I think I need the AND or OR
> > function in the IF statement but don't know how to set it up.
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
combining formulas Rene Microsoft Excel Misc 4 13th Nov 2008 12:13 AM
Combining Formulas JimS Microsoft Excel Discussion 3 9th Oct 2008 02:49 PM
combining Formulas mndpy Microsoft Excel Worksheet Functions 2 13th Dec 2007 08:52 PM
Combining 2 Formulas =?Utf-8?B?Sm9rZXI=?= Microsoft Excel Misc 1 1st Feb 2007 03:30 PM
Combining two formulas edwardpestian Microsoft Excel Worksheet Functions 4 4th Jun 2006 10:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.