+ Reply to Thread
Results 1 to 6 of 6

Flight Log Fix - Multithread

  1. #1
    Registered User
    Join Date
    11-09-2012
    Location
    Alaska
    MS-Off Ver
    Excel Mac 11
    Posts
    5

    Flight Log Fix - Multithread

    Hello fellow coders!
    I am creating a logbook for myself. I searched for forums for "flight log" and "pilot log" before I posted.
    Basically, I have 4 columns of data. I am trying to search for the last occurrence of term in column B, C, D, and return the last date the term occurred. The following post is similar, but since I am looking for the key term of "NG", the MAX function won't work. I've try nested IF functions with no avail.

    http://www.excelforum.com/excel-gene...ell-value.html

    The current bit of code im using is
    Please Login or Register  to view this content.
    I tried using a LOOKUP like:
    Please Login or Register  to view this content.
    as seen on this page:http://www.excelforum.com/excel-gene...in-a-list.html &
    http://www.mrexcel.com/forum/excel-q...rted-data.html
    but again, I need to look through multiple columns of data for the date.
    I hope this makes sense, I can attach the source if requested.
    Cheers

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Flight Log Fix - Multithread

    Hi

    I'm assuming that your date is in column A.

    =INDEX(A:A,MAX(IF(conditional= "NG",ROW(conditional))))

    This is array entered (ctrl, shift, enter)

    HTH

    rylo

  3. #3
    Registered User
    Join Date
    11-09-2012
    Location
    Alaska
    MS-Off Ver
    Excel Mac 11
    Posts
    5

    Re: Flight Log Fix - Multithread

    Rylo,
    Thank you for the response;
    I entered =INDEX(Date,MAX(IF(Condition1= "NG",ROW(Condition1)))) as a test to see how it would perform on just 1 column of data and it returned the date with the first entry.

    =LOOKUP(2,1/(Condition1="NG"),Data!A:A)
    I played around with the above statement, as can see from cell G2 from my attachment, and it works for a single column!!

    Don't know what I did wrong. I have attached the log for your reference.
    Lastly, why did you use an INDEX vs. a LOOKUP? Just for my own SA.
    Attached Files Attached Files
    Last edited by ask4help; 11-11-2012 at 10:48 PM. Reason: updated info

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Flight Log Fix - Multithread

    Hi

    I couldn't see any named range on your file called Date, so don't know what the formula would reference.

    Did you array enter the formula? Also, have you put the formula into the example file you attached?

    rylo

  5. #5
    Registered User
    Join Date
    11-09-2012
    Location
    Alaska
    MS-Off Ver
    Excel Mac 11
    Posts
    5

    Re: Flight Log Fix - Multithread

    Uploaded the correct file..
    I did use the formula that I got a result from in cell G2. I did not array enter the formula as I only need to populate one cell with the data. Maybe I am misunderstanding the purpose of the array in this instance.

    Edit: Got it all figured out!!
    Please Login or Register  to view this content.
    Works like a charm..
    Attached Files Attached Files
    Last edited by ask4help; 11-12-2012 at 12:37 AM. Reason: All fixed

  6. #6
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Flight Log Fix - Multithread

    Hi

    In Home!G3 I array entered the formula
    Please Login or Register  to view this content.
    and got the same result you got in G2.

    However, as you have 3 non contiguous ranges (I originally thought that the range would cover all 3 columns), then try

    Please Login or Register  to view this content.
    Array entered of course. It brings back a date of 17 Oct 12, which I think is the last appearance of NG on the data sheet.


    rylo
    Last edited by rylo; 11-12-2012 at 12:48 AM.

+ 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.6.0 RC 1