Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default index match array function-returning only first match, need last.

I have what is, essentially, a real estate problem. I am trying to use a
function to find the previous owner for a given property. The formula that I
am using is below, but it returns the first owner for that property, not the
owner previous to the selected owner.
Owners are assigned unique numbers. I have found the first date that a
given owner owned a property, and I want to find who owned that property
before them. For the formula below, the following information is required
for it to make sense:

Sheet 1
Column R contains the name of the property-a unique letter and number code
assigned to each property.
Column S contains the date that the new owner moved in.

MIDDATE
Column G contains the owners' names-a unique number assigned to each
individual.
Column I contains the property names
Column J contains the dates (census dates and selling dates) that it was
owned by each owner.

Example: in Sheet1 the formula in V12 is
{=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MIDDATE!$I$ 2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12),0))}

I'm sure there's a simple solution, but I can't figure it out. I tried just
sorting the MIDDATE sheet by date descending instead of ascending, but it
didn't work. I'm not very experienced with Excel in general, and certainly
not with array functions. I hope I've included all the necessary information
here. Please ask if I can make it any easier for someone to help me, I've
been trying to do this for two days.
Thanks in advance



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default index match array function-returning only first match, need last.

Try

=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MAX((MIDDATE !$I$2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12))=M IDDATE!$J$2:$J$21624)*(MIDDATE!$I$2:$I$21624=R12), 0))

"Julie Olsen" wrote:

I have what is, essentially, a real estate problem. I am trying to use a
function to find the previous owner for a given property. The formula that I
am using is below, but it returns the first owner for that property, not the
owner previous to the selected owner.
Owners are assigned unique numbers. I have found the first date that a
given owner owned a property, and I want to find who owned that property
before them. For the formula below, the following information is required
for it to make sense:

Sheet 1
Column R contains the name of the property-a unique letter and number code
assigned to each property.
Column S contains the date that the new owner moved in.

MIDDATE
Column G contains the owners' names-a unique number assigned to each
individual.
Column I contains the property names
Column J contains the dates (census dates and selling dates) that it was
owned by each owner.

Example: in Sheet1 the formula in V12 is
{=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MIDDATE!$I$ 2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12),0))}

I'm sure there's a simple solution, but I can't figure it out. I tried just
sorting the MIDDATE sheet by date descending instead of ascending, but it
didn't work. I'm not very experienced with Excel in general, and certainly
not with array functions. I hope I've included all the necessary information
here. Please ask if I can make it any easier for someone to help me, I've
been trying to do this for two days.
Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default index match array function-returning only first match, need la

My apologies, that should be.....

=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MAX((MIDDATE !$I$2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12)*MI DDATE!$J$2:$J$21624)=MIDDATE!$J$2:$J$21624)*(MIDDA TE!$I$2:$I$21624=R12),0))

"daddylonglegs" wrote:

Try

=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MAX((MIDDATE !$I$2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12))=M IDDATE!$J$2:$J$21624)*(MIDDATE!$I$2:$I$21624=R12), 0))

"Julie Olsen" wrote:

I have what is, essentially, a real estate problem. I am trying to use a
function to find the previous owner for a given property. The formula that I
am using is below, but it returns the first owner for that property, not the
owner previous to the selected owner.
Owners are assigned unique numbers. I have found the first date that a
given owner owned a property, and I want to find who owned that property
before them. For the formula below, the following information is required
for it to make sense:

Sheet 1
Column R contains the name of the property-a unique letter and number code
assigned to each property.
Column S contains the date that the new owner moved in.

MIDDATE
Column G contains the owners' names-a unique number assigned to each
individual.
Column I contains the property names
Column J contains the dates (census dates and selling dates) that it was
owned by each owner.

Example: in Sheet1 the formula in V12 is
{=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MIDDATE!$I$ 2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12),0))}

I'm sure there's a simple solution, but I can't figure it out. I tried just
sorting the MIDDATE sheet by date descending instead of ascending, but it
didn't work. I'm not very experienced with Excel in general, and certainly
not with array functions. I hope I've included all the necessary information
here. Please ask if I can make it any easier for someone to help me, I've
been trying to do this for two days.
Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default index match array function-returning only first match, need la

Thank you very much, it worked beautifully. It took me a while to figure out
why, but I get it now. You just made my data analysis much more possible.

"daddylonglegs" wrote:

My apologies, that should be.....

=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MAX((MIDDATE !$I$2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12)*MI DDATE!$J$2:$J$21624)=MIDDATE!$J$2:$J$21624)*(MIDDA TE!$I$2:$I$21624=R12),0))

"daddylonglegs" wrote:

Try

=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MAX((MIDDATE !$I$2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12))=M IDDATE!$J$2:$J$21624)*(MIDDATE!$I$2:$I$21624=R12), 0))

"Julie Olsen" wrote:

I have what is, essentially, a real estate problem. I am trying to use a
function to find the previous owner for a given property. The formula that I
am using is below, but it returns the first owner for that property, not the
owner previous to the selected owner.
Owners are assigned unique numbers. I have found the first date that a
given owner owned a property, and I want to find who owned that property
before them. For the formula below, the following information is required
for it to make sense:

Sheet 1
Column R contains the name of the property-a unique letter and number code
assigned to each property.
Column S contains the date that the new owner moved in.

MIDDATE
Column G contains the owners' names-a unique number assigned to each
individual.
Column I contains the property names
Column J contains the dates (census dates and selling dates) that it was
owned by each owner.

Example: in Sheet1 the formula in V12 is
{=INDEX(MIDDATE!$G$2:$G$21624,MATCH(1,(MIDDATE!$I$ 2:$I$21624=R12)*(MIDDATE!$J$2:$J$21624<S12),0))}

I'm sure there's a simple solution, but I can't figure it out. I tried just
sorting the MIDDATE sheet by date descending instead of ascending, but it
didn't work. I'm not very experienced with Excel in general, and certainly
not with array functions. I hope I've included all the necessary information
here. Please ask if I can make it any easier for someone to help me, I've
been trying to do this for two days.
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? Match? Function to sort and return value fr diff column in Smurfette Excel Worksheet Functions 6 April 27th 06 05:46 PM
Match as well as does not match array function Vikram Dhemare Excel Discussion (Misc queries) 7 April 25th 06 09:15 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Match Index cjjoo Excel Worksheet Functions 3 October 25th 05 09:33 AM
Complicated Index Match Offset function Bob Excel Worksheet Functions 6 September 5th 05 03:01 PM


All times are GMT +1. The time now is 07:34 PM.

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"