+ Reply to Thread
Results 1 to 8 of 8

Help Required to Evaluate Advanced Formula

  1. #1
    Registered User
    Join Date
    10-25-2018
    Location
    London
    MS-Off Ver
    Office 2019
    Posts
    45

    Question Help Required to Evaluate Advanced Formula

    Hi all,

    As the title says, help would be appreciated to outline what each part of this formula does (it was given tome a while back),
    as I wish to change the definition of a number in a cell.

    The use of the formula is to return a unique value in A2 (ie. T123) to cell M2, only if there is a number '1' in cell J2.
    The formula is in cell M2. I have similar formulas in cells N2 and O2 if there is a '2' or '3' in J2.
    This formula is copied down throughout the sheet. I hope this make sense.

    I am wanting to change the '1', '2', and '3' to different values but can't see where this would be in the formula.

    Here is the formula:

    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($J$2:$J$99)/(COLUMNS($M2:M2)=$J$2:$J$99),ROWS(M$2:M2))),"")

    If a spreadsheet is required to see how this is used, I can attach it into a future reply (hopefully)

    Many thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help Required to Evaluate Advanced Formula

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-25-2018
    Location
    London
    MS-Off Ver
    Office 2019
    Posts
    45

    Re: Help Required to Evaluate Advanced Formula

    Hi

    Attached is an example file with two sheets labelled current and desired.
    To be viewd in conjunction with the original post.

    Many thanks
    Attached Files Attached Files

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help Required to Evaluate Advanced Formula

    Please try at M2
    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($J$2:$J$99)/(COLUMNS($M2:M2)=--LEFT($J$2:$J$99)),ROWS(M$2:M2))),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-25-2018
    Location
    London
    MS-Off Ver
    Office 2019
    Posts
    45

    Re: Help Required to Evaluate Advanced Formula

    Quote Originally Posted by Bo_Ry View Post
    Please try at M2
    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($J$2:$J$99)/(COLUMNS($M2:M2)=--LEFT($J$2:$J$99)),ROWS(M$2:M2))),"")
    Thanks Bo_Ry, that worked!

    Would you mind explaining how the =--LEFT bit works, even when the formula is copied to cells N2 and O2 to produce the different unique values correctly? Say if i wanted to add another work priority column 4. I like to know how things work!

    Many thanks
    Last edited by Treeman_JF; 05-03-2019 at 07:28 AM.

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help Required to Evaluate Advanced Formula

    =LEFT($J$2:$J$6) ={"3";"2";"1";"2";"1"} > text
    =--LEFT($J$2:$J$6) ={3;2;1;2;1} => Number

    @M2 COLUMNS($M2:M2) =1 => Number
    @N2 COLUMNS($M2:N2) =2 => Number
    @O2 COLUMNS($M2:O2) =3 => Number

    =1/(COLUMNS($M2:M2)=--LEFT($J$2:$J$6)) ={#DIV/0!;#DIV/0!;1;#DIV/0!;1}
    1 from J4 , J6 "1 year" the rest will get error #DIV/0!

    This filter only year that match columns()

    =AGGREGATE(15,6,ROW($J$2:$J$6)/(COLUMNS($M2:M2)=--LEFT($J$2:$J$6)),ROWS(M$2:M2)))
    =AGGREGATE(15 small ,6 ignore error ,{#DIV/0!;#DIV/0!;4;#DIV/0!;6},1))

    15 small to get small row number rank 1 = 4, rank 2 = 6
    6 ignore error like #DIV/0!

  7. #7
    Registered User
    Join Date
    10-25-2018
    Location
    London
    MS-Off Ver
    Office 2019
    Posts
    45

    Re: Help Required to Evaluate Advanced Formula

    So if I want to add another column titled 'Work Priority 4' in 'P', and I want the work priority in J column to be '6 Months' the formula doesn't work. How would you work around this?

  8. #8
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help Required to Evaluate Advanced Formula

    Please try
    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($J$2:$J$99)/(COLUMNS($M2:M2)=MATCH(--LEFT($J$2:$J$99,2),{1,2,3,6,12})),ROWS(M$2:M2))),"")

    3-5 for Priority 3
    6-11 for Priority 4
    12 or more for Priority 5

+ 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: 8
    Last Post: 06-06-2018, 09:20 AM
  2. Advanced sum formula required
    By Brady1234 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-13-2018, 09:55 PM
  3. Replies: 2
    Last Post: 03-24-2015, 03:38 PM
  4. Advanced formula required please
    By zouraiz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-12-2013, 07:56 AM
  5. [SOLVED] Excel 2007 : Transpose Data:Advanced Help required
    By ahmadomer63 in forum Excel General
    Replies: 2
    Last Post: 06-01-2012, 06:15 AM
  6. Evaluate Sub-formula Only Once
    By djk in forum Excel General
    Replies: 3
    Last Post: 12-16-2010, 06:10 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