Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default If function to match colunms

Hi,

I have a column of numbers in A which I would like to match if they appear
in col G, I am using the following if function this works for only 1 cell and
when I drag this down it returns no match when I know there is a match
available.

IF(A2:A15=G:G,"Match","no Match")

Any help would be appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default If function to match colunms

=IF(SUMPRODUCT(--(COUNTIF(A2:A15,G1:G100)))0,"Match","No match")

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Haz" wrote in message
...
Hi,

I have a column of numbers in A which I would like to match if they appear
in col G, I am using the following if function this works for only 1 cell
and
when I drag this down it returns no match when I know there is a match
available.

IF(A2:A15=G:G,"Match","no Match")

Any help would be appreciated



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If function to match colunms

Try it this way:

=IF(ISNA(MATCH(A2,G:G,0)),"no match","match")

It check to see if there is a match between A2 and anything in column
G. Put this on row 2 and copy down for as many entries as you have in
column A (15?) to check for the other numbers.

Hope this helps.

Pete

On Apr 29, 11:00*am, Haz wrote:
Hi,

I have a column of numbers in A which I would like to match if they appear
in col G, I am using the following if function this works for only 1 cell and
when I drag this down it returns no match when I know there is a match
available.

IF(A2:A15=G:G,"Match","no Match")

Any help would be appreciated


  #4   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default If function to match colunms

Thank You that work perfectly.

"Pete_UK" wrote:

Try it this way:

=IF(ISNA(MATCH(A2,G:G,0)),"no match","match")

It check to see if there is a match between A2 and anything in column
G. Put this on row 2 and copy down for as many entries as you have in
column A (15?) to check for the other numbers.

Hope this helps.

Pete

On Apr 29, 11:00 am, Haz wrote:
Hi,

I have a column of numbers in A which I would like to match if they appear
in col G, I am using the following if function this works for only 1 cell and
when I drag this down it returns no match when I know there is a match
available.

IF(A2:A15=G:G,"Match","no Match")

Any help would be appreciated



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If function to match colunms

You're welcome - thanks for feeding back.

Pete

On Apr 29, 2:05*pm, Haz wrote:
Thank You that work perfectly.



  #6   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default If function to match colunms

Hi Pete,

Is it possible to use this function, to then return the value of the
matching cells in Col I. For example if there is a direct match for A2 in Col
E, then in either this cell of another return the value in col I relating to
Col E?

IF(ISNA(MATCH(A2,E:E,0)),"no match","match")


"Pete_UK" wrote:

You're welcome - thanks for feeding back.

Pete

On Apr 29, 2:05 pm, Haz wrote:
Thank You that work perfectly.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default If function to match colunms

You have a reply elsewhere which should get you the first match. If
you have multiple matches, however, and want to display a list of all
the matches then you will have to do it in a different way - which is
it to be?

Pete

On Apr 29, 2:33*pm, Haz wrote:
Hi Pete,

Is it possible to use this function, to then return the value of the
matching cells in Col I. For example if there is a direct match for A2 in Col
E, then in either this cell of another return the value in col I *relating to
Col E?

IF(ISNA(MATCH(A2,E:E,0)),"no match","match")



"Pete_UK" wrote:
You're welcome - thanks for feeding back.


Pete


On Apr 29, 2:05 pm, Haz wrote:
Thank You that work perfectly.- Hide quoted text -


- Show quoted text -


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
change in colunms of sheet- and macro ? Tim R Excel Discussion (Misc queries) 1 April 24th 08 11:50 PM
Compare two file/colunms, hide row not does not equal list. Jerry New Users to Excel 3 July 21st 07 11:54 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 09:17 PM.

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"