ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Logical formula from a list (https://www.excelbanter.com/excel-worksheet-functions/208994-logical-formula-list.html)

Charlie

Logical formula from a list
 
I have a list of approved vendors (vendor numbers) on sheet 2. On sheet 1, I
need Excel to look at A1 to see if that vendor number is in the list of
approved numbers on sheet 2 and return true or false. How can I tell it to
look in the list of approx. 115 vendors to see if the number is approved?

Gary''s Student

Logical formula from a list
 
Use COUNTIF():

Assuming the list is in column A on Sheet2:

=IF(COUNTIF(Sheet2!A:A,Sheet1!A1)0,"On the list","Not on the list")

--
Gary''s Student - gsnu200811


"charlie" wrote:

I have a list of approved vendors (vendor numbers) on sheet 2. On sheet 1, I
need Excel to look at A1 to see if that vendor number is in the list of
approved numbers on sheet 2 and return true or false. How can I tell it to
look in the list of approx. 115 vendors to see if the number is approved?


CRS

Logical formula from a list
 
See VLOOKUP in the excel help files.

"charlie" wrote:

I have a list of approved vendors (vendor numbers) on sheet 2. On sheet 1, I
need Excel to look at A1 to see if that vendor number is in the list of
approved numbers on sheet 2 and return true or false. How can I tell it to
look in the list of approx. 115 vendors to see if the number is approved?


Charlie

Logical formula from a list
 
THANK YOU, THANK YOU, THANK YOU! That makes my job SOOOO much easier...

"Gary''s Student" wrote:

Use COUNTIF():

Assuming the list is in column A on Sheet2:

=IF(COUNTIF(Sheet2!A:A,Sheet1!A1)0,"On the list","Not on the list")

--
Gary''s Student - gsnu200811


"charlie" wrote:

I have a list of approved vendors (vendor numbers) on sheet 2. On sheet 1, I
need Excel to look at A1 to see if that vendor number is in the list of
approved numbers on sheet 2 and return true or false. How can I tell it to
look in the list of approx. 115 vendors to see if the number is approved?


CRS

Logical formula from a list
 
Charlie,
Disregard my previous post. I was thinking of a different scenario. Sorry.

"CRS" wrote:

See VLOOKUP in the excel help files.

"charlie" wrote:

I have a list of approved vendors (vendor numbers) on sheet 2. On sheet 1, I
need Excel to look at A1 to see if that vendor number is in the list of
approved numbers on sheet 2 and return true or false. How can I tell it to
look in the list of approx. 115 vendors to see if the number is approved?



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

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