+ Reply to Thread
Results 1 to 3 of 3

How to find the last cell number of a column and use this as part of another function?

  1. #1
    Registered User
    Join Date
    03-14-2015
    Location
    Scotland
    MS-Off Ver
    2013
    Posts
    7

    How to find the last cell number of a column and use this as part of another function?

    Hello,

    I am aware that you can use the following codes to get the last row number/value in the row

    Please Login or Register  to view this content.
    However, I'm trying to utilize this as part of another function and I keep getting errors.

    I am trying to use it as part of the following:

    Please Login or Register  to view this content.
    Here you can see that my last datacell is row# 9886 but this will change everytime I get new data from my analysis. I would like to, somehow, use the =match() function inside of that LINEST function to automatically lookup what the last number is in any given column and do the calculation that way, i.e:

    Please Login or Register  to view this content.
    This obviously doesn't work.

    Can anyone help?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How to find the last cell number of a column and use this as part of another function?

    You can use INDEX with MATCH like this

    =LINEST(C2:INDEX(C:C,MATCH(9.9E+307,C:C)),A2:INDEX(B:B,MATCH(9.9E+307,C:C)),TRUE,TRUE)
    Audere est facere

  3. #3
    Registered User
    Join Date
    03-14-2015
    Location
    Scotland
    MS-Off Ver
    2013
    Posts
    7

    Re: How to find the last cell number of a column and use this as part of another function?

    Quote Originally Posted by daddylonglegs View Post
    You can use INDEX with MATCH like this

    =LINEST(C2:INDEX(C:C,MATCH(9.9E+307,C:C)),A2:INDEX(B:B,MATCH(9.9E+307,C:C)),TRUE,TRUE)
    I knew there would be a way to do it. Thanks, man.

+ 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: 4
    Last Post: 11-13-2012, 02:16 PM
  2. Replies: 7
    Last Post: 10-23-2012, 02:29 PM
  3. Find Part number through Macro and output to associated part to certain cell
    By boylers75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 04:32 PM
  4. Replies: 7
    Last Post: 12-18-2008, 07:34 PM
  5. Find Column Number and then use Index Function
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-03-2008, 12:59 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