#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Vlookup !

Hello All,
I am looking some following solution :

Sheet1 Table :
Col_A (Date) Col_B (Name) Col_C (Amt)
01-Jan-2009 Japan 1500
02-Jan-2009 Singapore 2000
05-Jan-2009 Singapore 1700
06-Jan-2009 Japan 1000
10-Jan-2009 Korea 1500

Now I want get in Sheet2 just last date & Pmt Amt like as under :
Japan 06-Jan-2009 1000
Singapore 05-Jan-2009 1700

Is it possible ?

Thanks in advance.




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Vlookup !

Assuming you have the data in Sheet1 starting from row1 to row10
In sheet2
A1 = Japan (or any other query text)
B1 =SUMPRODUCT(MAX((Sheet1!$B$1:$B$10=A1)*(Sheet1!$A$ 1:$A$10)))
C1 =
SUMPRODUCT(--(Sheet1!$A$1:$A$10=B1),--(Sheet1!$B$1:$B$10=A1),--(Sheet1!$C$1:$C$10))

Copy the formula in one line...and copy it down..

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


"Tufail" wrote:

Hello All,
I am looking some following solution :

Sheet1 Table :
Col_A (Date) Col_B (Name) Col_C (Amt)
01-Jan-2009 Japan 1500
02-Jan-2009 Singapore 2000
05-Jan-2009 Singapore 1700
06-Jan-2009 Japan 1000
10-Jan-2009 Korea 1500

Now I want get in Sheet2 just last date & Pmt Amt like as under :
Japan 06-Jan-2009 1000
Singapore 05-Jan-2009 1700

Is it possible ?

Thanks in advance.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Vlookup !

Also format Sheet2 date field B1,b2...to date format
--
If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Assuming you have the data in Sheet1 starting from row1 to row10
In sheet2
A1 = Japan (or any other query text)
B1 =SUMPRODUCT(MAX((Sheet1!$B$1:$B$10=A1)*(Sheet1!$A$ 1:$A$10)))
C1 =
SUMPRODUCT(--(Sheet1!$A$1:$A$10=B1),--(Sheet1!$B$1:$B$10=A1),--(Sheet1!$C$1:$C$10))

Copy the formula in one line...and copy it down..

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


"Tufail" wrote:

Hello All,
I am looking some following solution :

Sheet1 Table :
Col_A (Date) Col_B (Name) Col_C (Amt)
01-Jan-2009 Japan 1500
02-Jan-2009 Singapore 2000
05-Jan-2009 Singapore 1700
06-Jan-2009 Japan 1000
10-Jan-2009 Korea 1500

Now I want get in Sheet2 just last date & Pmt Amt like as under :
Japan 06-Jan-2009 1000
Singapore 05-Jan-2009 1700

Is it possible ?

Thanks in advance.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Vlookup !

thank you very much and so kind of you always :)

"Jacob Skaria" wrote:

Also format Sheet2 date field B1,b2...to date format
--
If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Assuming you have the data in Sheet1 starting from row1 to row10
In sheet2
A1 = Japan (or any other query text)
B1 =SUMPRODUCT(MAX((Sheet1!$B$1:$B$10=A1)*(Sheet1!$A$ 1:$A$10)))
C1 =
SUMPRODUCT(--(Sheet1!$A$1:$A$10=B1),--(Sheet1!$B$1:$B$10=A1),--(Sheet1!$C$1:$C$10))

Copy the formula in one line...and copy it down..

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


"Tufail" wrote:

Hello All,
I am looking some following solution :

Sheet1 Table :
Col_A (Date) Col_B (Name) Col_C (Amt)
01-Jan-2009 Japan 1500
02-Jan-2009 Singapore 2000
05-Jan-2009 Singapore 1700
06-Jan-2009 Japan 1000
10-Jan-2009 Korea 1500

Now I want get in Sheet2 just last date & Pmt Amt like as under :
Japan 06-Jan-2009 1000
Singapore 05-Jan-2009 1700

Is it possible ?

Thanks in advance.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Vlookup !

Try this:

In sheet 2
A2: holds criteria

Date
B2: =LOOKUP(2,1/(Name=A2),Date)

Amount
C2: =LOOKUP(2,1/(Name=A2),Amount)




"Tufail" wrote:

Hello All,
I am looking some following solution :

Sheet1 Table :
Col_A (Date) Col_B (Name) Col_C (Amt)
01-Jan-2009 Japan 1500
02-Jan-2009 Singapore 2000
05-Jan-2009 Singapore 1700
06-Jan-2009 Japan 1000
10-Jan-2009 Korea 1500

Now I want get in Sheet2 just last date & Pmt Amt like as under :
Japan 06-Jan-2009 1000
Singapore 05-Jan-2009 1700

Is it possible ?

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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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