Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 216
Default Need help with ISNA, INDEX, MATCH

I am trying to write a formula using the ISNA for finding the name to an ID.
In Sheet 1 cell E2, I tried the following
formula...=IF(D20,INDEX(Sheet2!A:F,MATCH('Sheet1' !D2,Sheet2!A:A,0),6),"")

On Sheet 2 the ID is in column A but I need the name of the ID that is found
in column F. If the ID in column D on Sheet1 is blank, I want the name on
Sheet 1 to be blank. If the ID in column D on SHeet 1 is not found in column
A on Sheet 2, then I want the result to be "Invalid ID"

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default Need help with ISNA, INDEX, MATCH

Begin where you left off:
=IF(D20,IF(ISNUMBER(MATCH(Sheet1!D2,Sheet2!A:A,0) ),INDEX(Sheet2!A:F,MATCH(Sheet1!D2,Sheet2!A:A,0),6 ),"Invalid
ID"),"")
Or
=IF(D20,IF(COUNTIF(Sheet2!A:A,Sheet1!D2),INDEX(Sh eet2!A:F,MATCH(Sheet1!D2,Sheet2!A:A,0),6),"Invalid
ID"),"")
But since this is on HSeet1, le us simplify to
=IF(D20,IF(COUNTIF(Sheet2!A:A,Sheet1!D2),INDEX(Sh eet2!A:F,MATCH(D2,Sheet2!A:A,0),6),"Invalid"),"")
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Nadine" wrote in message
...
I am trying to write a formula using the ISNA for finding the name to an
ID.
In Sheet 1 cell E2, I tried the following
formula...=IF(D20,INDEX(Sheet2!A:F,MATCH('Sheet1' !D2,Sheet2!A:A,0),6),"")

On Sheet 2 the ID is in column A but I need the name of the ID that is
found
in column F. If the ID in column D on Sheet1 is blank, I want the name on
Sheet 1 to be blank. If the ID in column D on SHeet 1 is not found in
column
A on Sheet 2, then I want the result to be "Invalid ID"

Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 216
Default Need help with ISNA, INDEX, MATCH

Thank you so much!!!!!

"Bernard Liengme" wrote:

Begin where you left off:
=IF(D20,IF(ISNUMBER(MATCH(Sheet1!D2,Sheet2!A:A,0) ),INDEX(Sheet2!A:F,MATCH(Sheet1!D2,Sheet2!A:A,0),6 ),"Invalid
ID"),"")
Or
=IF(D20,IF(COUNTIF(Sheet2!A:A,Sheet1!D2),INDEX(Sh eet2!A:F,MATCH(Sheet1!D2,Sheet2!A:A,0),6),"Invalid
ID"),"")
But since this is on HSeet1, le us simplify to
=IF(D20,IF(COUNTIF(Sheet2!A:A,Sheet1!D2),INDEX(Sh eet2!A:F,MATCH(D2,Sheet2!A:A,0),6),"Invalid"),"")
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Nadine" wrote in message
...
I am trying to write a formula using the ISNA for finding the name to an
ID.
In Sheet 1 cell E2, I tried the following
formula...=IF(D20,INDEX(Sheet2!A:F,MATCH('Sheet1' !D2,Sheet2!A:A,0),6),"")

On Sheet 2 the ID is in column A but I need the name of the ID that is
found
in column F. If the ID in column D on Sheet1 is blank, I want the name on
Sheet 1 to be blank. If the ID in column D on SHeet 1 is not found in
column
A on Sheet 2, then I want the result to be "Invalid ID"

Thank you.


.

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
ISNA with Index pgarcia Excel Discussion (Misc queries) 8 December 12th 08 10:03 PM
IF?ISNA?MATCH? Function? handyaccountant Excel Discussion (Misc queries) 2 October 2nd 08 06:33 PM
If isna match function??? handyaccountant Excel Discussion (Misc queries) 2 September 25th 08 07:16 PM
IsNA(match Sanz Excel Worksheet Functions 1 May 23rd 05 09:11 PM
IsNA(match Duke Carey Excel Worksheet Functions 0 May 23rd 05 06:10 PM


All times are GMT +1. The time now is 06:19 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"