Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Nested VLOOKUP in IF statement

Hi all,

This is my very simple nested IF statement.

=IF(H5=$C$2,"=VLOOKUP(H4,$B$5:$C$11,2,FALSE)",0)

Basically, I want the VLOOPKUP function to "work" when the value is
false,
instead, it prints the actual formula in the cell as a value.

Any clues here?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Nested VLOOKUP in IF statement

Lose the quotes

=IF(H5=$C$2,VLOOKUP(H4,$B$5:$C$11,2,FALSE),0)

Mike

" wrote:

Hi all,

This is my very simple nested IF statement.

=IF(H5=$C$2,"=VLOOKUP(H4,$B$5:$C$11,2,FALSE)",0)

Basically, I want the VLOOPKUP function to "work" when the value is
false,
instead, it prints the actual formula in the cell as a value.

Any clues here?

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Nested VLOOKUP in IF statement

remove the "=" before the function vlookup.

When there is a function inside the other function you should not use
= sing.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Nested VLOOKUP in IF statement

try this

=IF(H5=$C$2,0,VLOOKUP(H4,$B$5:$C$11,2,FALSE))

Anything between quotes is treated as a text string, so it prints the
formula instead of evaluating it. Also the VLookup was in the True argument
of the IF statement.

Mike F
wrote in message
...
Hi all,

This is my very simple nested IF statement.

=IF(H5=$C$2,"=VLOOKUP(H4,$B$5:$C$11,2,FALSE)",0)

Basically, I want the VLOOPKUP function to "work" when the value is
false,
instead, it prints the actual formula in the cell as a value.

Any clues here?

Thanks 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
Nested hlookup/vlookup (possibly just an if statement though?!?) mike_vr Excel Discussion (Misc queries) 1 August 4th 09 07:47 PM
Nested if statement and vlookup problem Steve Excel Programming 4 June 28th 07 10:24 PM
Nested IF/AND Statement buffgirl71 Excel Discussion (Misc queries) 5 October 10th 06 01:07 AM
Nested IF statement with VLOOKUP James Hamilton Excel Discussion (Misc queries) 1 August 16th 06 07:46 AM
Retry: VLOOKUP nested in IF Statement Michele Excel Worksheet Functions 3 December 6th 05 08:15 PM


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