Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Index formula with IF condition

I have got two matrixes that I need to use the index formula for, e.g if
criteria is X then use index formula on matrix one, if criteria is Y, then
use index formula on second matrix. I have tested them as stand alone
formula's and they work, but when I incorporate them if I type 6 in my
criteria, I get #VALUE and if i type 8 in my criteria, I get FALSE.

Where am I going wrong? Below is my formula:

=IF(E31<=7,INDEX($BD$21:$BJ$26,MATCH($N31,$BD$21:$ BD$26),MATCH($AU31,$BD$21:$BJ$21),IF(E317,INDEX($ BK$21:$BQ$26,MATCH($N31,$BK$21:$BK$26),MATCH($AU31 ,$BK$21:$BQ$21)))))

thanks for any help in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Index formula with IF condition

Not sure, but maybe you should be using exact matches,
eg: MATCH(x,y:y,0)
ie with the zero param specified

You could also reconfig the IF simpler, indicatively like this:
=IF(E31<=7,index_match1,index_match2)
(The FALSE bit would probably go away if you did the above)
--
Max
Singapore
---
"Afsha" wrote:
I have got two matrixes that I need to use the index formula for, e.g if
criteria is X then use index formula on matrix one, if criteria is Y, then
use index formula on second matrix. I have tested them as stand alone
formula's and they work, but when I incorporate them if I type 6 in my
criteria, I get #VALUE and if i type 8 in my criteria, I get FALSE.

Where am I going wrong? Below is my formula:

=IF(E31<=7,INDEX($BD$21:$BJ$26,MATCH($N31,$BD$21:$ BD$26),MATCH($AU31,$BD$21:$BJ$21),IF(E317,INDEX($ BK$21:$BQ$26,MATCH($N31,$BK$21:$BK$26),MATCH($AU31 ,$BK$21:$BQ$21)))))

thanks for any help 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
Formula until condition met GBExcel Excel Worksheet Functions 0 October 14th 09 01:52 AM
index-match and another condition need a help[_2_] Excel Discussion (Misc queries) 6 July 23rd 08 11:22 PM
Please Help Again-Condition Formula Kareinia Excel Worksheet Functions 5 March 6th 08 08:06 PM
MORE THAN ONE CONDITION IN A FORMULA CLM Excel Worksheet Functions 5 January 18th 07 01:21 PM
If formula and #N/A as a condition EstherJ Excel Discussion (Misc queries) 2 August 23rd 05 02:52 PM


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