PC Review


Reply
Thread Tools Rate Thread

Change operater in Excel formula

 
 
H.G. Lamy
Guest
Posts: n/a
 
      26th Dec 2009
Hello,

depending on a certain circumstances, a formula must change from "X = Y" to
"X <> Y".
Can this be done (e.g. using "if", or otherwise) ?
Thank you in advance.
Merry Christmas,

H.G. Lamy


 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      26th Dec 2009
You didn't give us a lot to work with, but I think you are looking for
something like this...

=IF(<<your condition>>,<<formula with x=y>>,<<formula with x<>y>>)

--
Rick (MVP - Excel)


"H.G. Lamy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> depending on a certain circumstances, a formula must change from "X = Y"
> to "X <> Y".
> Can this be done (e.g. using "if", or otherwise) ?
> Thank you in advance.
> Merry Christmas,
>
> H.G. Lamy
>
>


 
Reply With Quote
 
Lars-Åke Aspelin
Guest
Posts: n/a
 
      26th Dec 2009
As an alternative, if "the formula" is very long, you may try this:

<< your formula with X=Y replaced with (((X<>Y)+your condition)=1) >>

Hope this helps / Lars-Åke


On Sat, 26 Dec 2009 14:17:51 -0500, "Rick Rothstein"
<(E-Mail Removed)> wrote:

>You didn't give us a lot to work with, but I think you are looking for
>something like this...
>
>=IF(<<your condition>>,<<formula with x=y>>,<<formula with x<>y>>)


 
Reply With Quote
 
H.G. Lamy
Guest
Posts: n/a
 
      26th Dec 2009
Since my formula is already quite long and complicated, I'd like to avoid
repeating most of it (once for the "if"-part, and again for the
"then"-part).

Instead, I was trying to REPLACE ONLY THE OPERATOR INSIDE THE FORMULA ("=",
or "<>", respectively), depending on the condition met.

However, I did not find a workable solution for that.

Can anybody assist ?

Thank you in advance!

Kind regards,

H.G. Lamy
"H.G. Lamy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> depending on a certain circumstances, a formula must change from "X = Y"
> to "X <> Y".
> Can this be done (e.g. using "if", or otherwise) ?
> Thank you in advance.
> Merry Christmas,
>
> H.G. Lamy
>
>



 
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
Formula in excel to change - to + =?Utf-8?B?bXJiYWxhamU=?= Microsoft Excel Misc 2 13th Mar 2007 08:06 AM
Can I use 'Like' or '*' operater is a parameter query? =?Utf-8?B?bm9zYWpfZW5yeWI=?= Microsoft Access Queries 2 12th Dec 2005 10:55 PM
Frontpage 2003 bug or inexperienced operater? =?Utf-8?B?cm9iZXJ0?= Microsoft Frontpage 5 3rd Jun 2004 06:16 PM
Validation and Operater function sigh Microsoft Access VBA Modules 0 19th Nov 2003 03:10 PM
override ++ operater and Compiler problem when casting? Sacha Faust Microsoft C# .NET 1 10th Jul 2003 08:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:52 PM.