PC Review


Reply
Thread Tools Rate Thread

another complex =IF question

 
 
gimp
Guest
Posts: n/a
 
      26th Jun 2006
i was given the formula to use in cell A1 if cell b1 = x to make A1
either be blank if it said something other than x, or if it said x it
would generate an (*). now is there a formula that can be used in the
same senario if B1 had a series of possible values to generate a (*) in
cell A1?

thanks again

 
Reply With Quote
 
 
 
 
Ragdyer
Guest
Posts: n/a
 
      26th Jun 2006
Try this in A1:

=IF(OR(B1={"X","Y","Z"}),"*","")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"gimp" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> i was given the formula to use in cell A1 if cell b1 = x to make A1
> either be blank if it said something other than x, or if it said x it
> would generate an (*). now is there a formula that can be used in the
> same senario if B1 had a series of possible values to generate a (*) in
> cell A1?
>
> thanks again
>


 
Reply With Quote
 
Franz Verga
Guest
Posts: n/a
 
      26th Jun 2006
If I well understand your problem, this formula is what you need:

=IF(OR(B1="x",B1="a",B1=3),"(*)","")

You can have till 30 conditions inside the OR function, so 30 possible
values in B1 to have an (*) in A1.

Nel post news:(E-Mail Removed)
*gimp* ha scritto:

> i was given the formula to use in cell A1 if cell b1 = x to make A1
> either be blank if it said something other than x, or if it said x it
> would generate an (*). now is there a formula that can be used in the
> same senario if B1 had a series of possible values to generate a (*)
> in cell A1?
>
> thanks again


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


 
Reply With Quote
 
Franz Verga
Guest
Posts: n/a
 
      26th Jun 2006
This is avery interesting formula, I never saw before such use of array in
an OR function...
As far you know it's possible to use this way to shorten such a formula:

