ExcelBanter

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

jeremy via OfficeKB.com

IF statment/function
 
I have a row ow project numbers, I want to assign those over a value of
4000 a function VLOOKUP(B6,Sheet1!A1:B262,2,FALSE) and all the prject
numbers that are not over 4000, assign the letter "S". Any help?

This is what I have....

=IF(B64000, VLOOKUP(B6,Sheet1!A1:B262,2,FALSE), "S")

Thanks...
Jeremy

--
Message posted via http://www.officekb.com

JE McGimpsey

What problem are you having with your formula? Syntactically it's fine.

If you're copying the formula, you might need to convert the lookup
range to absolute:

=IF(B64000, VLOOKUP(B6,Sheet1!$A$1:$B$262,2,FALSE), "S")

In article ,
"jeremy via OfficeKB.com" wrote:

I have a row ow project numbers, I want to assign those over a value of
4000 a function VLOOKUP(B6,Sheet1!A1:B262,2,FALSE) and all the prject
numbers that are not over 4000, assign the letter "S". Any help?

This is what I have....

=IF(B64000, VLOOKUP(B6,Sheet1!A1:B262,2,FALSE), "S")

Thanks...
Jeremy


jeremy via OfficeKB.com

Sorry, I didn't specify that: I want all the project number under 4000 to
be assigned the category "S", which would be ok but some of them have
letters at the beginning or end (eg. "AD0023" or "4100WH")....

I just thought that maybe I can use paste/special first....

--
Message posted via http://www.officekb.com

jeremy via OfficeKB.com

I tried paste special--it doesn't seem to get rid of the letters in front
or behing a number....

--
Message posted via http://www.officekb.com


All times are GMT +1. The time now is 10:30 AM.

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