+ Reply to Thread
Results 1 to 7 of 7

ROW number corresponding to a data

  1. #1
    Registered User
    Join Date
    12-29-2008
    Location
    India
    Posts
    4

    ROW number corresponding to a data

    I have two problems

    1. In column A i have diffeerent values in random order (not in ascending or descending order) i want to display the row number of a pirticular cell value ?

    2. I have column A and B has values in random order not in any order as above ,i want to search and display for the maximum value in a range from column A and the corresponding value (same row) in column B ?

    thanks in advance

    santhosh
    Last edited by VBA Noob; 01-04-2009 at 07:26 AM.

  2. #2
    Registered User
    Join Date
    12-22-2008
    Location
    Vietnam
    Posts
    11
    Can you upload you file?

  3. #3
    Registered User
    Join Date
    12-29-2008
    Location
    India
    Posts
    4

    row problem

    Thanks for th ereply am attaching the file here
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    for your example
    =MATCH(20,B7:B16,0)+6

    and
    =VLOOKUP(MAX(B7:B16),B7:C16,2,FALSE)

  5. #5
    Registered User
    Join Date
    12-29-2008
    Location
    India
    Posts
    4
    hi,
    Thanks for the replay ..the second one worked for me but the first one, if i inserted one row above that data, i must change my equation again, is there any direct function to get the row number of a pirticular data ?
    thanks again
    santhosh

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481
    try this mod to Martin's formula

    =MATCH(20,B7:B16,0)+(ROW(B7)-1)
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    12-29-2008
    Location
    India
    Posts
    4


    hi,
    thanks it worked for me, thanks again a lot for both replys.
    santhosh

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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