+ Reply to Thread
Results 1 to 6 of 6

IF Statement: Can anyone help?

Hybrid View

Guest IF Statement: Can anyone help? 01-21-2006, 02:35 PM
Guest re: IF Statement: Can anyone... 01-21-2006, 02:45 PM
Guest re: IF Statement: Can anyone... 01-21-2006, 03:10 PM
daddylonglegs Gary''s student's suggestion... 01-21-2006, 03:26 PM
via135 re: IF Statement: Can anyone... 01-21-2006, 03:35 PM
Guest re: IF Statement: Can anyone... 01-22-2006, 12:15 AM
  1. #1
    bob
    Guest

    IF Statement: Can anyone help?

    I have two columns of names. I want to find the names that match in each
    column and display a message, "MATCH," in a third column.

    I have tried this formula but it is not working:

    IF(A2=B2:B1000,"MATCH",0)
    Ctrl+Shift+Enter for array

    Can anyone help?

    Thanks,
    Bob

  2. #2
    Gary''s Student
    Guest

    re: IF Statement: Can anyone help?

    You can use the COUNTIF() function:


    =IF(COUNTIF(B:B,A2)>0,"match","")
    --
    Gary's Student


    "bob" wrote:

    > I have two columns of names. I want to find the names that match in each
    > column and display a message, "MATCH," in a third column.
    >
    > I have tried this formula but it is not working:
    >
    > IF(A2=B2:B1000,"MATCH",0)
    > Ctrl+Shift+Enter for array
    >
    > Can anyone help?
    >
    > Thanks,
    > Bob


  3. #3
    bob
    Guest

    re: IF Statement: Can anyone help?

    Sorry but that is not working. Perhaps i didn't explain it correctly:

    Column A Column B Column C
    Row 1 name1 name4 formula = "Match"
    Row 2 name2 name12 formula = "No Match"
    Row 3 name3 name 7 formula = "No Match"
    Row 4 name4 name1 formula = "Match"
    Row 5 name5 name4 formula = "No Match"

    As shown, I am trying to create a formula in Column C that will display
    whether the value in Column A is present anywhere in Column B. In the example
    above, Rows 1 and 4 result in "Match" because name1 and name4 are present in
    Column B.

    Make sense?

    Thanks,
    Bob

    "Gary''s Student" wrote:

    > You can use the COUNTIF() function:
    >
    >
    > =IF(COUNTIF(B:B,A2)>0,"match","")
    > --
    > Gary's Student
    >
    >
    > "bob" wrote:
    >
    > > I have two columns of names. I want to find the names that match in each
    > > column and display a message, "MATCH," in a third column.
    > >
    > > I have tried this formula but it is not working:
    > >
    > > IF(A2=B2:B1000,"MATCH",0)
    > > Ctrl+Shift+Enter for array
    > >
    > > Can anyone help?
    > >
    > > Thanks,
    > > Bob


  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    Gary''s student's suggestion should work for you, in C2 copied down column but if you want anoher option try this

    =IF(ISNA(MATCH(A2,B:B,0)),"No ",)&"Match"

  5. #5
    Forum Contributor
    Join Date
    08-28-2005
    Posts
    301

    re: IF Statement: Can anyone help?

    try this..

    in C1 enter the formula

    =if(A1=B1,"match","no match")

    drag the formula upto which A1 & B1 has data..!

    is it ok?!

    -via135

  6. #6
    Ashish Mathur
    Guest

    re: IF Statement: Can anyone help?

    Dear Bob,

    You may want to try this array formula (Ctrl+Shift+Enter)

    =OR(EXACT(A11,$B$11:$B$13))

    Regards

    Ashish Mathur


    "bob" wrote:

    > I have two columns of names. I want to find the names that match in each
    > column and display a message, "MATCH," in a third column.
    >
    > I have tried this formula but it is not working:
    >
    > IF(A2=B2:B1000,"MATCH",0)
    > Ctrl+Shift+Enter for array
    >
    > Can anyone help?
    >
    > Thanks,
    > Bob


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1