+ Reply to Thread
Results 1 to 5 of 5

first instance of a particular cell

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    Malta
    MS-Off Ver
    Excel 2013
    Posts
    7

    first instance of a particular cell

    I have a cell..say A1...which contains a value...now I have a row say A2:A15 which contains 14 values and I want to highlight the first instance of cell A1..any ideas?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: first instance of a particular cell

    conditional format cell a2 as formula is
    =AND(COUNTIF($A$2:A2,$A$1)=1,A2=$A$1) copy format down to a15
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    Malta
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: first instance of a particular cell

    Thanks a lot..is there a way how to copy this to several other adjacent columns without having to edit the formula each time?

    Mario

  4. #4
    Registered User
    Join Date
    10-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: first instance of a particular cell

    just dragging? maybe

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: first instance of a particular cell

    =and(countif(a$2:a2,a$1)=1,a2=a$1)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro last Instance of a value in a cell
    By Floydlevedale in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2013, 06:36 AM
  2. Return the instance of the value in the column in the next cell
    By witcomm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2012, 04:58 AM
  3. Finding last instance of cell with stock
    By lian.cragg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2011, 10:02 AM
  4. last instance in range excel cell location...
    By callen503 in forum Excel General
    Replies: 11
    Last Post: 09-02-2009, 04:22 PM
  5. finding next instance of text in a cell
    By pmetzak in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-29-2008, 06:50 PM

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