+ Reply to Thread
Results 1 to 7 of 7

Correcting index and count method to get the last numeric cell value

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2021
    Posts
    114

    Correcting index and count method to get the last numeric cell value

    index count problem.JPG

    Appreciate tips on how to resolve this. Many thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,935

    Re: Correcting index and count method to get the last numeric cell value

    Is this a VBA question?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Correcting index and count method to get the last numeric cell value

    here is a possible solution. It's an array formula so you need to use CTRL+SHIFT+ENTER to commit the formula.

    =INDEX(F8:O8,MAX(IF(ISERROR(F8:O8),0,IF(F8:O8="",0,COLUMN(F8:O8))))-COLUMN(E8))


    Hard to tell but if your last column always has a value then it may be better to use a single cell to locate that cell and then use that in the INDEX formula, rather than finding it multiple times
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2021
    Posts
    114

    Re: Correcting index and count method to get the last numeric cell value

    Many thanks!

    Magic, it works!

    Sorry, I am a starter on macro, don't understand your last sentence.

    The last column is always #VALUE. If there is a simpler method, I am all eyes and ears!

    Thanks.

  5. #5
    Forum Contributor
    Join Date
    10-24-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2021
    Posts
    114

    Re: Correcting index and count method to get the last numeric cell value

    My VBA knowledge is at beginner's level. I hope so.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,935

    Re: Correcting index and count method to get the last numeric cell value

    As this is being solved with formulae, I am moving the thread to the appropriate section.

  7. #7
    Forum Contributor
    Join Date
    10-24-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2021
    Posts
    114

    Re: Correcting index and count method to get the last numeric cell value

    I see. You are right!

+ 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. Correcting a formula INDEX + MATCH
    By hlc in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-28-2019, 11:44 AM
  2. [SOLVED] Best method for finding MAX value in a Range, ignoring non-numeric values
    By TC1980 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2014, 08:47 AM
  3. Index first cell with numeric value non-string in row.
    By jimmyi189 in forum Excel General
    Replies: 3
    Last Post: 02-06-2014, 02:39 PM
  4. [SOLVED] Check row by row and count blank cell and copy header numeric field in new sheet.
    By ExcelUser2707 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2014, 02:38 AM
  5. countif function to count text numeric data in same cell
    By keithn@thenails in forum Excel General
    Replies: 4
    Last Post: 11-11-2006, 04:54 PM
  6. count and arrange cell numeric values
    By amrezzat in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-22-2005, 11:55 AM
  7. [SOLVED] Count Intervals of 2 Numeric values in same Row and Return Count across Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-24-2005, 06: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