+ Reply to Thread
Results 1 to 9 of 9

Return last non-zero value from a row of data - large values.

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    3

    Return last non-zero value from a row of data - large values.

    I have a question similar to this one but with large values.
    The results I tried there didn't give me the answer I was looking for.

    I have a personal budget in a excel 2007 spreadsheet and want to return the last value in a row. The numbers are monetary values, so not within the 0-5 range of the question linked to.

    Can anyone offer a formula to help with this? Much appreciated!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Return last non-zero value from a row of data - large values.

    I am little bit confused about your requirement because of

    Return last non-zero value from a row of data - large values.
    expecting to pull Large value from the range or return last non zero value?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Return last non-zero value from a row of data - large values.

    without seeing what data/format you are working with, try something like this...

    =OFFSET(A2,0,COUNTA(A2:G2)-1)
    adjust ranges as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Return last non-zero value from a row of data - large values.

    Something along the lines of
    Please Login or Register  to view this content.
    returns the last numeric value in row1

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Return last non-zero value from a row of data - large values.

    hi sburm, welcome to the forum. maybe an array like below if your data is in row 2?
    =LOOKUP(90000000000,IF(2:2<>0,2:2))

    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER. change the 2 accordingly to your row. if it's for column, then change to something like "A:A" for column A

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Return last non-zero value from a row of data - large values.

    last non zero value is
    =LOOKUP(2,1/A2:Z2,A2:Z2)
    Last edited by martindwilson; 11-27-2012 at 08:57 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Registered User
    Join Date
    11-27-2012
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Return last non-zero value from a row of data - large values.

    Quote Originally Posted by :) Sixthsense :) View Post
    I am little bit confused about your requirement because of

    Return last non-zero value from a row of data - large values.

    expecting to pull Large value from the range or return last non zero value?
    Ah, what I am looking for is to pull the last non-zero number from a row but the answers in the link didn't work for large numbers - they only worked when the numbers in the row were between 0 and 5. Because I am dealing with monetray figures, the numbers are larger. But regardless, I want the last non-zero value in the row.
    Last edited by sburm; 12-09-2012 at 10:24 PM.

  8. #8
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Return last non-zero value from a row of data - large values.

    can you provide with a sample workbook with data and put a sample expected ouput so other's could play with it. thanks.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  9. #9
    Registered User
    Join Date
    11-27-2012
    Location
    Japan
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Return last non-zero value from a row of data - large values.

    Quote Originally Posted by martindwilson View Post
    last non zero value is
    =LOOKUP(2,1/A2:Z2,A2:Z2)
    And here is the solution! Thanks very much!

+ 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