+ Reply to Thread
Results 1 to 5 of 5

Require last non zero values corresponding sl no in case of multiple entries.

Hybrid View

projectatpel Require last non zero values... 10-19-2013, 02:56 PM
Tony Valko Re: Require last non zero... 10-19-2013, 03:01 PM
projectatpel Re: Require last non zero... 10-19-2013, 03:08 PM
Tony Valko Re: Require last non zero... 10-19-2013, 04:41 PM
martindwilson Re: Require last non zero... 10-19-2013, 03:07 PM
  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Question Require last non zero values corresponding sl no in case of multiple entries.

    My column "A" has SL.NOs, column "B" has a set of values recorded by my machinery, which are random and generally start and end with a zero.
    I can find the last non zero value of my column B using the lookup function as
    =LOOKUP(9.99e+307,1/ (B10:B1000<>0),B10:B1000)
    my range starts from 10th row and has 1000 values.
    But, in case the last non zero value in column B is 5, occuring at, say 895th sl.no and this happens to occur multiple times randomly, say at 200th, 318th, 815th positions in column B,
    how do I return the sl.no correspunding to it's last occurence (i.e.) the value as 895?

    Urgent help required!! Need it for my project!!
    Last edited by projectatpel; 10-19-2013 at 03:20 PM. Reason: Solved

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Require last non zero values corresponding sl no in case of multiple entries.

    Not sure I understand you but here's my best guess...

    =LOOKUP(2,1/(B10:B1000<>0),A10:A1000)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-18-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Require last non zero values corresponding sl no in case of multiple entries.

    thanx for the help, but actually
    =LOOKUP(2,1/($B$10:$B$1000<>0)/($B$10:$B$1000<>""),$A$10:$A$1000)
    this is working.
    I derived this from what you posted @Tony valko Thanx again.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Require last non zero values corresponding sl no in case of multiple entries.

    Good deal. Thanks for the feedback!

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

    Re: Require last non zero values corresponding sl no in case of multiple entries.

    i had to sit back 3 metres from my monitor to read that!
    "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

+ 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. Sum values based on multiple date entries
    By SAsplin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2013, 11:36 AM
  2. Vlookup values with Multiple entries
    By boston3384 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2013, 05:49 AM
  3. [SOLVED] Require Help - Require Formula for Multiple values in both columns
    By krodge in forum Excel General
    Replies: 6
    Last Post: 01-13-2012, 03:42 AM
  4. Multiple Values Corresponding Cells with Blank Entries Between
    By miclark in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2010, 09:50 AM
  5. Require a lookup to return multiple values
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2005, 05:06 PM

Tags for this Thread

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