+ Reply to Thread
Results 1 to 6 of 6

Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.

  1. #1
    Registered User
    Join Date
    06-12-2020
    Location
    Bristol
    MS-Off Ver
    2016
    Posts
    6

    Question Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.

    Hi,

    I'm am using the SMALL formula to sort an array of dates and using the IF function to name the sorted data (see the table below).

    A B C D E F
    1 # Job # Unsorted Dates of Payment Job # Sorted DoP
    2 1 BS21 02/06/2020 BS22 01/06/2020
    3 2 BS22 01/06/2020 BS21 02/06/2020
    4 3 BS23 03/06/2020 BS23 03/06/2020

    In the sorted DoP column I'm using the fomula:
    =SMALL(C$2:C$4,A2) --> =SMALL(C$2:C$4,A4)

    In the Job # column
    =IF(F2=C2,B2,(IF(F2=C3,B3,(IF(F2=C4,B4,"F")))))

    How can I replicate these IF functions over a much larger scale (30 rows) without just typing out an increasing length formula.

    Thanks for looking.
    Dexter
    Attached Files Attached Files
    Last edited by DexterStagg; 06-12-2020 at 08:34 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.

    Hi
    please post a sample sheet ( see yellow banner)

  3. #3
    Registered User
    Join Date
    06-12-2020
    Location
    Bristol
    MS-Off Ver
    2016
    Posts
    6

    Re: Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.

    Sample sheet added, thank you for your advice.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,029

    Re: Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.

    How about
    =INDEX($B$2:$B$8,AGGREGATE(15,6,(ROW($B$2:$B$8)-ROW($B$2)+1)/($C$2:$C$8=SMALL($C$2:$C$8,ROWS(E$2:E2))),COUNTIF(F$2:F2,F2)))
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-12-2020
    Location
    Bristol
    MS-Off Ver
    2016
    Posts
    6

    Re: Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.

    Quote Originally Posted by Fluff13 View Post
    How about
    =INDEX($B$2:$B$8,AGGREGATE(15,6,(ROW($B$2:$B$8)-ROW($B$2)+1)/($C$2:$C$8=SMALL($C$2:$C$8,ROWS(E$2:E2))),COUNTIF(F$2:F2,F2)))
    WOW!!! That looks like exactly what I'm after, it's going to take me some time to decifer exactly whats going on.

    Thank you

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,029

    Re: Multiple layered "IF" functions or better use of "SMALL"/"LARGEST" funtion.

    You're welcome & thanks for the feedback.

+ 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. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Help on "IF", "FIND", "SUBSTITUTE", & "LEFT/RIGHT" FUNCTIONS
    By pooja135 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-20-2018, 03:56 PM
  3. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 5
    Last Post: 06-26-2006, 09:23 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