A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with a IF formula



 
 
Thread Tools Display Modes
  #1  
Old March 22nd, 2010, 06:43 PM posted to microsoft.public.excel.worksheet.functions
Pascale
external usenet poster
 
Posts: 86
Default Help with a IF formula

Hi,

I was wondering if it is possible to have if and research in the same formula?

I need to have a fomula that looks into a cell for a certain item described
in a list and if its not there to search into a second set of data . and if
its in either to right nothing for the moment, I may need to add more later.

Thank you for your help!
  #2  
Old March 22nd, 2010, 07:07 PM posted to microsoft.public.excel.worksheet.functions
Paul C
external usenet poster
 
Posts: 202
Default Help with a IF formula

You can nest your conditions lke this

IF(Test for first value, return answer, IF(check for second value,return
answer,0))

=IF(NOT(ISERROR(MATCH(A1,B1:B10,0))),"First One
Found",IF(NOT(ISERROR(MATCH(A1,C1:C10,0))),"Second One Found",0))

In this sample If A1 is found in B1:B10 the formula will yield "First One
Found", If A1 is not in B1:B10 then C1:C10 will be checked. If found in this
range "Second One Found" will be the result. If A1 is found in neither range
then 0 will result.

In the future it is helpful if you post a small sample of data for what you
are trying to do.

--
If this helps, please remember to click yes.


"Pascale" wrote:

Hi,

I was wondering if it is possible to have if and research in the same formula?

I need to have a fomula that looks into a cell for a certain item described
in a list and if its not there to search into a second set of data . and if
its in either to right nothing for the moment, I may need to add more later.

Thank you for your help!

  #3  
Old March 23rd, 2010, 02:21 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Help with a IF formula

IF(NOT(ISERROR(MATCH(A1,B1:B10,0)))

A few keystrokes shorter:

=IF(COUNT(MATCH(A1,B1:B10,0))

Or

=IF(ISNUMBER(MATCH(A1,B1:B10,0))

--
Biff
Microsoft Excel MVP


"Paul C" wrote in message
...
You can nest your conditions lke this

IF(Test for first value, return answer, IF(check for second value,return
answer,0))

=IF(NOT(ISERROR(MATCH(A1,B1:B10,0))),"First One
Found",IF(NOT(ISERROR(MATCH(A1,C1:C10,0))),"Second One Found",0))

In this sample If A1 is found in B1:B10 the formula will yield "First One
Found", If A1 is not in B1:B10 then C1:C10 will be checked. If found in
this
range "Second One Found" will be the result. If A1 is found in neither
range
then 0 will result.

In the future it is helpful if you post a small sample of data for what
you
are trying to do.

--
If this helps, please remember to click yes.


"Pascale" wrote:

Hi,

I was wondering if it is possible to have if and research in the same
formula?

I need to have a fomula that looks into a cell for a certain item
described
in a list and if its not there to search into a second set of data . and
if
its in either to right nothing for the moment, I may need to add more
later.

Thank you for your help!



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.