Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 8
Default countif, isna, or vlookup

This seems so basic but I guess I"m too tired to even think tonight... Here is what I want to accomplish. I have two worksheets. I want to check if the value of cell A1 from worksheet 1 exists in column b from worksheet 2. If yes, then I want the value of B1 from worksheet 1 to be returned.
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Jenniferpod View Post
This seems so basic but I guess I"m too tired to even think tonight... Here is what I want to accomplish. I have two worksheets. I want to check if the value of cell A1 from worksheet 1 exists in column b from worksheet 2. If yes, then I want the value of B1 from worksheet 1 to be returned.
=IF(COUNTIF(Sheet2!A:A,A1)0,B1,"")

Change the "" at the end of the formula for whatever you want to show in the cell if the value in A1 is not found in column A of Sheet2. At the moment it will just leave the cell blank.

Hope that helps.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default countif, isna, or vlookup

Hi,

Am Wed, 12 Sep 2012 02:35:18 +0000 schrieb Jenniferpod:

This seems so basic but I guess I"m too tired to even think tonight...
Here is what I want to accomplish. I have two worksheets. I want to
check if the value of cell A1 from worksheet 1 exists in column b from
worksheet 2. If yes, then I want the value of B1 from worksheet 1 to be
returned.


try:
=IF(COUNTIF(B:B,Sheet1!A1)0,Sheet1!B1,"")

Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
=IF(ISNA + VLOOKUP? GD Excel Discussion (Misc queries) 4 October 9th 09 05:11 PM
IF, ISNA & VLOOKUP Sara Excel Worksheet Functions 5 November 14th 08 04:16 AM
I need help with a IF(ISNA with vlookup LAB Excel Worksheet Functions 5 July 14th 08 11:28 PM
isna vlookup Tim Excel Discussion (Misc queries) 2 April 3rd 05 11:23 AM
ISNA and VLOOKUP Chris Kellock Excel Worksheet Functions 3 March 12th 05 07:05 AM


All times are GMT +1. The time now is 11:28 AM.

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"