#1   Report Post  
xcelion
 
Posts: n/a
Default VLookup Help


Hi all,

Given below is a formula that we are trying to build,

IF($I$4INDEX(CategoryLookup!F:G,MATCH(VLOOKUP(*IN DIRECT(IF(ISBLANK($N$4),"$D$4","$N$4"))*,CategoryL ookup!A:C,2,0),CategoryLookup!E:E,0),2),"Above",IF ($I$4<INDEX(CategoryLookup!F:G,MATCH(VLOOKUP(*INDI RECT(IF(ISBLANK($N$4),"$D$4","$N$4"))*,CategoryLoo kup!A:C,2,0),CategoryLookup!E:E,0),1),"Below",PERC ENTRANK(INDIRECT(CONCATENATE("CategoryLookup!F",MA TCH(VLOOKUP(_*INDIRECT(IF(ISBLANK($N$4),\"$D$4\",\ "$N$4\"))*_,CategoryLookup!A:C,2,0),CategoryLookup !E:E,0),":","G",MATCH(VLOOKUP(*$D$4*,CategoryLooku p!A:C,2,0),CategoryLookup!E:E,0))),$I$4,2)))

We are trying to build a formula. As given above, the formula should
calculate the values for *$D$4* and *$N$4* depending on which field has
value (non blanks). So we tried to insert the condition
*INDIRECT(IF(ISBLANK($N$4),"$D$4","$N$4"))*. This worked fine for the
first and second replacement of *$D$4*. But when we tried to replace it
for the next occurance, as shown underlined, excel didn't allow to enter
the formula. Can anyone help on this ?

Is it some built in restriction on the usage of IF,VLOOKUP or INDIRECT
?
Thanks in advance
Xcelion


--
xcelion
------------------------------------------------------------------------
xcelion's Profile: http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=392493

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
Using Vlookup with validation Brian Excel Worksheet Functions 4 May 4th 23 03:43 AM
VLOOKUP Question. StephenAccountant Excel Discussion (Misc queries) 3 July 6th 05 10:28 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


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