PC Review


Reply
Thread Tools Rate Thread

lookup returning true or false

 
 
mike_vr
Guest
Posts: n/a
 
      31st Jan 2008
Hi there

Been asked by a colleague if there's a function that is in essence a search
function that returns true or false. I'm sure there is one but for the life
of me I can't think what it is!!

Basically what they're trying to do is have 6 columns of copious amounts of
data, and then a 7th column with only a few bits of data, and in column 8
they would like a true or false depending on whether the data in column 7
appears anywhere in columns 1-6.

Sounds pretty simple but I just can't think how to do it right now, help!!!

Many thanks,

Mike
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      31st Jan 2008
=if(countif(a:f,g1)>0,true,false)


mike_vr wrote:
>
> Hi there
>
> Been asked by a colleague if there's a function that is in essence a search
> function that returns true or false. I'm sure there is one but for the life
> of me I can't think what it is!!
>
> Basically what they're trying to do is have 6 columns of copious amounts of
> data, and then a 7th column with only a few bits of data, and in column 8
> they would like a true or false depending on whether the data in column 7
> appears anywhere in columns 1-6.
>
> Sounds pretty simple but I just can't think how to do it right now, help!!!
>
> Many thanks,
>
> Mike


--

Dave Peterson
 
Reply With Quote
 
 
 
 
mike_vr
Guest
Posts: n/a
 
      31st Jan 2008
Hi Dave,

Thanks for that, works perfectly! Do you mind me asking how it works
perfectly though? Just confused by the >0 for the countif?

Thanks again

"Dave Peterson" wrote:

> =if(countif(a:f,g1)>0,true,false)
>
>
> mike_vr wrote:
> >
> > Hi there
> >
> > Been asked by a colleague if there's a function that is in essence a search
> > function that returns true or false. I'm sure there is one but for the life
> > of me I can't think what it is!!
> >
> > Basically what they're trying to do is have 6 columns of copious amounts of
> > data, and then a 7th column with only a few bits of data, and in column 8
> > they would like a true or false depending on whether the data in column 7
> > appears anywhere in columns 1-6.
> >
> > Sounds pretty simple but I just can't think how to do it right now, help!!!
> >
> > Many thanks,
> >
> > Mike

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      31st Jan 2008
=countif(a:f,g1)
will return the number of cells that match G1.

So if that count is greater than 0 (1 or 2 or 999999), then put True, otherwise
put False.

Debra Dalgleish has a lot of info about counting stuff including using
=countif() here:

http://contextures.com/xlFunctions04.html#CountIf


mike_vr wrote:
>
> Hi Dave,
>
> Thanks for that, works perfectly! Do you mind me asking how it works
> perfectly though? Just confused by the >0 for the countif?
>
> Thanks again
>
> "Dave Peterson" wrote:
>
> > =if(countif(a:f,g1)>0,true,false)
> >
> >
> > mike_vr wrote:
> > >
> > > Hi there
> > >
> > > Been asked by a colleague if there's a function that is in essence a search
> > > function that returns true or false. I'm sure there is one but for the life
> > > of me I can't think what it is!!
> > >
> > > Basically what they're trying to do is have 6 columns of copious amounts of
> > > data, and then a 7th column with only a few bits of data, and in column 8
> > > they would like a true or false depending on whether the data in column 7
> > > appears anywhere in columns 1-6.
> > >
> > > Sounds pretty simple but I just can't think how to do it right now, help!!!
> > >
> > > Many thanks,
> > >
> > > Mike

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
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
VBA always creates linked chart even when using PasteExcelTable False, False, False in Office 2007 Matt Simpson Microsoft Excel Programming 0 6th Aug 2007 08:11 PM
debug="false" in web.config and <%@ debug="true" ...%> in aspx file => true or false? André Microsoft ASP .NET 3 28th Aug 2006 01:02 PM
$C$1972,2,FALSE, $C$1972,3,FALSE is ok, But $C$1972,4,FALSE Give # =?Utf-8?B?U3RldmVk?= Microsoft Excel Worksheet Functions 6 3rd Jul 2006 01:49 AM
Reverse false and combine with true true value =?Utf-8?B?RW1taWU5OQ==?= Microsoft Excel Worksheet Functions 5 17th Aug 2005 04:38 PM
True Or False, no matter what... it still displays the false statement rocky640 Microsoft Excel Programming 2 13th May 2004 04:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:02 AM.