=IF(AND(B1>=5,B1<=10,something,something_else)

I've tried with this:

=IF(AND(B1&{">=","<="}&{5,10}),"*","")

but I have a #VALUE! as a result.



Nel post news:(E-Mail Removed)
*Ragdyer* ha scritto:

> Try this in A1:
>
> =IF(OR(B1={"X","Y","Z"}),"*","")
>
>
> ---------------------------------------------------------------------------
> Please keep all correspondence within the NewsGroup, so all may
> benefit !
> ---------------------------------------------------------------------------
> "gimp" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> i was given the formula to use in cell A1 if cell b1 = x to make A1
>> either be blank if it said something other than x, or if it said x it
>> would generate an (*). now is there a formula that can be used in the
>> same senario if B1 had a series of possible values to generate a (*)
>> in cell A1?
>>
>> thanks again


--
Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


 
Reply With Quote
 
Ragdyer
Guest
Posts: n/a
 
      26th Jun 2006
It's called an "Array Constant"

From XL's Help file:

Items that an array constant can contain

· Array constants can contain numbers, text, logical values such as TRUE or
FALSE, or error values such as #N/A.
· Numbers in array constants can be in integer, decimal, or scientific
format.
· Text must be enclosed in double quotation marks, for example "Tuesday".
· You can use different types of values in the same array constant, for
example, {1,3,4;TRUE,FALSE,TRUE}.
· The values in an array constant must be constants, not formulas.

· Array constants cannot contain $ (dollar signs), parentheses, or %
(percent signs).
· Array constants cannot contain cell references.
· Array constants cannot contain columns or rows of unequal length.


--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Franz Verga" <(E-Mail Removed)> wrote in message
news:OY$(E-Mail Removed)...
> This is avery interesting formula, I never saw before such use of array in
> an OR function...
> As far you know it's possible to use this way to shorten such a formula:
>
> =IF(AND(B1>=5,B1<=10,something,something_else)
>
> I've tried with this:
>
> =IF(AND(B1&{">=","<="}&{5,10}),"*","")
>
> but I have a #VALUE! as a result.
>
>
>
> Nel post news:(E-Mail Removed)
> *Ragdyer* ha scritto:
>
> > Try this in A1:
> >
> > =IF(OR(B1={"X","Y","Z"}),"*","")
> >
> >

>
> --------------------------------------------------------------------------

-
> > Please keep all correspondence within the NewsGroup, so all may
> > benefit !

>
> --------------------------------------------------------------------------

-
> > "gimp" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> i was given the formula to use in cell A1 if cell b1 = x to make A1
> >> either be blank if it said something other than x, or if it said x it
> >> would generate an (*). now is there a formula that can be used in the
> >> same senario if B1 had a series of possible values to generate a (*)
> >> in cell A1?
> >>
> >> thanks again

>
> --
> Thanks in advance for your feedback.
>
> Ciao
>
> Franz Verga from Italy
>
>


 
Reply With Quote
 
gimp
Guest
Posts: n/a
 
      26th Jun 2006
ok what is the longest formula that can be created like this. i maxed
it out came back saying formula too long. i prolly have 1000 or more
possibilities.
Franz Verga wrote:
> If I well understand your problem, this formula is what you need:
>
> =IF(OR(B1="x",B1="a",B1=3),"(*)","")
>
> You can have till 30 conditions inside the OR function, so 30 possible
> values in B1 to have an (*) in A1.
>
> Nel post news:(E-Mail Removed)
> *gimp* ha scritto:
>
> > i was given the formula to use in cell A1 if cell b1 = x to make A1
> > either be blank if it said something other than x, or if it said x it
> > would generate an (*). now is there a formula that can be used in the
> > same senario if B1 had a series of possible values to generate a (*)
> > in cell A1?
> >
> > thanks again

>
> --
> (I'm not sure of names of menus, options and commands, because
> translating from the Italian version of Excel...)
>
> Hope I helped you.
>
> Thanks in advance for your feedback.
>
> Ciao
>
> Franz Verga from Italy


 
Reply With Quote
 
Franz Verga
Guest
Posts: n/a
 
      26th Jun 2006
I told you you have max 30 conditions, so max 30 values, but if you have
1000 or more possibilities, you can try with VLOOKUP function in this way:

=IF(ISNA(VLOOKUP(B1,$A$3:$A$29,1,0))),"","*")

where $A$3:$A$29 is the range with all the possible conditions (one per each
cell).

Obviously you have to set your own range.


Nel post news:(E-Mail Removed)
*gimp* ha scritto:

> ok what is the longest formula that can be created like this. i maxed
> it out came back saying formula too long. i prolly have 1000 or more
> possibilities.
> Franz Verga wrote:
>> If I well understand your problem, this formula is what you need:
>>
>> =IF(OR(B1="x",B1="a",B1=3),"(*)","")
>>
>> You can have till 30 conditions inside the OR function, so 30
>> possible values in B1 to have an (*) in A1.
>>
>> Nel post news:(E-Mail Removed)
>> *gimp* ha scritto:
>>
>>> i was given the formula to use in cell A1 if cell b1 = x to make A1
>>> either be blank if it said something other than x, or if it said x
>>> it would generate an (*). now is there a formula that can be used
>>> in the same senario if B1 had a series of possible values to
>>> generate a (*) in cell A1?
>>>
>>> thanks again

>>
>> --
>> (I'm not sure of names of menus, options and commands, because
>> translating from the Italian version of Excel...)
>>
>> Hope I helped you.
>>
>> Thanks in advance for your feedback.
>>
>> Ciao
>>
>> Franz Verga from Italy


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      26th Jun 2006
You can't build a formula like that, and why would you?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Franz Verga" <(E-Mail Removed)> wrote in message
news:OY$(E-Mail Removed)...
> This is avery interesting formula, I never saw before such use of array in
> an OR function...
> As far you know it's possible to use this way to shorten such a formula:
>
> =IF(AND(B1>=5,B1<=10,something,something_else)
>
> I've tried with this:
>
> =IF(AND(B1&{">=","<="}&{5,10}),"*","")
>
> but I have a #VALUE! as a result.
>
>
>
> Nel post news:(E-Mail Removed)
> *Ragdyer* ha scritto:
>
> > Try this in A1:
> >
> > =IF(OR(B1={"X","Y","Z"}),"*","")
> >
> >

>
> --------------------------------------------------------------------------

-
> > Please keep all correspondence within the NewsGroup, so all may
> > benefit !

>
> --------------------------------------------------------------------------

-
> > "gimp" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> i was given the formula to use in cell A1 if cell b1 = x to make A1
> >> either be blank if it said something other than x, or if it said x it
> >> would generate an (*). now is there a formula that can be used in the
> >> same senario if B1 had a series of possible values to generate a (*)
> >> in cell A1?
> >>
> >> thanks again

>
> --
> Thanks in advance for your feedback.
>
> Ciao
>
> Franz Verga from Italy
>
>



 
Reply With Quote
 
=?Utf-8?B?TWF4?=
Guest
Posts: n/a
 
      27th Jun 2006
Just another play to try ..

Assume all the 1000+ possible values are listed in say, Sheet2's col A

Then in Sheet1,
Put in A1:
=IF(ISNUMBER(MATCH(B1,Sheet2!A:A,0)),"*","")
Copy A1 down to return correspondingly
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"gimp" wrote:
> .. i probably have 1000 or more possibilities.


> .. i was given the formula to use in cell A1 if cell b1 = x to make A1
> either be blank if it said something other than x, or if it said x it
> would generate an (*). now is there a formula that can be used in the
> same senario if B1 had a series of possible values to generate a (*) in
> cell A1?

 
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
Complex Question =?Utf-8?B?Q2hleQ==?= Microsoft Access 1 27th Jan 2007 06:20 AM
Complex VBA question jfhawk06 Microsoft Excel Programming 0 14th Mar 2006 08:18 PM
Re: Complex VBA question jfhawk06 Microsoft Excel Programming 0 14th Mar 2006 08:17 PM
complex question Lauren B Microsoft Access Form Coding 1 22nd Mar 2005 03:35 PM
Re: Is this too complex question ! Bassam Microsoft Dot NET Framework 0 7th Aug 2003 01:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 AM.