+ Reply to Thread
Results 1 to 6 of 6

Can you have a formula in a table work on a column only down to the row it's on?

  1. #1
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    2007
    Posts
    334

    Can you have a formula in a table work on a column only down to the row it's on?

    I want to put an irr formula into a table that is in every row that reflects the irr from the first applicable row in the table down to the row of the formula. So it would be like (irr(a2:current row)). Is this possible? Thanks

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2016
    Posts
    5,135

    Re: Can you have a formula in a table work on a column only down to the row it's on?


    How about a more explicit explanation?
    Without really knowing what you want the only thing that comes up is to restrict the range to the current row.
    Set the current row in a variable and then specify the range again

    Please Login or Register  to view this content.
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you ( It doesn't hurt )

  3. #3
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    2007
    Posts
    334
    Sorry, but what you just said is like Chinese to me. Let me try to be more clear. So I'll a column for earnings. I'm not sure if it has to be yearly as the examples for irr I've seen use, but I can worry about that later. Anyway, most examples have the result separate from the table as a single number to reflect the ongoing irr number but I want one for each row reflecting the irr of the inputs(yearly or whatever) down to the row in question. Sorry if it's confusing. And sorry I'm not knowledgeable enough to understand your response. Thanks
    Last edited by AliGW; 10-31-2018 at 04:10 AM. Reason: Clutter removed.
    Excel 2010

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    22,634

    Re: Can you have a formula in a table work on a column only down to the row it's on?

    The short answer is yes, probably. Are you using a structured Table?

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn



  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    22,634

    Re: Can you have a formula in a table work on a column only down to the row it's on?

    Maybe:

    =IRR(INDEX([Col A],1):INDEX([Col A],ROWS($1:1)))

    where [ColA] is the structured name of the table column with your data...

  6. #6
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    2007
    Posts
    334
    Quote Originally Posted by Glenn Kennedy View Post
    Maybe:

    =IRR(INDEX([Col A],1):INDEX([Col A],ROWS($1:1)))

    where [ColA] is the structured name of the table column with your data...

    Thank you. I'll try it out...

+ 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