+ Reply to Thread
Results 1 to 8 of 8

If Function Return Last 5 That Match

  1. #1
    Registered User
    Join Date
    08-08-2019
    Location
    Houston, Texas
    MS-Off Ver
    O365
    Posts
    16

    If Function Return Last 5 That Match

    Hi, I am trying to figure out how to write a function in cells V2:W9 that show the record of the last 5 times each unit was used in column G and when it was a W or L in column J. For instance, in column G it needs to look for the 5 more recent times 3 was used and count if it was a W or an L...the answers for cell V4:W5 are in there just off my visuals, but I want to get formulas there that automate it all. Please let me know if I need to further explain. Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: If Function Return Last 5 That Match

    Try array entering this formula in V2, fill down and across to W9.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Registered User
    Join Date
    08-08-2019
    Location
    Houston, Texas
    MS-Off Ver
    O365
    Posts
    16

    Re: If Function Return Last 5 That Match

    You're the man, Dave!! Thank you!!

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: If Function Return Last 5 That Match

    You are welcome. Thank you for the feedback and marking your thread Solved.

  5. #5
    Registered User
    Join Date
    08-08-2019
    Location
    Houston, Texas
    MS-Off Ver
    O365
    Posts
    16

    Re: If Function Return Last 5 That Match

    Dave, quick question - does that formula only work with a minimum of 5 instances? For instance, the 5, 6 and 8 units have 3, 1, and 1 instances respectively, and those did not populate.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: If Function Return Last 5 That Match

    - does that formula only work with a minimum of 5 instances?
    Yes. I took the question/thread title literally.

  7. #7
    Registered User
    Join Date
    08-08-2019
    Location
    Houston, Texas
    MS-Off Ver
    O365
    Posts
    16

    Re: If Function Return Last 5 That Match

    Ok, just wanted to make sure! I can just look to the left at the totals for the last units used before it hits 5. Thanks again!!

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,729

    Re: If Function Return Last 5 That Match

    If you would like for it to count those 3,1 and 1 then array enter this instead.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] How to Return Row Number From Match Function
    By EdwardSnowden in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-08-2019, 03:28 PM
  2. how to use match function to match that number and return a value?
    By eddie01001 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2019, 03:55 PM
  3. [SOLVED] IF function and match to return value
    By rayted in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2018, 04:33 AM
  4. [SOLVED] MATCH function - using COUNT to return a row#
    By vba_madness in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-09-2014, 08:13 AM
  5. INSERT/MATCH Function - can I match and return more than a single result?
    By nickwee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-24-2014, 06:02 AM
  6. [SOLVED] How to Return the row# of the 2nd Occurrence using MATCH( ) Function?
    By htawfik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-08-2014, 12:10 PM
  7. MATCH Function inconsistent in return value
    By Moose8 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-12-2008, 01:06 PM

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