Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default lookup if? sumproduct if? index/match?

Hi all:

I've a fairly lengthy set of data, but I'm primarily concerned with 3
columns. For my example, let's say that

ID number is in column A, Date of action is column B, Action type is column C.

On another sheet I would like to look up whatever action was the most recent
for the respective ID number. I'm not certain how to do this without doing
some sort of sort then remove duplicate to create another list that would
only have the most recent action. This seems a shoddy way of going about it.

Is there a way to insert a MAX function in to the date criteria for a lookup
or sumproduct function or index?

Many thanks in advance.

Brad
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default lookup if? sumproduct if? index/match?

Please note that this is an array formula. You create array formulas in the
same way that you create other formulas, except you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"

=INDEX(Sheet1!$C$2:$C$100,MATCH(1,(Sheet1!$A$2:$A$ 100=A1)*
(Sheet1!$B$2:$B$100=SUMPRODUCT(MAX((Sheet1!A2:A100 =A1)*
Sheet1!B2:B100))),0))

If this post helps click Yes
---------------
Jacob Skaria


"Brad Autry" wrote:

Hi all:

I've a fairly lengthy set of data, but I'm primarily concerned with 3
columns. For my example, let's say that

ID number is in column A, Date of action is column B, Action type is column C.

On another sheet I would like to look up whatever action was the most recent
for the respective ID number. I'm not certain how to do this without doing
some sort of sort then remove duplicate to create another list that would
only have the most recent action. This seems a shoddy way of going about it.

Is there a way to insert a MAX function in to the date criteria for a lookup
or sumproduct function or index?

Many thanks in advance.

Brad

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default lookup if? sumproduct if? index/match?

Assume that in Sheet2 you enter an ID number in A1, then you can put
this array* formula in B1:

=MAX(IF(Sheet1!A1:A5000=A1,Sheet1!B1:B5000))

and this will return the most recent date for that ID number. Format
the cell as a date, otherwise it will show as a number like 39923.
I've assumed you have 5000 rows of data in Sheet1 - adjust as
necessary to cover your actual data.

* An array formula must be committed using the key combination of Ctrl-
Shift-Enter (CSE) rather than the usual <enter. If you do this
correctly then Excel will wrap curly braces { } around the formula
when viewed in the formula bar - do not type these yourself. If you
subsequently amend the formula you will need to use CSE again.

Is this what you wanted? I'm not sure what the 3rd column is about.

Hope this helps.

Pete

On Oct 16, 3:45*pm, Brad Autry
wrote:
Hi all:

I've a fairly lengthy set of data, but I'm primarily concerned with 3
columns. *For my example, let's say that

ID number is in column A, Date of action is column B, Action type is column C.

On another sheet I would like to look up whatever action was the most recent
for the respective ID number. *I'm not certain how to do this without doing
some sort of sort then remove duplicate to create another list that would
only have the most recent action. *This seems a shoddy way of going about it.

Is there a way to insert a MAX function in to the date criteria for a lookup
or sumproduct function or index?

Many thanks in advance.

Brad


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 within sumproduct Bony Pony[_2_] Excel Discussion (Misc queries) 2 February 11th 09 12:11 PM
Combination...SumProduct, Index, Match? Monte Excel Worksheet Functions 4 July 16th 08 08:07 AM
Help: Vlookup, Index, Match, or Sumproduct? Phrank Excel Worksheet Functions 3 February 14th 07 06:43 PM
maybe lookup/index/match/sumproduct been dribbled to 2007 Excel Discussion (Misc queries) 7 January 2nd 07 07:00 PM
Combine index match and sumproduct Esrei Excel Discussion (Misc queries) 2 July 8th 06 05:22 PM


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