+ Reply to Thread
Results 1 to 3 of 3

Alternate highlighting of duplicate values

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Alternate highlighting of duplicate values

    I'm making a workbook to keep track of inventory on FIFO basis, as such all deliveries are sorted into "lots" so that we can make sure the first lot to arrive is the first to leave. collum A has duplicates of almost every lot (as quantities sent for a product are almost always less that quantities recieved)

    basically collum A is as roughly as follows

    02-01
    02-01
    02-01
    01-03
    01-03
    01-02
    01-02
    01-02
    01-01

    I want to alternately shade entire row where duplicate value is found in cell

    02-01
    02-01
    02-01

    01-03
    01-03

    01-02
    01-02

    01-01

    Thanks!
    Last edited by exarranum; 02-25-2013 at 03:36 AM.

  2. #2
    Registered User
    Join Date
    01-30-2013
    Location
    Hobart, TAS
    MS-Off Ver
    Office 2003, XL2007
    Posts
    46

    Re: Alternate highlighting of duplicate values

    Your list of data in column A cell 2 (best sorted so as to group like data)
    In C1 enter 0 or leave blank
    In B2 =IF(A1=A2,"",1)
    In C2 =C1+IF(B2=1,1,0)
    Copy these 2 cells down to match col A
    Conditional formatting - select row 2 then in rule 1 enter =ISODD($C2) then select required formatting then OK. Copy formatting and apply to rows as required

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Thailand
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Alternate highlighting of duplicate values

    Nice, I was using something similar for finding amount remaining in a lot after sending, but it never occured to me to use odd even numbers.

    This is slightly easier

    in B2

    if(A1=A2,B1+0,B1+1)

    Copy and drag down the collumn

    Problem now is that conditional formatting is throwing color all over the place, but ive been having issues with that all day. Maybe try on onother computer tomorrow.

    Thanks very much!

+ 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