Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
xcelion
 
Posts: n/a
Default Vlookup Formula Limit Error ? (Reposting)


Hi all,

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

IF($I$4INDEX(CategoryLookup!F:G,MATCH(VLOOKUP(IND IRECT(IF(ISBLANK($N$4),"$D$4","$N$4")),CategoryLoo kup!A:C,2,0),CategoryLookup!E:E,0),2),
"Above",IF($I$4<INDEX(CategoryLookup!F:G,MATCH(VLO OKUP(INDIRECT(IF(ISBLANK($N$4),"$D$4","$N$4")),Cat egoryLookup!A:C,2,0),CategoryLookup!E:E,0),1),
"Below",PERCENTRANK(INDIRECT(CONCATENATE("Category Lookup!F",MATCH(VLOOKUP(INDIRECT(IF(ISBLANK($N$4), "$D$4","$N$4")),CategoryLookup!A:C,2,0),CategoryLo okup!E:E,0),":","G",MATCH(VLOOKUP($D$4,CategoryLoo kup!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=393210

  #2   Report Post  
Andy Wiggins
 
Posts: n/a
Default

Put INDIRECT(IF(ISBLANK($N$4),"$D$4","$N$4")) into a separate cell then
refer to its result in your target formula.

Also, I don't think you need to use INDIRECT. Instead try
IF(ISBLANK($N$4),$D$4,$N$4)

You might also review your use of INDIRECT in the rest of the formula.

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"xcelion" wrote in
message ...

Hi all,

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


IF($I$4INDEX(CategoryLookup!F:G,MATCH(VLOOKUP(IND IRECT(IF(ISBLANK($N$4),"$D
$4","$N$4")),CategoryLookup!A:C,2,0),CategoryLooku p!E:E,0),2),

"Above",IF($I$4<INDEX(CategoryLookup!F:G,MATCH(VLO OKUP(INDIRECT(IF(ISBLANK($
N$4),"$D$4","$N$4")),CategoryLookup!A:C,2,0),Categ oryLookup!E:E,0),1),

"Below",PERCENTRANK(INDIRECT(CONCATENATE("Category Lookup!F",MATCH(VLOOKUP(IN
DIRECT(IF(ISBLANK($N$4),"$D$4","$N$4")),CategoryLo okup!A:C,2,0),CategoryLook
up!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=393210



  #3   Report Post  
Andy Wiggins
 
Posts: n/a
Default

Sorry, should also have said that it looks as though you've reached the
function nesting level limit. In Help look for "About nesting functions
within functions".

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"Andy Wiggins" wrote in message
...
Put INDIRECT(IF(ISBLANK($N$4),"$D$4","$N$4")) into a separate cell then
refer to its result in your target formula.

Also, I don't think you need to use INDIRECT. Instead try
IF(ISBLANK($N$4),$D$4,$N$4)

You might also review your use of INDIRECT in the rest of the formula.

--
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
-

"xcelion" wrote in
message ...

Hi all,

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



IF($I$4INDEX(CategoryLookup!F:G,MATCH(VLOOKUP(IND IRECT(IF(ISBLANK($N$4),"$D
$4","$N$4")),CategoryLookup!A:C,2,0),CategoryLooku p!E:E,0),2),


"Above",IF($I$4<INDEX(CategoryLookup!F:G,MATCH(VLO OKUP(INDIRECT(IF(ISBLANK($
N$4),"$D$4","$N$4")),CategoryLookup!A:C,2,0),Categ oryLookup!E:E,0),1),


"Below",PERCENTRANK(INDIRECT(CONCATENATE("Category Lookup!F",MATCH(VLOOKUP(IN

DIRECT(IF(ISBLANK($N$4),"$D$4","$N$4")),CategoryLo okup!A:C,2,0),CategoryLook

up!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=393210





  #4   Report Post  
xcelion
 
Posts: n/a
Default


Thanks Andy.Thanks for your help
]


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

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 formula to text carrera Excel Discussion (Misc queries) 1 July 18th 05 06:46 PM
Limit or Exclude cells in Average and Sum formula dagger Excel Worksheet Functions 3 July 7th 05 03:52 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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