+ Reply to Thread
Results 1 to 13 of 13

refer to cell based on value

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    refer to cell based on value

    Hello. Although I have written extensive worksheets before, my knowledge base is still limited.

    I also have an older version of Excel. Don't know if that matters.

    I have been wondering how to do this for years and hope you can help me out. I hope I can express myself adequately so you know what I am asking.

    I have a repeating formula for each row that builds upon the previous row.
    The worksheet may have 500 lines. I may want to analyze 1000 lines of data. I may want to analyze 1500 lines of data.

    I would like to know what the value of the last row is -- let's say columnC -- at the top of the worksheet without scrolling down 1000 lines to look.

    Of course, the normal way to display the value for columnC 1000 rows down is =zz1000.

    Further, I realize I can make a counter in column B to add +1 per row, so the value of cell b1000 would be 1000, the value of b1001 would be 1001.

    Further, I realize I could create a formula to determine the max(b1:b5000) to determine how many rows there are.

    So now I want to display the valume of Column C, Row number determined by the max(b1:b5000). Since there are no values in, let's say, rows 1001 to 5000, the value would be 1000, demonstrating the last row number.

    How do I write a formula at the top of my work sheet to display the value of Column C, Row - (value determined by max(b1:b5000) ????

    Does that make sense?? Thank you!!!
    Last edited by karlcsr; 08-12-2013 at 06:58 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: refer to cell based on value

    Do you want to know what the value in the last row is? Or how many rows there are in a column?
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: refer to cell based on value

    I would want the value of that cell. Thank you!

  4. #4
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: refer to cell based on value

    Try this if you don't have a column header
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or try this if you do have a column header
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you're using a version of excel older than 2007, you need to have start and stop values in the ranges

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: refer to cell based on value

    What type of value is in column C ? Text or Number ? or could it be either?

    Try these

    For Numeric values in column C
    =LOOKUP(9.99999999999999E+307,C:C)

    For Text values in column C
    =LOOKUP(REPT("z",255),C:C)

    If column C could be either text or number
    =LOOKUP(2,1/(C:C<>""),C:C)

  6. #6
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: refer to cell based on value

    Thank you, Craig. Let me work with this and see if I can get it working.

  7. #7
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: refer to cell based on value

    Thanks! Let me try to figure this out. Some of this is a bit new to me.

  8. #8
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: refer to cell based on value

    Thank you, Jonmo!

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: refer to cell based on value

    You're welcome.

  10. #10
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: refer to cell based on value

    Jonmo,

    Yes, I utilized the lookup function for the first time, grasped the concept, and your solution worked perfectly.

    I can now display the "final" profit number that is tabulated on the bottom line of my worksheet at the top of the worksheet and will save me lots of time as I plug in different values at the top and then instantly see the results at the top also, versus the very bottom row.

    The first value is equal to over a billion, so the lookup function will default to looking for the next lowest value in column C. Since Column C is acting as a counter, the last column will be the largest number and the last column is selected. Then just plug in the corresponding column as the third value in this equation and, bang, I have my profit number! Perfect! Thanks again!

  11. #11
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: refer to cell based on value

    I meant to say bottom row, not bottom column above! Rookie mistake!

  12. #12
    Registered User
    Join Date
    08-12-2013
    Location
    San Antonio
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: refer to cell based on value

    Rookie question. How do I mark a thread "solved"?

  13. #13
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: (Solved) refer to cell based on value

    Clever solutions Jonmo.

    See my signature to mark solved.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 12-19-2012, 11:04 AM
  2. Replies: 7
    Last Post: 12-16-2012, 04:24 PM
  3. Replies: 3
    Last Post: 01-20-2012, 01:35 PM
  4. Replies: 2
    Last Post: 10-21-2010, 04:41 AM
  5. Replies: 1
    Last Post: 02-23-2005, 01:06 PM

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