+ Reply to Thread
Results 1 to 5 of 5

Find the last Text and Date in a single row that contains both Data types alternating.

  1. #1
    Registered User
    Join Date
    05-25-2005
    Posts
    8

    Find the last Text and Date in a single row that contains both Data types alternating.

    Hello,
    I have attached a sample spreadsheet that shows what I'm trying to do in a sense.

    Basically need to search an entire row for the last Date and Text cell in the row (from left to right) and it always alternates Text/Date/Text/Date from one cell to the next. So if starting in Row-2 it went Text1(A2)/Date1(B2)/Text2(C2)/Date2(D2)/Text3(E2)/Date3(F2) etc.... in the row, then in Say A1 i need a formula that searches the row(2) and would want to pull Text3 and in A2 i need a formula that searches the row and pulls Date3

    Thanks.

    I added a sample log to kind of show what I'm trying to do.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Find the last Text and Date in a single row that contains both Data types alternating

    In cell A2:

    =INDEX(4:4,MAX(INDEX((A4:Z4<>"")*(COLUMN(A4:Z4)),0))-1)

    And in B2:

    =INDEX(4:4,MAX(INDEX((A4:Z4<>"")*(COLUMN(A4:Z4)),0)))

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find the last Text and Date in a single row that contains both Data types alternating

    In A2
    Please Login or Register  to view this content.
    In B2
    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    05-25-2005
    Posts
    8

    Re: Find the last Text and Date in a single row that contains both Data types alternating

    Thanks guys. worked like a charm. What could I add to the formulas so that blank rows would show a #N/A? so the formula cell is blank or zero. no biggie.

  5. #5
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Find the last Text and Date in a single row that contains both Data types alternating

    Try this
    in A2
    Please Login or Register  to view this content.
    in B2
    Please Login or Register  to view this content.
    Last edited by visha_1984; 02-22-2013 at 02:36 AM. Reason: CODE TAG
    Happy to Help

    VISHA

    Click *, if the suggestion helps you!
    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>> "Mark your 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