+ Reply to Thread
Results 1 to 3 of 3

Thread: Tricky Cell Population Question

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Tricky Cell Population Question

    I have 5 cells and I want a 6th cell to be populated by the latest cell with a value in greater than 0

    e,g
    So I want K3 to check J3 first and work its way backwards until it finds a cell with a value greater than 0

    Example 1
    A2=3
    D3=0
    F3=1
    H3=4
    J3=5

    So K3=5

    Example 2
    A2=3
    D3=0
    F3=1
    H3=0
    J3=0

    So K3 =1

    I hope I have made sense. Any help would be great. I tried googling it but it was difficult to describe.

  2. #2
    Forum Guru ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    traded up
    MS-Off Ver
    2003 & 2010
    Posts
    1,905

    Re: Tricky Cell Population Question

    It's awkward to determine "backwards" in a non-contiguous range, so how about:

    =IF(J3>0,J3,IF(H3>0,H3,IF(F3>0,F3,IF(D3>0,D3,IF(A2>0,A2,"")))))
    “To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln

  3. #3
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: Tricky Cell Population Question

    Try this,

    =LOOKUP(2,1/CHOOSE({1,2,3,4,5},A2,D3,F3,H3,J3),CHOOSE({1,2,3,4,5},A2,D3,F3,H3,J3))

    {1,2,3,4,5} is means 5 ranges (A2,D3,F3...) NOT any values.
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a 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)

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.2.0