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 Simplify formula please

I am getting confused trying to simplify these two formulas into one. I
currently have them in two separate cells and would like to get them into a
single cell.

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.5,$L2=-0.7)),6,"")

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.7,$L2=-1)),7,"")


As you can see, the only difference is in the L2 values and the value to
return. I'm getting lost!

Thanks

Irie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Simplify formula please

Hi,
try

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.5,$L2=-0.7)),6,IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00" ),$E20,AND($L2<-0.7,$L2=-1)),7,""))

"Iriemon" wrote:

I am getting confused trying to simplify these two formulas into one. I
currently have them in two separate cells and would like to get them into a
single cell.

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.5,$L2=-0.7)),6,"")

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.7,$L2=-1)),7,"")


As you can see, the only difference is in the L2 values and the value to
return. I'm getting lost!

Thanks

Irie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Simplify formula please


Iriemon;452920 Wrote:
I am getting confused trying to simplify these two formulas into one. I
currently have them in two separate cells and would like to get them
into a
single cell.

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.5,$L2=-0.7)),6,"")

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.7,$L2=-1)),7,"")


As you can see, the only difference is in the L2 values and the value
to
return. I'm getting lost!

Thanks

Irie



Try:

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ),IF(AND($L2<-0.5,$L2=-0.7),6,IF(AND($L2<-0.7,$L2=-1),7,"")),"")


--
NBVC

Where there is a will there are many ways.

'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=125361

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Simplify formula please

Try

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ),IF(AND($L2<-0.5,$L2=-0.7),6,IF(AND($L2<-0.7,$L2=-1),7,""),"")

If this post helps click Yes
---------------
Jacob Skaria


"Iriemon" wrote:

I am getting confused trying to simplify these two formulas into one. I
currently have them in two separate cells and would like to get them into a
single cell.

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.5,$L2=-0.7)),6,"")

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.7,$L2=-1)),7,"")


As you can see, the only difference is in the L2 values and the value to
return. I'm getting lost!

Thanks

Irie

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Simplify formula please

To start with, you don't need the second AND in each equation, as you're
already within an AND function, hence:
=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,$L2<-0.5,$L2=-0.7),6,"") =IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,$L2<-0.7,$L2=-1),7,"")You could do things the long way & just say:=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$ E20,$L2<-0.5,$L2=-0.7),6,IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00") ,$E20,$L2<-0.7,$L2=-1),7,""))Another option is:=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E 20),IF($L2=-0.5,"",IF($L2=-0.7,6,IF($L2=-1,7,""))),"")--David Biddulph"Iriemon" wrote in ...I am getting confused trying to simplify these two formulas into one. I currently have them in two separate cells and would like to get them intoa single cell.=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00" ),$E20,AND($L2<-0.5,$L2=-0.7)),6,"")=IF(AND(OR($B2="FF00",$B2="BE00",$B2= "LU00"),$E20,AND($L2<-0.7,$L2=-1)),7,"") As you can see, the only difference is in the L2 values and the value to return. I'm getting lost! Thanks Irie



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Simplify formula please

Thanks all for the help!

Eduardo: I appreciate the formula help, yours is very easy to "read" and
makes following the logic simple. I used yours to validate the others.

NVBC: Your formula is shorter and is also easy to read, I'm actually
currently using this one.

David: Yours is the shortest and I will probably eventually use yours, but
for now, trying to follow the logic is more difficult. Once I get it all
validated, I'll switch them to your version. ( I have several more conditions
I have to test for)


THANKS ALL !

Irie!

"Iriemon" wrote:

I am getting confused trying to simplify these two formulas into one. I
currently have them in two separate cells and would like to get them into a
single cell.

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.5,$L2=-0.7)),6,"")

=IF(AND(OR($B2="FF00",$B2="BE00",$B2="LU00"),$E20 ,AND($L2<-0.7,$L2=-1)),7,"")


As you can see, the only difference is in the L2 values and the value to
return. I'm getting lost!

Thanks

Irie

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
Simplify this formula Sampoerna Excel Worksheet Functions 8 March 1st 09 12:24 PM
Simplify Formula Mike Lewis Excel Worksheet Functions 1 July 4th 08 02:00 AM
Is there anyway to simplify this formula? rancher fred Excel Worksheet Functions 1 January 6th 07 09:29 PM
simplify this formula Dave F Excel Discussion (Misc queries) 2 August 23rd 06 03:06 PM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM


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