Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Need Help with Lookup Formula that Also Puts in Text Where Matchin

Hello,

I have two different spreadsheets. I'm trying to write a formula that says
if the ID in A1 of the first spreadsheet matches anywhwere in column AE in
the second spreadsheet, put in the text from column G of the second
spreadsheet. This is what I came up with, but it's not putting in the text
from column G of that particular row where there was a match:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,0))

Many thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Need Help with Lookup Formula that Also Puts in Text Where Matchin

You will need a MATCH within the INDEX part of the formula, like this:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,MATCH(A10&"_"&ROW(#R EF!),'[Query for
Analysis Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)))

BUT, you do have #REF in the ROW function, so you will need to correct that
in two places before this will work (presumably you deleted the row that it
referred to).

Hope this helps.

Pete


"Toria" wrote in message
...
Hello,

I have two different spreadsheets. I'm trying to write a formula that
says
if the ID in A1 of the first spreadsheet matches anywhwere in column AE in
the second spreadsheet, put in the text from column G of the second
spreadsheet. This is what I came up with, but it's not putting in the
text
from column G of that particular row where there was a match:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for
Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,0))

Many thanks in advance!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Need Help with Lookup Formula that Also Puts in Text Where Mat

This is where I get confused. I'm not sure where or why ROW comes in. The
match could be on any row. Where the match is, that is the row that pulls
from column G on spreadsheet 2 (Query for Analysis Decks). Thank you. I
think I'm very close!

"Pete_UK" wrote:

You will need a MATCH within the INDEX part of the formula, like this:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,MATCH(A10&"_"&ROW(#R EF!),'[Query for
Analysis Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)))

BUT, you do have #REF in the ROW function, so you will need to correct that
in two places before this will work (presumably you deleted the row that it
referred to).

Hope this helps.

Pete


"Toria" wrote in message
...
Hello,

I have two different spreadsheets. I'm trying to write a formula that
says
if the ID in A1 of the first spreadsheet matches anywhwere in column AE in
the second spreadsheet, put in the text from column G of the second
spreadsheet. This is what I came up with, but it's not putting in the
text
from column G of that particular row where there was a match:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for
Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,0))

Many thanks in advance!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Need Help with Lookup Formula that Also Puts in Text Where Mat

You are trying to match using A10&"_"&ROW(something) with column AE. ROW(x)
can only return numbers like 1, 2, 3 etc, so if A10 contains, say, abc, then
you are looking for abc_1, or abc_2, or abc_3 etc.

Without more knowledge of what you have in that other file, I can't give you
a more-definitive answer. Where did you get that formula from?

Pete

"Toria" wrote in message
...
This is where I get confused. I'm not sure where or why ROW comes in.
The
match could be on any row. Where the match is, that is the row that pulls
from column G on spreadsheet 2 (Query for Analysis Decks). Thank you. I
think I'm very close!

"Pete_UK" wrote:

You will need a MATCH within the INDEX part of the formula, like this:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for
Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,MATCH(A10&"_"&ROW(#R EF!),'[Query
for
Analysis Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)))

BUT, you do have #REF in the ROW function, so you will need to correct
that
in two places before this will work (presumably you deleted the row that
it
referred to).

Hope this helps.

Pete


"Toria" wrote in message
...
Hello,

I have two different spreadsheets. I'm trying to write a formula that
says
if the ID in A1 of the first spreadsheet matches anywhwere in column AE
in
the second spreadsheet, put in the text from column G of the second
spreadsheet. This is what I came up with, but it's not putting in the
text
from column G of that particular row where there was a match:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for
Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,0))

Many thanks in advance!






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Need Help with Lookup Formula that Also Puts in Text Where Matchin

Hi Toria,

Let me know if this works for you.

=IF(ISNA(MATCH(A1,Query_for_Analysis_Decks!AE:AE,0 ))=TRUE,"",INDIRECT("Query_for_Analysis_Decks!G"&M ATCH(A1,Query_for_Analysis_Decks!AE:AE,0)))

Thanks,
Peggy

