Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Column and cell identificatiion

If cell value/number B2 is shown anywhere in column A, then how do I show that cell B2 in cell C2?

I have got as far as having the following in cell C2 =IF((B2=A2),B2) which works but only if the cell being looked for is in A2. When I try to extend column A to say A2:A100 so that can look in anywhere within that column, it no longer works.

Any assistance very much appreciated - thanks.

Budask
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Column and cell identificatiion

One way:

=IF(COUNTIF(A:A,B2) 0, B2, "Not Found")


In article ,
Budask wrote:

If cell value/number B2 is shown anywhere in column A, then how do I
show that cell B2 in cell C2?

I have got as far as having the following in cell C2 =IF((B2=A2),B2)
which works but only if the cell being looked for is in A2. When I try
to extend column A to say A2:A100 so that can look in anywhere within
that column, it no longer works.

Any assistance very much appreciated - thanks.

Budask

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Column and cell identificatiion

Try this formula in C2 (the formula can be copied down if needed)...

=IF(ISNUMBER(MATCH(B2,A$2:A$100,0)),B2,"")

Rick


"Budask" wrote in message
...

If cell value/number B2 is shown anywhere in column A, then how do I
show that cell B2 in cell C2?

I have got as far as having the following in cell C2 =IF((B2=A2),B2)
which works but only if the cell being looked for is in A2. When I try
to extend column A to say A2:A100 so that can look in anywhere within
that column, it no longer works.

Any assistance very much appreciated - thanks.

Budask




--
Budask


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Column and cell identificatiion

Actually, in thinking about it, and assuming your search word will never be
in your Row 1 header, you don't have to provide a limit on the search
range...

=IF(ISNUMBER(MATCH(B2,A:A,0)),B2,"")

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
Try this formula in C2 (the formula can be copied down if needed)...

=IF(ISNUMBER(MATCH(B2,A$2:A$100,0)),B2,"")

Rick


"Budask" wrote in message
...

If cell value/number B2 is shown anywhere in column A, then how do I
show that cell B2 in cell C2?

I have got as far as having the following in cell C2 =IF((B2=A2),B2)
which works but only if the cell being looked for is in A2. When I try
to extend column A to say A2:A100 so that can look in anywhere within
that column, it no longer works.

Any assistance very much appreciated - thanks.

Budask




--
Budask



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
Maddening Dilemma - Compare each cell within column a to each cell in column b and find unique matches [email protected] Excel Worksheet Functions 66 May 1st 23 03:44 AM
Sum Cell Values of one column based on Another Cell Value in a different column kristenb via OfficeKB.com Excel Worksheet Functions 5 April 26th 23 07:41 PM
Need the formula or macro. If i enter today date in the cell (Row 1,Column 2) and on tab out, the column 1 cell should be filled with "corresponding Day" of the date kakasay Excel Discussion (Misc queries) 1 January 22nd 07 12:31 PM
Need Formula or macro. If i enter today date in the cell (Row 1,Column 2) and on tab out, the column 1 cell should be filled with "corresponding Day" of the date kakasay Excel Discussion (Misc queries) 1 January 22nd 07 12:31 PM
Format cell in column B based on value in the next cell (column c) Nicole Excel Discussion (Misc queries) 7 May 18th 05 10:19 PM


All times are GMT +1. The time now is 06:17 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"