+ Reply to Thread
Results 1 to 8 of 8

how can I reference the first value in a column of numbers when ......

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-26-2005
    Location
    annapolis, Md.
    MS-Off Ver
    2007
    Posts
    260

    how can I reference the first value in a column of numbers when ......

    In a formula, how can I reference the first value in a column of numbers when the row number of that first number is not constant [ie] the row number changes regularly from day to day as I insert new rows at the top of the column each day?
    [and the row number is always greater than 1]
    Last edited by Joe Miller; 03-31-2009 at 12:53 PM.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: how can I reference the first value in a column of numbers when ......

    attach a sample workbook with example.
    modytrane

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: how can I reference the first value in a column of numbers when ......

    I'm not clear on what you are trying to do but if you reference a cell (lets say in row 2) and you insert a new row before it, the reference will automatically update. What is the specific problem?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    12-26-2005
    Location
    annapolis, Md.
    MS-Off Ver
    2007
    Posts
    260

    Re: how can I reference the first value in a column of numbers when ......

    Please see the Excel attachment where The formula in Cell A1 is “=A4”.
    My question is: When I insert a new row above row 4 and place a value in new cell A4, how do I make the value in A1 change to be the value which is in new cell A4?
    And many thanks for your help and patience.
    Joe Miller
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: how can I reference the first value in a column of numbers when ......

    see attached file.
    Use Indirect Function in A1.
    modytrane
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    12-26-2005
    Location
    annapolis, Md.
    MS-Off Ver
    2007
    Posts
    260

    Re: how can I reference the first value in a column of numbers when ......

    Thanks Modytrane, that does exactly what I need.

    For my future reference - is there a way to automatically pick up the top new row value if more than one row is inserted [eg] 15 rows inserted and then 15 values are pasted into the 15 new rows, and I want to pick up the new top row value?
    [ie] I would like to be able to insert say the last 15 daily stock closing prices and not have to adjust any formulas. However, I can get along just fine with the solution you have already given to me.

  7. #7
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: how can I reference the first value in a column of numbers when ......

    Look at the example attached.
    It doesn't matter how many rows you insert.
    With indirect function cell A1 will always look at Cell reference in J1.
    As long as J1 is A4, A1 will be = A4.

    Even if you add a column between A and J, the reference in A1 will adjuct for additional columns. Try it.

    modytrane
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-26-2005
    Location
    annapolis, Md.
    MS-Off Ver
    2007
    Posts
    260

    Re: how can I reference the first value in a column of numbers when ......

    Damn, you're good.
    Many many thanks
    Joe Miller

+ 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