+ Reply to Thread
Results 1 to 12 of 12

Need a formula to return a date based off a name and value

  1. #1
    Registered User
    Join Date
    08-18-2016
    Location
    Salt Lake City, UT
    MS-Off Ver
    2013
    Posts
    8

    Need a formula to return a date based off a name and value

    I am trying to write a formula to pull in the date of the most recent event where the participant scored less than a 9 on a test. I've provided a picture below. this is the formula that i was trying to use but i'm missing something. =IF(MATCH(E3,A:A,0),IF(C:C<8,MAX(B:B),""))

    excel help.png
    Attached Files Attached Files
    Last edited by Gommer; 08-29-2016 at 02:05 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need a formula to return a date based off a name and value

    I can't open PNG


    You get better result on your question if you add a small excel file, without confidential information.

    Please also add the expected results manualy in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-18-2016
    Location
    Salt Lake City, UT
    MS-Off Ver
    2013
    Posts
    8

    Re: Need a formula to return a date based off a name and value

    Where do i add an excel file?

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need a formula to return a date based off a name and value

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  5. #5
    Registered User
    Join Date
    08-18-2016
    Location
    Salt Lake City, UT
    MS-Off Ver
    2013
    Posts
    8

    Re: Need a formula to return a date based off a name and value

    Awesome thank you i've attached.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need a formula to return a date based off a name and value

    d2 =c2<$G$1 in which g1 = 9

    After that a pivot table.

    See the attached file.
    Last edited by oeldere; 08-29-2016 at 02:46 PM. Reason: changed background color in file

  7. #7
    Registered User
    Join Date
    08-18-2016
    Location
    Salt Lake City, UT
    MS-Off Ver
    2013
    Posts
    8

    Re: Need a formula to return a date based off a name and value

    i won't be able to put the data into a pivot table. Is there a formula that would work?

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need a formula to return a date based off a name and value

    Always interest why it is not able to use pivot table.

    Maybe other forummembers can make a array formula for that.

    But since I just started on that part of excel I can't help you with that.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need a formula to return a date based off a name and value

    Quote Originally Posted by Gommer View Post
    Is there a formula that would work?
    Data Range
    E
    F
    2
    Most Recent
    3
    Danny
    8/2/2016
    4
    Bob
    8/3/2016
    5
    Mary
    8/1/2016
    6
    Scott
    8/5/2016


    This array formula** entered in F3:

    =MAX(IF((A$2:A$31=E3)*(C$2:C$31<9),B$2:B$31))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Format as Date then copy down as needed.

    In your sample file you have the expected date for Bob as 8/1/2016. I think the correct date should be 8/3/2016.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  10. #10
    Registered User
    Join Date
    08-18-2016
    Location
    Salt Lake City, UT
    MS-Off Ver
    2013
    Posts
    8

    Re: Need a formula to return a date based off a name and value

    Awesome thank you so much!

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need a formula to return a date based off a name and value

    You're welcome!

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need a formula to return a date based off a name and value

    @Gommer,

    I would appreciate it, if you also answered my question in #8.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Formula to automatically return date in correct cell based on date given
    By MichelleD75 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2016, 01:29 PM
  2. [SOLVED] Help with formula to return a value based on if that expiry date is within year
    By mw91 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 01-08-2015, 11:37 AM
  3. Formula to return values based on criteria and date range
    By jr217 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2014, 06:20 AM
  4. Sumprodcut formula to return data based on certain date ranges
    By cartica in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2013, 02:26 PM
  5. Replies: 4
    Last Post: 09-06-2012, 12:04 PM
  6. Replies: 1
    Last Post: 04-23-2012, 07:26 PM
  7. formula to return a year based on a date range
    By bankster in forum Excel General
    Replies: 12
    Last Post: 03-30-2012, 04:24 AM

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