+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Convert a COUNT number to a cell reference

Hybrid View

  1. #1
    Registered User
    Join Date
    04-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    48

    Convert a COUNT number to a cell reference

    Hi All:

    I have Excel 2007. I am using COUNT to identify 2 cell locations/positions in a list. In the attached spreadsheet, Formula A returns the number 13, Formula B returns the number 14. The actual cells (which would be A14 and A15) contain the values 59 and 97 respectively. Once I know the cell positions, I would like to attach the column letter (A, B, C, etc.) to the number returned by the count so I can do additional math with the actual cell values.

    As you can see in Formula A, I get A13 but it is not a cell reference. In Formula B, when I try to use the VALUE and "&" functions to create a cell reference I get a #VALUE! error. Is there a way to convert a cell position derived from a COUNT operation to a cell reference so I can use the cell contents in calculations?

    Ultimately, I'm trying to create a formula to manually calculate PERCENTILE to correct for the difference in PERCENTILE calculations between Excel 2007 and Excel 2010. For more information on that difference,
    please see http://www.youtube.com/watch?v=13Ahbn9o-5I.
    Attached Files Attached Files
    Last edited by egavasrg; 07-07-2011 at 02:59 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Convert a COUNT number to a cell reference

    Your formula
    =ROUNDDOWN(SUM(COUNT(A2:A15)+1)*E2,0)
    Returns 13 when E2 = 0.9

    Therefore
    =INDIRECT("A"&ROUNDDOWN(SUM(COUNT(A2:A15)+1)*E2,0))
    Returns 54 i.e. the value in Column "A" Row 13
    and
    =INDIRECT("A"&ROUNDDOWN(SUM(COUNT(A2:A15)+2)*E2,0))
    Returns 59

    Is this what you are after?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    04-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Convert a COUNT number to a cell reference

    :Marco:

    Thanks for the quick and accurate response. This completely meets my needs. You are fantastic!

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

    Re: Convert a COUNT number to a cell reference

    you only need index
    =INDEX(A:A,ROUNDDOWN(SUM(COUNT(A2:A15)+1)*Percent,0)) gives the value in a13
    "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

  5. #5
    Registered User
    Join Date
    04-26-2011
    Location
    Texas
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Convert a COUNT number to a cell reference

    Thanks! This is very useful. I also appreciate the additional reading.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Convert a COUNT number to a cell reference

    Agreed Martin.

    I was thinking on these lines e.g.
    =INDIRECT(D2&ROUNDDOWN(SUM(COUNT(A2:A15)+1)*E2,0))
    Where D2 contains the Column Letter and E2 the Percentage.

    Based on
    .... I would like to attach the column letter (A, B, C, etc.) ....

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

    Re: Convert a COUNT number to a cell reference

    agreed, !!!!!

+ 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