+ Reply to Thread
Results 1 to 5 of 5

Get last non zero value of a row

  1. #1
    Registered User
    Join Date
    09-18-2018
    Location
    sri lanka
    MS-Off Ver
    2007
    Posts
    15

    Get last non zero value of a row

    Friends,

    I have a table containing the sales records of agents for few days(example attached). I need to get the last date a sale was made by each of them. If value is zero means they have not made a sale on particular day. Can you guys help me?

    Thank you
    Attached Files Attached Files
    Last edited by RASIKA_99; 04-18-2020 at 10:03 AM.

  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,830

    Re: Get last non zero value of a row

    Here you are:

    =LOOKUP(2,1/(C3:O3<>0),C$2:O$2)
    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 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,830

    Re: Get last non zero value of a row

    Or this:

    =IFERROR(LOOKUP(2,1/(C3:O3<>0),C$2:O$2),"Never")

  4. #4
    Registered User
    Join Date
    09-18-2018
    Location
    sri lanka
    MS-Off Ver
    2007
    Posts
    15

    Re: Get last non zero value of a row

    Thank you AliGW. It works fine!

  5. #5
    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,830

    Re: Get last non zero value of a row

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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