#1   Report Post  
Girish Punjabi
 
Posts: n/a
Default Help-IF Function


Hi Everybody !

I have 2 worksheets in an excel file which are constructed in the
following way :
Worksheet1 has 2 columns , A& B
Worksheet2 has 2 columns , C& D
A new column E needs to be created in Worksheet2 in such a way that the
value of a cell (e.g E2)is determined in the following way :

Search column B in Worksheet1 for the value D2 in Worksheet2 and where
the value is found (for e.g B7) , then E2=A7. If there is no value ,
return "No Names Found" .

Can this be done within a formula .

All help will be greatly appreciated !

Thanks.
-Girish Punjabi


--
Girish Punjabi
------------------------------------------------------------------------
Girish Punjabi's Profile: http://www.excelforum.com/member.php...o&userid=16048
View this thread: http://www.excelforum.com/showthread...hreadid=275087

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(ISNUMBER(MATCH(D2,Sheet1!B:B,0)),INDEX(Sheet1! A:A,MATCH(D2,Sheet1!B:B,0)
),"No Names Found")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Girish Punjabi" wrote in
message ...

Hi Everybody !

I have 2 worksheets in an excel file which are constructed in the
following way :
Worksheet1 has 2 columns , A& B
Worksheet2 has 2 columns , C& D
A new column E needs to be created in Worksheet2 in such a way that the
value of a cell (e.g E2)is determined in the following way :

Search column B in Worksheet1 for the value D2 in Worksheet2 and where
the value is found (for e.g B7) , then E2=A7. If there is no value ,
return "No Names Found" .

Can this be done within a formula .

All help will be greatly appreciated !

Thanks.
-Girish Punjabi


--
Girish Punjabi
------------------------------------------------------------------------
Girish Punjabi's Profile:

http://www.excelforum.com/member.php...o&userid=16048
View this thread: http://www.excelforum.com/showthread...hreadid=275087



  #3   Report Post  
Domenic
 
Posts: n/a
Default


=IF(ISNA(MATCH(D2,Sheet1!$B$2:$B$100,0)),"No Names
Found",INDEX(Sheet1!$A$2:$A$100,MATCH(Sheet2!D2,Sh eet1!$B$2:$B$100,0)))

Adjust the range accordingly.

Hope this helps!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=275087

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
Averaging function Sarah Excel Discussion (Misc queries) 0 January 18th 05 04:09 PM
Function in XL or in VBA for XL that pulls numeric digits from a t Nate Oliver Excel Discussion (Misc queries) 0 December 14th 04 04:57 PM
Excel function help facilities RPS Excel Discussion (Misc queries) 1 December 8th 04 02:36 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
SUMIF(AND) FUNCTION Saariko Excel Worksheet Functions 9 October 28th 04 11:52 AM


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

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

About Us

"It's about Microsoft Excel"