Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Help getting 2 formulas into one

I am trying to write a formula that covers these conditions:

If B2 = FF00 and (G2< -50,000 or G2 50,000)
Or
If B2= BE00 and (G2< -50,000 or G2 50,000)
Or
If B2= LU00 and (G2< -50,000 or G2 50,000)

Then return €śManual€ť otherwise leave the cell blank.


Right now I have two separate cells doing the calcs. One for determining
whether B2 is FF00, BE00 or LU00 and another cell that determines if it is
50,000 or < -50,000. Ive tried several different iterations of formulas but
Im getting confused with nesting IF AND & OR functions.

This is what I have in I2
=IF(OR(B2="FF00",B2="BE00",B2="LU00"),"UC","")

And this is what I have in J2
=IF(AND(I2="UC",G250000),"Manual",IF(AND(I2="UC", G2<-50000),"Manual",""))

Can anyone help me get this into one formula?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default Help getting 2 formulas into one

On Wed, 29 Jul 2009 12:58:01 -0700, Iriemon
wrote:

I am trying to write a formula that covers these conditions:

If B2 = FF00 and (G2< -50,000 or G2 50,000)
Or
If B2= BE00 and (G2< -50,000 or G2 50,000)
Or
If B2= LU00 and (G2< -50,000 or G2 50,000)

Then return “Manual” otherwise leave the cell blank.


Right now I have two separate cells doing the calcs. One for determining
whether B2 is FF00, BE00 or LU00 and another cell that determines if it is
50,000 or < -50,000. I’ve tried several different iterations of formulas but
I’m getting confused with nesting IF AND & OR functions.

This is what I have in I2
=IF(OR(B2="FF00",B2="BE00",B2="LU00"),"UC","")

And this is what I have in J2
=IF(AND(I2="UC",G250000),"Manual",IF(AND(I2="UC" ,G2<-50000),"Manual",""))

Can anyone help me get this into one formula?

Thanks



Try this formula:

=IF(AND(OR(B2="FF00",B2="BE00",B2="LU00"),OR(G2<-50000,G250000)),"Manual","")

Hope this helps / Lars-Ĺke
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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
lookup formulas dependent upon lookup formulas Skibee Excel Worksheet Functions 1 July 20th 07 02:20 AM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


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