+ Reply to Thread
Results 1 to 8 of 8

Lookup max date only if there is a value in C

  1. #1
    Registered User
    Join Date
    05-08-2008
    Posts
    8

    Lookup max date only if there is a value in C

    In Column A I have a list of dates. When somebody uses FMLA I will enter the hours used into Column C. I need excel to search for the max date with a value in C and give me the total which will be in in Column E of the same row.

    Example:
    A B C D E
    1/2/2008 FMLA 8 DS 8

    1/4/2008 FMLA 1 XEND 9

    1/6/2008 FMLA 3 DS 12

  2. #2
    Registered User
    Join Date
    04-18-2008
    Posts
    80
    Would something like this work in column E?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-08-2008
    Posts
    8
    When I tried that it gave me the greatest date that I had, even if there was no data next to it. It gave me 12/31/08 eventhough I only had data through 4/1/08.

    Any other ideas?

  4. #4
    Registered User
    Join Date
    04-18-2008
    Posts
    80
    I'm not understanding what you want to do with the max date. are you just trying to get a running total in Column E? look at the example and help me understand. where are the dates that you are referencing?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-08-2008
    Posts
    8
    In column A I have 527 days that somebody could use FMLA (which is a rolling 12 months). In Column C, I have the hours used for that day and in Column E is my rolling total.

    On the 2nd sheet named calendar(which is where all this information is pulled from) I have a "total hours used" and "total hours remaining" spot that I would like to update automatically.

    I cannot figure out how to get this to update based on the last day FMLA was used.

    Does this help explain me better?

    Thank you!

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by JenC
    In Column A I have a list of dates. When somebody uses FMLA I will enter the hours used into Column C. I need excel to search for the max date with a value in C and give me the total which will be in in Column E of the same row.
    Try this array formula

    =INDEX(E2:E100,MIN(IF(A2:A100=MAX(IF(C2:C100<>"", A2:A100)),IF(C2:C100<>"",ROW(A2:A100)-ROW(A2)+1))))

    needs to be confirmed with CTRL+SHIFT+ENTER

  7. #7
    Registered User
    Join Date
    05-08-2008
    Posts
    8
    It worked.

    Thank you so much.

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    I probably made that a little more complex than it needs to be, though. You could also try

    =INDEX(E2:E100,MATCH(1,(A2:A100=MAX(IF(C2:C100<>"",A2:A100)))*(C2:C100<>""),0))

+ 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