Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 13
Default Lookup function to return highest value

On Sheet1, I have a number of categories all with running totals. On Sheet2 I have some of the same categories. I want to continue the running total on Sheet2, but need to know how to return the running total (largest value in each category) from Sheet1.

e.g.

Sheet 1
Column N Column AL
Apples ....1
Apples ....4
Apples ....6
Oranges ....2
Oranges ....4
Oranges ....9
...

Sheet 2
Column N Column AL (want)
Apples ....6
Apples
Apples
Apples
Oranges ....9
Oranges
Oranges

Thanks for any help!


BD
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by BDAvs View Post
On Sheet1, I have a number of categories all with running totals. On Sheet2 I have some of the same categories. I want to continue the running total on Sheet2, but need to know how to return the running total (largest value in each category) from Sheet1.

e.g.

Sheet 1
Column N Column AL
Apples ....1
Apples ....4
Apples ....6
Oranges ....2
Oranges ....4
Oranges ....9
...

Sheet 2
Column N Column AL (want)
Apples ....6
Apples
Apples
Apples
Oranges ....9
Oranges
Oranges

Thanks for any help!


BD
Have a look at the attached. Is this what you mean?

It's an "array formula" so you need to confirm them by pressing Ctrl, Shft and Enter rather than just Enter.
Attached Files
File Type: zip BDAvs Example.zip (6.2 KB, 95 views)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Lookup function to return highest value

Hi,

Am Thu, 6 Sep 2012 14:40:57 +0000 schrieb BDAvs:

Sheet 1
Column N Column AL
Apples 1
Apples 4
Apples 6
Oranges 2
Oranges 4
Oranges 9
..

Sheet 2
Column N Column AL (want)
Apples 6
Apples
Apples
Apples
Oranges 9
Oranges
Oranges


in Sheet2 AL2:
=MAX((Sheet1!$N$2:$N$100=N2)*Sheet1!$AL$2:$AL$100)
or
=MAX(IF(Sheet1!$N$2:$N$100=N2,Sheet1!$AL$2:$AL$100 ))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #4   Report Post  
Junior Member
 
Posts: 13
Default

Quote:
Originally Posted by Spencer101 View Post
Have a look at the attached. Is this what you mean?

It's an "array formula" so you need to confirm them by pressing Ctrl, Shft and Enter rather than just Enter.

That was helpful. Thanks for taking the time to look into this!!

BD
  #5   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by BDAvs View Post
That was helpful. Thanks for taking the time to look into this!!

BD
I presume that's a yes then? Problem solved? :)
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 function to return highest value BDAvs Excel Worksheet Functions 1 September 7th 12 12:48 AM
Function to return the highest combined value of ANY two values in a list? H3dgehog Excel Worksheet Functions 2 July 16th 12 11:36 AM
Return sum of values based on lookup-function Braute Excel Worksheet Functions 1 February 25th 09 09:21 AM
Lookup function - can it return the higher value? Xipha Excel Discussion (Misc queries) 1 April 3rd 08 07:59 PM
return range of data from lookup function Boom1 Excel Worksheet Functions 0 August 18th 06 05:13 PM


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