"Toria" wrote:

Hello,

I have two different spreadsheets. I'm trying to write a formula that says
if the ID in A1 of the first spreadsheet matches anywhwere in column AE in
the second spreadsheet, put in the text from column G of the second
spreadsheet. This is what I came up with, but it's not putting in the text
from column G of that particular row where there was a match:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,0))

Many thanks in advance!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Need Help with Lookup Formula that Also Puts in Text Where Mat

Hi Pete,

I don't think I need to use the ROW function at all. I got the formula just
from looking around on this message board. Every time I took ROW out, I
would get a blank response. I guess I got desperate. I just can't figure out
how to perform this function.

"Pete_UK" wrote:

You are trying to match using A10&"_"&ROW(something) with column AE. ROW(x)
can only return numbers like 1, 2, 3 etc, so if A10 contains, say, abc, then
you are looking for abc_1, or abc_2, or abc_3 etc.

Without more knowledge of what you have in that other file, I can't give you
a more-definitive answer. Where did you get that formula from?

Pete

"Toria" wrote in message
...
This is where I get confused. I'm not sure where or why ROW comes in.
The
match could be on any row. Where the match is, that is the row that pulls
from column G on spreadsheet 2 (Query for Analysis Decks). Thank you. I
think I'm very close!

"Pete_UK" wrote:

You will need a MATCH within the INDEX part of the formula, like this:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for
Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,MATCH(A10&"_"&ROW(#R EF!),'[Query
for
Analysis Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)))

BUT, you do have #REF in the ROW function, so you will need to correct
that
in two places before this will work (presumably you deleted the row that
it
referred to).

Hope this helps.

Pete


"Toria" wrote in message
...
Hello,

I have two different spreadsheets. I'm trying to write a formula that
says
if the ID in A1 of the first spreadsheet matches anywhwere in column AE
in
the second spreadsheet, put in the text from column G of the second
spreadsheet. This is what I came up with, but it's not putting in the
text
from column G of that particular row where there was a match:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for
Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,0))

Many thanks in advance!






  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Need Help with Lookup Formula that Also Puts in Text Where Mat

Peggy,

I get an error. Sometimes REF and sometimes NAME. I think the problem may
be with this part of the formula: "Query_for_Analysis_Decks!G". This is just
a guess, but if you can help, I would really appreciate it!!

"pshepard" wrote:

Hi Toria,

Let me know if this works for you.

=IF(ISNA(MATCH(A1,Query_for_Analysis_Decks!AE:AE,0 ))=TRUE,"",INDIRECT("Query_for_Analysis_Decks!G"&M ATCH(A1,Query_for_Analysis_Decks!AE:AE,0)))

Thanks,
Peggy

"Toria" wrote:

Hello,

I have two different spreadsheets. I'm trying to write a formula that says
if the ID in A1 of the first spreadsheet matches anywhwere in column AE in
the second spreadsheet, put in the text from column G of the second
spreadsheet. This is what I came up with, but it's not putting in the text
from column G of that particular row where there was a match:

=IF(ISNA(MATCH(A10&"_"&ROW(#REF!),'[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!AE:AE,0)),"",INDEX('[Query for Analysis
Decks.xls]Query_for_Analysis_Decks'!G:G,0))

Many thanks in advance!

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
index / lookup / match / text formula Toppers Excel Discussion (Misc queries) 0 March 28th 07 12:20 AM
When copying formula down it puts in a day of the week Darts via OfficeKB.com Excel Discussion (Misc queries) 3 January 20th 07 07:51 AM
sumif function with partially matchin sentences Vikram Dhemare Excel Discussion (Misc queries) 2 April 25th 06 07:28 AM
Macro puts #REF in VLOOKUP formula DJH224 Excel Worksheet Functions 1 January 27th 06 05:37 PM
create reference formula that looks through all sheets for matchin BMW Excel Worksheet Functions 2 November 4th 05 04:20 PM


All times are GMT +1. The time now is 01:30 PM.

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

About Us

"It's about Microsoft Excel"