Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Vlookup with if statement

I am getting #n/a with this formula
=IF(VLOOKUP(A2,downtime,6,FALSE)0,VLOOKUP(A2,down time,6,FALSE),24) where
downtime is a range and column 6 is the value I want returned if true if
false, I want 24 and all I get is #N/A

Can anyone please help

Thank you
--
Trish McConnell
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Vlookup with if statement

Building on the information HTC provided, you may try this to see when the
value in A2 is not contained in the first column of the lookup table (named
range 'downtime')

=IF(ISNA(VLOOKUP(A2,downtime,6,FALSE)),"not in
list",IF(VLOOKUP(A2,downtime,6,FALSE)0,VLOOKUP(A2 ,downtime,6,FALSE),24))

So the question becomes "what do you need to do when the value in A2 is not
one of the entries in column 1 of the downtime table?"

"HTC" wrote:

Typically, Excel returns an N/A on a VLOOKUP when it cannot find the value in
your A2 cell in the downtime chart. Is the value you are trying to lookup in
cell A2 contained within the first column of the downtime detail?

"Trishames" wrote:

I am getting #n/a with this formula
=IF(VLOOKUP(A2,downtime,6,FALSE)0,VLOOKUP(A2,down time,6,FALSE),24) where
downtime is a range and column 6 is the value I want returned if true if
false, I want 24 and all I get is #N/A

Can anyone please help

Thank you
--
Trish McConnell

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
If Statement with VLookup Shams Excel Worksheet Functions 3 October 16th 06 07:16 PM
Nested IF statement with VLOOKUP James Hamilton Excel Discussion (Misc queries) 1 August 16th 06 07:46 AM
Vlookup 'And' statement moglione1 Excel Discussion (Misc queries) 1 March 9th 06 04:02 PM
Vlookup or If statement Help JPriest Excel Worksheet Functions 7 June 28th 05 08:00 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


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