Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default index match issue

ok here is my formula:

=INDEX('Performance Summary'!D4:H4,MATCH(MIN('Performance
Summary'!D24:H24),'Performance Summary'!D24:H24,0))

Basically the data in cells D4:H4 are years like 2008, 2007 etc.

They are the values I need returned.

However - in my formula with the MIN section - I only want to include those
that are greater then 0.

So I need to have cells D24:H24 in there but if say H24 is zero then I don't
want it to include that.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default index match issue

Replace with this, array-enter by pressing CTRL+SHIFT+ENTER:
=INDEX('Performance Summary'!D4:H4,MATCH(MIN(IF('Performance
Summary'!D24:H240,'Performance Summary'!D24:H24)),IF('Performance
Summary'!D24:H240,'Performance Summary'!D24:H24),0))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"StephenAccountant" wrote:
ok here is my formula:

=INDEX('Performance Summary'!D4:H4,MATCH(MIN('Performance
Summary'!D24:H24),'Performance Summary'!D24:H24,0))

Basically the data in cells D4:H4 are years like 2008, 2007 etc.

They are the values I need returned.

However - in my formula with the MIN section - I only want to include those
that are greater then 0.

So I need to have cells D24:H24 in there but if say H24 is zero then I don't
want it to include that.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default index match issue

Try this:

Assuming all values are positive.

=INDEX(D4:H4,MATCH(SMALL(D24:H24,COUNTIF(D24:H24,0 )+1),D24:H24,0))

If there are multiple instances of the min the formula will "find" the first
instance from left to right.

If all the values are 0s or there are no values then the formula will return
an error. You can trap that error and return a blank:

=IF(SUM(D24:H24),INDEX(D4:H4,MATCH(SMALL(D24:H24,C OUNTIF(D24:H24,0)+1),D24:H24,0)),"")

--
Biff
Microsoft Excel MVP


"StephenAccountant" wrote in
message ...
ok here is my formula:

=INDEX('Performance Summary'!D4:H4,MATCH(MIN('Performance
Summary'!D24:H24),'Performance Summary'!D24:H24,0))

Basically the data in cells D4:H4 are years like 2008, 2007 etc.

They are the values I need returned.

However - in my formula with the MIN section - I only want to include
those
that are greater then 0.

So I need to have cells D24:H24 in there but if say H24 is zero then I
don't
want it to include that.



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/Index&Match data format issue [email protected] Excel Worksheet Functions 3 April 4th 07 07:31 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM
Help with complex index array issue kkendall Excel Worksheet Functions 4 August 5th 05 10:15 PM


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