Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Joe Gieder
 
Posts: n/a
Default IF formula problem

First, thank you for looking at his and your expert help and advice.

I have this Array entered formula in cell V1:
=IF('Priced BOM'!$W$1<(OR((LEFT('Priced BOM'!$W$1,3)="DLA"),(LEFT('Priced
BOM'!$W$1,3)="GFM"))),"Quote",'Priced BOM'!$W$1)

and it give the wrong result, it evaluates to True when it should be False
because W1 has the value "DLA".
I need for it to say "Quote" if cell W1 does not contain the text "DLA" or
"GFM" and state the value that is in W1 if it evaluates to False. Is there a
way to use OR in the formula or can what I want to do just not be done?

Thank you in advance for your help
Joe
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Maybe this

=IF(OR(LEFT('Priced BOM'!$W$1,3)<"DLA",LEFT('Priced
BOM'!$W$1,3)<"GFM"),"Quote",'Priced BOM'!$W$1)

another way

=IF(OR(ISERR(FIND(,"DLA",'Priced BOM'!$W$1)),ISERR(FIND("GFM",'Priced
BOM'!$W$1))),"Quote",'Priced BOM'!$W$1)

which is case sensitive and will work if there are leading spaces etc
replace with SEARCH if not case sensitive

Regards,

Peo Sjoblom


"Joe Gieder" wrote in message
...
First, thank you for looking at his and your expert help and advice.

I have this Array entered formula in cell V1:
=IF('Priced BOM'!$W$1<(OR((LEFT('Priced BOM'!$W$1,3)="DLA"),(LEFT('Priced
BOM'!$W$1,3)="GFM"))),"Quote",'Priced BOM'!$W$1)

and it give the wrong result, it evaluates to True when it should be False
because W1 has the value "DLA".
I need for it to say "Quote" if cell W1 does not contain the text "DLA" or
"GFM" and state the value that is in W1 if it evaluates to False. Is there

a
way to use OR in the formula or can what I want to do just not be done?

Thank you in advance for your help
Joe



  #3   Report Post  
Joe Gieder
 
Posts: n/a
Default

Thank you for your help.
I tried the below formulas but they both seem to evaluate to True all the
time because the result ends up being "Quote". Am I possibly doing something
wrong?

Thanks
Joe

"Peo Sjoblom" wrote:

Maybe this

=IF(OR(LEFT('Priced BOM'!$W$1,3)<"DLA",LEFT('Priced
BOM'!$W$1,3)<"GFM"),"Quote",'Priced BOM'!$W$1)

another way

=IF(OR(ISERR(FIND(,"DLA",'Priced BOM'!$W$1)),ISERR(FIND("GFM",'Priced
BOM'!$W$1))),"Quote",'Priced BOM'!$W$1)

which is case sensitive and will work if there are leading spaces etc
replace with SEARCH if not case sensitive

Regards,

Peo Sjoblom


"Joe Gieder" wrote in message
...
First, thank you for looking at his and your expert help and advice.

I have this Array entered formula in cell V1:
=IF('Priced BOM'!$W$1<(OR((LEFT('Priced BOM'!$W$1,3)="DLA"),(LEFT('Priced
BOM'!$W$1,3)="GFM"))),"Quote",'Priced BOM'!$W$1)

and it give the wrong result, it evaluates to True when it should be False
because W1 has the value "DLA".
I need for it to say "Quote" if cell W1 does not contain the text "DLA" or
"GFM" and state the value that is in W1 if it evaluates to False. Is there

a
way to use OR in the formula or can what I want to do just not be done?

Thank you in advance for your help
Joe




  #4   Report Post  
Richard Buttrey
 
Posts: n/a
Default

On Thu, 13 Oct 2005 08:57:13 -0700, "Joe Gieder"
wrote:

First, thank you for looking at his and your expert help and advice.

I have this Array entered formula in cell V1:
=IF('Priced BOM'!$W$1<(OR((LEFT('Priced BOM'!$W$1,3)="DLA"),(LEFT('Priced
BOM'!$W$1,3)="GFM"))),"Quote",'Priced BOM'!$W$1)

and it give the wrong result, it evaluates to True when it should be False
because W1 has the value "DLA".
I need for it to say "Quote" if cell W1 does not contain the text "DLA" or
"GFM" and state the value that is in W1 if it evaluates to False. Is there a
way to use OR in the formula or can what I want to do just not be done?

Thank you in advance for your help
Joe


=IF(AND(LEFT('Priced Bom'!$W$1,3)<"DLA",LEFT('Priced
Bom'!$W$1,3)<"GFM"),"Quote",'Priced Bom'!$W$1)


Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
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
Problem with formula in Excel Bill R Excel Worksheet Functions 3 August 15th 05 03:02 AM
Problem with formula numerion Excel Worksheet Functions 5 July 5th 05 11:06 PM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 04:57 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Need a formula for this problem Trying to excel in life but need help Excel Worksheet Functions 1 January 12th 05 11:05 AM


All times are GMT +1. The time now is 11:50 AM.

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"