Results 1 to 1 of 1

Comparing column values?

Threaded View

  1. #1
    Registered User
    Join Date
    05-11-2007
    Location
    Belgium
    Posts
    68

    Comparing column values?

    col1        | col2      | col3 : col2 + col1 | col4 : unique col3   
    93 	|1030800	 |1030800 93	   | 1030800 93
    93	|1030800	 |1030800 93	
    052	|1030800 |1030800 052	   | 1030800 052
    I have to find out if there are more then one unique col3 values for each value of col2. I try this by inserting a formula in col 4

    =IF(COUNTIF($W$3:W3;InStr(W3;U3)>1);"morethen1";"")
    the logic is : count the number of non empty cells in col4 : unique col3 where a part of the value of col 3 (InStr) is equal to col 2. While testing I try to use only the InStr function, but he produce the error of #NAME and up to now the formula =IF(COUNTIF($W$3:W3;InStr(W3;U3)>1);"morethen1";"") is not working.

    I discovered how to fix this. In your Worksheet you need to work with the FIND methode instead of the InStr

    =IF(W3<>"";LEFT(W3;FIND(" ";W3;1)-1);"")
    Last edited by matrixknow; 06-28-2007 at 07:37 AM.

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