#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DDD DDD is offline
external usenet poster
 
Posts: 24
Default If question

Cell S12 - =IF((A12)*(A12<""),VLOOKUP(A12,'Books Borrowed'!$A$5:$G$35,3),"")

Cell A12 contains a value & In cell S12 i get the answer #N/A (I was
expecting this answer, there is nothing wrong)


However, since Cell A12 is not in the table array (From above formula)
'Books Borrowed'!$A$5:$G$35 (This is where i got the #N/A from) i do not want
that text to actually appear(Want the cell to be blank). if that makes sense

How can i modify my formula to allow this to happen

I am not enitrely sure, but i think the vlookup section of the formula may
need the modifying
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default If question

Perhaps this in S12 might suffice:
=IF(A12="","",VLOOKUP(A12,'Books Borrowed'!$A$5:$G$35,3,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DDD DDD is offline
external usenet poster
 
Posts: 24
Default If question

Though, it did not make the message "#N/A" dissapear, you have been able to
shorten my formula,

thanks, last time i tried the same formula, it didnt work for some reason, &
after copying & pasting yours, it worked

"Max" wrote:

Perhaps this in S12 might suffice:
=IF(A12="","",VLOOKUP(A12,'Books Borrowed'!$A$5:$G$35,3,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default If question

Then you want this:

=IF(ISNA(VLOOKUP(A12,'Books Borrowed'!$A$5:$G$35,3,0)),"",VLOOKUP(A12,'Books
Borrowed'!$A$5:$G$35,3,0))

This is a very common structure when using Vlookup.

Regards,
Fred.

"DDD" wrote in message
...
Though, it did not make the message "#N/A" dissapear, you have been able
to
shorten my formula,

thanks, last time i tried the same formula, it didnt work for some reason,
&
after copying & pasting yours, it worked

"Max" wrote:

Perhaps this in S12 might suffice:
=IF(A12="","",VLOOKUP(A12,'Books Borrowed'!$A$5:$G$35,3,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default If question

If you have Excel 2007, you can use the more elegant

=IFERROR(VLOOKUP(A12,'Books Borrowed'!$A$5:$G$35,3,0),"")


--
__________________________________
HTH

Bob

"Fred Smith" wrote in message
...
Then you want this:

=IF(ISNA(VLOOKUP(A12,'Books
Borrowed'!$A$5:$G$35,3,0)),"",VLOOKUP(A12,'Books
Borrowed'!$A$5:$G$35,3,0))

This is a very common structure when using Vlookup.

Regards,
Fred.

"DDD" wrote in message
...
Though, it did not make the message "#N/A" dissapear, you have been able
to
shorten my formula,

thanks, last time i tried the same formula, it didnt work for some
reason, &
after copying & pasting yours, it worked

"Max" wrote:

Perhaps this in S12 might suffice:
=IF(A12="","",VLOOKUP(A12,'Books Borrowed'!$A$5:$G$35,3,0))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---




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
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
One question Omer Excel Discussion (Misc queries) 4 June 16th 07 01:58 PM
If-then-next question les8 Excel Discussion (Misc queries) 3 June 1st 07 05:21 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


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