A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can I use an IS function with Vlookup



 
 
Thread Tools Display Modes
  #1  
Old August 9th, 2008, 02:08 AM posted to microsoft.public.excel.worksheet.functions
JJ in LA
external usenet poster
 
Posts: 1
Default Can I use an IS function with Vlookup

I am trying to write a formula that says If the Vlookup returns NA, then plus
a particular cell, otherwise return the vlookup value. Can this be done.
I've writen it as IF(isna(vlookup,etc.),+a1,(vlookup,etc)

Any Ideas as to why it dosen't work.
  #2  
Old August 9th, 2008, 02:34 AM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Can I use an IS function with Vlookup

Remember the FALSE in VLOOKUP():

In A1 thru B3:

1 rover
2 queeny
3 mickey

and in C1:

2

Then =IF(ISNA(VLOOKUP(C1,A1:B3,2,FALSE)),A1,VLOOKUP(C1, A1:B3,2))
returns queeny, but put 22 in C1 and the same formula returns 1
--
Gary''s Student - gsnu200798


"JJ in LA" wrote:

I am trying to write a formula that says If the Vlookup returns NA, then plus
a particular cell, otherwise return the vlookup value. Can this be done.
I've writen it as IF(isna(vlookup,etc.),+a1,(vlookup,etc)

Any Ideas as to why it dosen't work.

  #3  
Old August 9th, 2008, 04:00 AM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Can I use an IS function with Vlookup

In both vlookup() terms, too!

Gary''s Student wrote:

Remember the FALSE in VLOOKUP():

In A1 thru B3:

1 rover
2 queeny
3 mickey

and in C1:

2

Then =IF(ISNA(VLOOKUP(C1,A1:B3,2,FALSE)),A1,VLOOKUP(C1, A1:B3,2))
returns queeny, but put 22 in C1 and the same formula returns 1
--
Gary''s Student - gsnu200798

"JJ in LA" wrote:

I am trying to write a formula that says If the Vlookup returns NA, then plus
a particular cell, otherwise return the vlookup value. Can this be done.
I've writen it as IF(isna(vlookup,etc.),+a1,(vlookup,etc)

Any Ideas as to why it dosen't work.


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:21 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.