ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   if function help (https://www.excelbanter.com/excel-discussion-misc-queries/105042-if-function-help.html)

scott

if function help
 
I want to perform a vlookup within an if function.

If there is a number in A:A, then i want to perform a vlookup. However, I do
not know exactly what number will be in A:A.

Is there a way that I could set up an if statement, so that if any number
was in A:A, it would be true? Then I would be able to perform a vlookup for
that given number.

Hope I was clear.

Thanks for your help!

Scott W

Dave F

if function help
 
One way would be:

=IF(COUNTIF(A1:A10)0,VLOOKUP(Your criteria),"")

assuming the range in question is A1:A10.

"scott" wrote:

I want to perform a vlookup within an if function.

If there is a number in A:A, then i want to perform a vlookup. However, I do
not know exactly what number will be in A:A.

Is there a way that I could set up an if statement, so that if any number
was in A:A, it would be true? Then I would be able to perform a vlookup for
that given number.

Hope I was clear.

Thanks for your help!

Scott W


tim m

if function help
 
=IF(ISNUMBER(A1),{Put your Vlookup part here},{put whatever you want to
happen if not a number here})

"scott" wrote:

I want to perform a vlookup within an if function.

If there is a number in A:A, then i want to perform a vlookup. However, I do
not know exactly what number will be in A:A.

Is there a way that I could set up an if statement, so that if any number
was in A:A, it would be true? Then I would be able to perform a vlookup for
that given number.

Hope I was clear.

Thanks for your help!

Scott W


scott

if function help
 
Great! Thanks so much for the quick response!

Cheers!

"scott" wrote:

I want to perform a vlookup within an if function.

If there is a number in A:A, then i want to perform a vlookup. However, I do
not know exactly what number will be in A:A.

Is there a way that I could set up an if statement, so that if any number
was in A:A, it would be true? Then I would be able to perform a vlookup for
that given number.

Hope I was clear.

Thanks for your help!

Scott W



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com