+ Reply to Thread
Results 1 to 6 of 6

I'm stuck on how to do these formulaes

  1. #1
    Registered User
    Join Date
    01-22-2007
    Posts
    3

    Smile I'm stuck on how to do these formulaes

    Right am doing a spreadsheet and need help with some formulaes (if possible to do)

    1) I want a cell to find the highest number in the row, then display the name at the top of the column.

    2) I have a list of averages and I want the cells below each average to display the position the average is. The averages will change so want a formula to calculate the positions. If nned be I could write the position.

    Any help or pointers would be great. Don't really know what to google for regarding these 2

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Not much info about ranges etc

    Does this help with problem 1

    =INDEX(A1:M1,MATCH(MAX(A10:M10),A10:M10,0))

    Problem 2. What do you mean by position

    Can you give an example

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,700
    1.Assuming you want to find the highest number in A6:J6 and return the corresponding header from row 1

    =INDEX(A1:J1,MATCH(MAX(A6:J6),A6:J6,0))

    If there are ties for maximum value this will just display the first header

    2. What do you mean "position". If you want the highest number to be 1, the next highest 2, etc. then investigate the RANK function

  4. #4
    Registered User
    Join Date
    01-22-2007
    Posts
    3
    Both correct with the first problem.

    RANK sounds like the answer. Will play and post if it doesn't work

    Thanks

  5. #5
    Registered User
    Join Date
    01-22-2007
    Posts
    3
    Yes RANK seemed to be the answer. Thank you very much people

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad you sorted your problem

    Next time some more info would be helpful

    VBA Noob

+ 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