+ Reply to Thread
Results 1 to 10 of 10

Find Cell position in the column based on the value

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Find Cell position in the column based on the value

    I need a macro to find the possition of a cell using a value.

    probably when i give a cell value to macro it should search in the range of list and should return the cell possition.


    could you please get me this code.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Find Cell position in the column based on the value

    How do you
    give a cell value to macro ?
    Are you prompted with a message box to input the value? What is the search range? Is it the whole sheet, a row, a column or another range? If you could attach a copy of your file, it would be easier to help.

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Find Cell position in the column based on the value

    i will give value using a message box and i will search only a column to until the end of the column.

    will this information be enough for the code?

  4. #4
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Find Cell position in the column based on the value

    Perhaps something like this:

    Please Login or Register  to view this content.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  5. #5
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Find Cell position in the column based on the value

    inthe same code how can i get the address of the previous column say C as per the below code
    Quote Originally Posted by kbkumar View Post
    Perhaps something like this:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Find Cell position in the column based on the value

    Hello kiran527. Give this try. The code assumes that your data is in column A and that your first row has column lables.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-30-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    92

    Re: Find Cell position in the column based on the value

    Can i get the address in Cell(2,2) format
    is it possible???

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Find Cell position in the column based on the value

    What column is your data in?

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 365
    Posts
    8,026

    Re: Find Cell position in the column based on the value

    This will give you the address of the cell to the left of the value you input assuming your data is in column D.

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-26-2012
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Find Cell position in the column based on the value

    Tri this
    Please Login or Register  to view this content.
    aelgadi

    > Click Star if I helped. 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