+ 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
    Excel 2010 14.04.4760.1000
    Posts
    468

    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 2021 (Windows)
    Posts
    7,900

    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

  3. #3
    Forum Contributor juntjoo's Avatar
    Join Date
    02-29-2008
    Location
    Cape Coral, FL
    MS-Off Ver
    Excel 2010 14.04.4760.1000
    Posts
    468
    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 1.0.1 (16.0.14326.20140) (Android)
    Excel 2010 14.04.4760.1000

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    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




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    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
    Excel 2010 14.04.4760.1000
    Posts
    468
    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)

Similar Threads

  1. How to make my code work with table column names
    By dangerdavedsp in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2017, 05:17 AM
  2. VBA autofilter on computed table column does not work?
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-08-2016, 11:13 PM
  3. Replies: 0
    Last Post: 02-14-2006, 04:30 PM
  4. [SOLVED] column to column conditional formatting won't work, need formula
    By rrupp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. [SOLVED] column to column conditional formatting won't work, need formula
    By rrupp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  6. column to column conditional formatting won't work, need formula
    By rrupp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  7. [SOLVED] column to column conditional formatting won't work, need formula
    By rrupp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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