+ Reply to Thread
Results 1 to 7 of 7

How to find Last occurence

  1. #1
    Forum Contributor
    Join Date
    09-30-2008
    Location
    London
    Posts
    127

    How to find Last occurence

    Dear all,

    Please find attachment.

    In Last two columns Can i use any formula that can give me last occurence Month & Quantity.

    Regards

    Vinay
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Hi,

    Try these, and copy down.

    N3=INDEX($B$2:$M$2,MATCH(0,$B3:$M3,-1))
    O3=INDEX($B3:$M3,MATCH(0,$B3:$M3,-1))
    Last edited by sweep; 01-19-2009 at 09:22 AM.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    N3: Lookup(9.99999999999999e+307,$b3:$m3,$b$2:$m$2)
    o3: Lookup(9.99999999999999e+307,$b3:$m3)

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    or n3
    =INDEX($B$2:$M$11,1,MATCH(10^6,B3:M3,1))
    and o3
    =INDEX($B$2:$M$11,ROW()-1,MATCH(10^6,B3:M3,1))

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    Martin, for N3 you need not INDEX anything other than B2:M2 and for O3 you need not INDEX anything other than current row Bx:Mx (row = 1)... I'd only make one other point that there's little to be gained from using a number less than BigNum (IMO) -- it just adds risk.

  6. #6
    Forum Contributor
    Join Date
    09-30-2008
    Location
    London
    Posts
    127
    Dear Sweep,

    Thank you. it's working prefect!

    Regards

    Vinay

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    donkyote! its just quicker to put whole range rather than row,a quick drag puts it all in. then if later you want to add something it's there.as for big number hey ho if you are using more than 10^6 then you probably are a rocket scientist and dont need help. also its easier to remember than anything else.
    humbly yours
    rocky-aunty
    Last edited by martindwilson; 01-19-2009 at 08:53 PM.

+ 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