+ Reply to Thread
Results 1 to 3 of 3

How to find a cell from a range and identify its column number

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    83

    How to find a cell from a range and identify its column number

    I want to be able to locate a cell within a range eg "Year" and identify which column it is in, and then assign that column number to a variable?

    Any Ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: How to find a cell from a range and identify its column number

    ie range is A1:A10

    try this (array formula)

    {=ADDRESS(MIN(IF($A$1:$A$10="year";ROW($A$1:$A$10)));MIN(IF($A$1:$A$10="year";COLUMN($A$1:$A$10)));4)}

  3. #3
    Registered User
    Join Date
    05-31-2013
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    83

    Re: How to find a cell from a range and identify its column number

    sorry meant to say in VBA

+ 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