Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default index, Match statement

Looking for some help, using this formula
=INDEX($N$2:$N$24,MATCH(1,INDEX(($L$2:$L$24=$L28)* ($O$2:$O$24=N$27),),))
(which I'm a novice at) I'm able to retrieve an answer if it is in the lookup
table but if the query does not it returns an error. How would I or is there
a way to do this and if the result does not find a value to either leave the
field blank or post a 0
Thanks,

Below is the reference sheet I was working with on this formula I'm matching
the date and workcell.

Lookup range:
Date Used Workcell
8/20/2009 1 6
8/20/2009 1 11
8/21/2009 1 5
8/21/2009 1 6
8/21/2009 1 11
8/24/2009 1 8
8/24/2009 1 11


Populating a table
5 6 8 11
8/19/2009 #N/A #N/A #N/A #N/A
8/20/2009 #N/A 1 #N/A 1
8/21/2009 1 1 #N/A 1
8/24/2009 #N/A #N/A 1 1

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default index, Match statement

Try this to return 0 instead of the error:

=LOOKUP(1E100,CHOOSE({1,2},0,INDEX($N$2:$N$24,MATC H(1,INDEX(($L$2:$L$24=$L28)*($O$2:$O$24=N$27),),)) ))

Note that this will only work if the return value is numeric.

--
Biff
Microsoft Excel MVP


"Bob" wrote in message
...
Looking for some help, using this formula
=INDEX($N$2:$N$24,MATCH(1,INDEX(($L$2:$L$24=$L28)* ($O$2:$O$24=N$27),),))
(which I'm a novice at) I'm able to retrieve an answer if it is in the
lookup
table but if the query does not it returns an error. How would I or is
there
a way to do this and if the result does not find a value to either leave
the
field blank or post a 0
Thanks,

Below is the reference sheet I was working with on this formula I'm
matching
the date and workcell.

Lookup range:
Date Used Workcell
8/20/2009 1 6
8/20/2009 1 11
8/21/2009 1 5
8/21/2009 1 6
8/21/2009 1 11
8/24/2009 1 8
8/24/2009 1 11


Populating a table
5 6 8 11
8/19/2009 #N/A #N/A #N/A #N/A
8/20/2009 #N/A 1 #N/A 1
8/21/2009 1 1 #N/A 1
8/24/2009 #N/A #N/A 1 1



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default index, Match statement

Hi,

Try this

=if(iserror(INDEX($N$2:$N$24,MATCH(1,INDEX(($L$2:$ L$24=$L28)*($O$2:$O$24=N$27),),))),"",INDEX($N$2:$ N$24,MATCH(1,INDEX(($L$2:$L$24=$L28)*($O$2:$O$24=N $27),),)))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Bob" wrote in message
...
Looking for some help, using this formula
=INDEX($N$2:$N$24,MATCH(1,INDEX(($L$2:$L$24=$L28)* ($O$2:$O$24=N$27),),))
(which I'm a novice at) I'm able to retrieve an answer if it is in the
lookup
table but if the query does not it returns an error. How would I or is
there
a way to do this and if the result does not find a value to either leave
the
field blank or post a 0
Thanks,

Below is the reference sheet I was working with on this formula I'm
matching
the date and workcell.

Lookup range:
Date Used Workcell
8/20/2009 1 6
8/20/2009 1 11
8/21/2009 1 5
8/21/2009 1 6
8/21/2009 1 11
8/24/2009 1 8
8/24/2009 1 11


Populating a table
5 6 8 11
8/19/2009 #N/A #N/A #N/A #N/A
8/20/2009 #N/A 1 #N/A 1
8/21/2009 1 1 #N/A 1
8/24/2009 #N/A #N/A 1 1

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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
Sum within an Index Match Statement Mike The Newb Excel Discussion (Misc queries) 4 January 8th 07 09:46 PM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


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