Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default MATCH, LOOKUP, or ???

I have a list of report numbers in C and a list of file paths which end with
"report number".doc in AA. A formula in AL returns the report number from
the file path. All columns in question are sorted ascending. Now I need to
compare the two lists - original no. (C) vs returned no. (AL) - to determine
which, if any, returned numbers are not included in the original numbers.
Foe example:

Col C Col AA
Col AL
A5-S000123 FilePath\A5-S000123.doc A5-S000123
A5-S000124 FilePath\A5-S000124.doc A5-S000124
A5-S000126 FilePath\A5-S000125.doc A5-S000125
A5-S000127 FilePath\A5-S000126.doc A5-S000126

I'm not sure if this should be a MATCH function, LOOKUP function, or
something else I'm unfamiliar with as yet. I thought of LOOKUP(AL2,
C2:C7000, AA2:AA7000), with the intent that, if AL2 is found within
C2:C7000, then I should get a return of the file path. But if I tried that
with "AL5" in my example above, that value IS found, but at C4, whih would
return the wrong file path.

Any and all suggestions are welcome.

Ed


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default MATCH, LOOKUP, or ???

If you just want to flag the ones that don't have a match, check out:

http://www.cpearson.com/excel/duplicat.htm

If you actually want to return the file path, since the value in
column AL is derived from column AA, it seems to me you could use
something like:

=IF(ISNA(MATCH(AL5,C:C,FALSE)),"",AA5)

or

=IF(COUNTIF(C:C,AL5),AA5,"")



In article ,
"Ed" wrote:

I have a list of report numbers in C and a list of file paths which end with
"report number".doc in AA. A formula in AL returns the report number from
the file path. All columns in question are sorted ascending. Now I need to
compare the two lists - original no. (C) vs returned no. (AL) - to determine
which, if any, returned numbers are not included in the original numbers.
Foe example:

Col C Col AA
Col AL
A5-S000123 FilePath\A5-S000123.doc A5-S000123
A5-S000124 FilePath\A5-S000124.doc A5-S000124
A5-S000126 FilePath\A5-S000125.doc A5-S000125
A5-S000127 FilePath\A5-S000126.doc A5-S000126

I'm not sure if this should be a MATCH function, LOOKUP function, or
something else I'm unfamiliar with as yet. I thought of LOOKUP(AL2,
C2:C7000, AA2:AA7000), with the intent that, if AL2 is found within
C2:C7000, then I should get a return of the file path. But if I tried that
with "AL5" in my example above, that value IS found, but at C4, whih would
return the wrong file path.

Any and all suggestions are welcome.

Ed


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default MATCH, LOOKUP, or ???

Thank you. A slight tweak to one of Mr. Pearson's formulas was just what I
needed.

Ed


"J.E. McGimpsey" wrote in message
...
If you just want to flag the ones that don't have a match, check out:

http://www.cpearson.com/excel/duplicat.htm

If you actually want to return the file path, since the value in
column AL is derived from column AA, it seems to me you could use
something like:

=IF(ISNA(MATCH(AL5,C:C,FALSE)),"",AA5)

or

=IF(COUNTIF(C:C,AL5),AA5,"")



In article ,
"Ed" wrote:

I have a list of report numbers in C and a list of file paths which end

with
"report number".doc in AA. A formula in AL returns the report number

from
the file path. All columns in question are sorted ascending. Now I

need to
compare the two lists - original no. (C) vs returned no. (AL) - to

determine
which, if any, returned numbers are not included in the original

numbers.
Foe example:

Col C Col AA
Col AL
A5-S000123 FilePath\A5-S000123.doc A5-S000123
A5-S000124 FilePath\A5-S000124.doc A5-S000124
A5-S000126 FilePath\A5-S000125.doc A5-S000125
A5-S000127 FilePath\A5-S000126.doc A5-S000126

I'm not sure if this should be a MATCH function, LOOKUP function, or
something else I'm unfamiliar with as yet. I thought of LOOKUP(AL2,
C2:C7000, AA2:AA7000), with the intent that, if AL2 is found within
C2:C7000, then I should get a return of the file path. But if I tried

that
with "AL5" in my example above, that value IS found, but at C4, whih

would
return the wrong file path.

Any and all suggestions are welcome.

Ed




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
lookup or match? KC Excel Discussion (Misc queries) 5 April 26th 10 05:56 PM
lookup and match genietrapped Excel Worksheet Functions 2 February 6th 10 01:39 AM
Lookup Formula: Return 1st match, then 2nd match, then 3rd match Scott Excel Discussion (Misc queries) 4 December 11th 09 05:50 AM
Match and Lookup Biocellguy Excel Worksheet Functions 1 July 6th 07 01:48 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM


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