Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Drew
 
Posts: n/a
Default RETURNING A SPECIFIC VALUE FROM A LOOKUP FORMULA

I understand how to use the vlookup/hlookup function in Excel, however the
problem that I am encountering is that when I do a vlookup it returns the
result for the first occurence of the value being looked up. Is there
another formula that will return all of the results for that lookup value, or
at least one that will return a specific result like the max/min for a given
value.

Thanks!
Drew
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default RETURNING A SPECIFIC VALUE FROM A LOOKUP FORMULA

There are other functions that may work the way you want:

=sumif(C1:C10,"a",D1:D10)

=max(if(c1:c10="a",d1:d10))
=min(if(c1:c10="a",d1:d10))

The last two are array formulas. Hit ctrl-shift-enter instead of enter. If you
do it correctly, excel will wrap curly brackets {} around your formula. (don't
type them yourself.)

Adjust the range to match--but you can't use the whole column.



Drew wrote:

I understand how to use the vlookup/hlookup function in Excel, however the
problem that I am encountering is that when I do a vlookup it returns the
result for the first occurence of the value being looked up. Is there
another formula that will return all of the results for that lookup value, or
at least one that will return a specific result like the max/min for a given
value.

Thanks!
Drew


--

Dave Peterson
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
Returning a cell's formula in a different cell T.R. Young Excel Worksheet Functions 2 February 16th 06 06:41 PM
Formula returning #N/A Error---why??? Excel User Excel Worksheet Functions 4 September 26th 05 02:25 PM
Lookup Formula - but have a formula if it can't find/match a value Stephen Excel Worksheet Functions 11 June 14th 05 05:32 AM
Lookup Function - Specific Values Steve Elliott Excel Worksheet Functions 6 April 9th 05 07:15 PM
Problem with VBA returning the contents of a long formula. [email protected] Excel Discussion (Misc queries) 2 February 23rd 05 12:14 AM


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