Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Comparing two colunms

The formula =COUNTIF($B$1:$B$B40,A1) will count how many times the value in
A1 is also found in B1:B40
So =IF(COUNTIF($B$1:$B$40,A1),1,0) will return 1 or 0 (note that Excel
treats any non-zero number as TRUE)
The formula =COUNTIF($B$1:$B$40,A1)0 will return TRUE or FALSE
and --(COUNTIF($B$1:$B$40,A1)0) will return 1 or 0

Your reference to A3 seems to be a typo?
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Red Deer Tech" <Red Deer wrote in message
...
I have a user that is trying to do the following:

In column A is a set of numbers (for this example we will say 40 rows)
In column B is a set of numbers (for this example we will say 40 rows)
In column C she waits to write a forumla that looks looks at the numbers
in
column A and compares them to the numbers in column B. If it looks at the
numbers in A1 for example and there is a matching number in B7 it would be
a
true value in A3, if no matching number was found it would put a false in
A3.
This forumla would continue for all 40 rows. What I had tried was
=IF(A1=$B$1:$B$40,1,0)



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 function to match colunms Haz Excel Discussion (Misc queries) 6 April 29th 08 04:23 PM
change in colunms of sheet- and macro ? Tim R Excel Discussion (Misc queries) 1 April 24th 08 11:50 PM
Matching data in multiple colunms Judoguy Excel Discussion (Misc queries) 1 March 7th 07 11:51 AM
Comparison of data in two separate colunms thaenn Excel Discussion (Misc queries) 7 October 20th 06 06:37 PM
creating spreadsheet with colunms for names adresses & zipcodes neilabu Excel Discussion (Misc queries) 4 March 4th 05 12:53 AM


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