+ Reply to Thread
Results 1 to 4 of 4

Comparing cells in a column and adding result of comparison in cells of adjacent column

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Luton england
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Comparing cells in a column and adding result of comparison in cells of adjacent column

    hi there

    I am trying to compare the contents of cells in a column working from the top of the column downwards.

    Any cell in Column A is given a score of +1
    If cell below is the same as the cell selected(where the cursor is) then the score is +1.
    This gives a total score of +2
    We then move to the cell below and compare again. If the cell is the same then +1 is added - this now gives +3 because three cells have the same content.

    However if the cell below is different then the score for this cell below is 0 and total score is written in the cell to the right of the selected cell and in this case the total score +2 is written.

    An example is taken from excel sheet below.
    Column A Column B - Total score
    PJJ24 1
    PKB18
    PKB18 2
    PKC01 1
    PJD13
    PJD13
    PJD13 3
    PJD14 1
    PQQ12 1
    PJJJ55
    PJJJ55 2

    Many Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Comparing cells in a column and adding result of comparison in cells of adjacent colum

    Could you just do it in a pivot table counting the entries?

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Comparing cells in a column and adding result of comparison in cells of adjacent colum

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Registered User
    Join Date
    04-18-2013
    Location
    Luton england
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Comparing cells in a column and adding result of comparison in cells of adjacent colum

    hi Nathansav...alas none of us here are able to confidently use pivot tables for this one!....Thanks

+ 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