+ Reply to Thread
Results 1 to 23 of 23

index and match/ LOOKUP TO FIND the last number over 50

  1. #1
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Thumbs up index and match/ LOOKUP TO FIND the last number over 50

    What I want to do is create an index and match array that will look up that last number over 50 then lookup the column next to it to see if there are any numbers below 0, if there is return true or the value and if not return false or 0. the diagram shows in the highlighted yellow the look up for the first part and in blue the look up for the second part, and in green where i want the result displayed. it would be a massive help if you could please help.
    Attached Files Attached Files
    Last edited by ARNIEBUN; 08-21-2021 at 09:02 AM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,109

    Re: index and match array needed please help

    Hi
    Try this:
    =LOOKUP(2,(--(C3:C14>50)),D3:D14)

  3. #3
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match array needed please help

    hi thanks for your response, what i am trying to do is see if its the fist instance of below 0 when the number is over 50, and then again for when its under 40 if its the fist number over 0, i can have 2 different formulas for that to track it, when I copy your code down it gives me the next minus number and doesn't indicate that one is already in the over 50 section. another solution would be much welcomed.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,735

    Re: index and match array needed please help

    what i am trying to do is see if its the fist instance of below 0 when the number is over 50
    As to the above, perhaps the following in E3 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that I deleted row 15.
    If the formula doesn't yield the expected results then please tell us a few instances in which the results are incorrect and explain why.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,109

    Re: index and match array needed please help

    Hi,
    Please try in E3 and down:
    IF(D4=LOOKUP(2,(--($C$3:$C$14>50)),$D$3:$D$14),"True","")
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,593

    Re: index and match array needed please help

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match array needed please help

    HI thanks for your solutions, unfortunate is doesn't work in very basics I need to know when the number is above 50 and the change is less than 0 for the first time, and below 40 and above 0 for the first time. the 2 options can be in different cells. it has to be the first time the change in below 0, while the number has got to 50. I could live with it checking the last 12 cells lets say.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,593

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Your updated title was still not descriptive of your problem - it was generic. I have updated it again to show you the sort of thing we mean when we ask for descriptive titles.

    I have looked at your workbook and your posts and have no idea what you are attempting. You need to take us through some concrete examples.

  9. #9
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50/ Manufacturing PMI

    hi so i have uploaded a better example please let me know if this helps with understanding what i am trying to do, i have included a description in the sheet. which is :

    I NEED TO CHECK ROW C AND D, SO I AM LOOKING TO SCORE THE 2 YELLOW HIGHLIGHTED PARTS OF THIS SCORE CARD.
    AS A EXAMPLE LETS LOOK AT A1 YELLOW.
    SO MY THINKING IS THAT IF I HAVE A FORMLARE TO CHECK COLUM C BACK UP TO WHEN THE NUMBER GOES OVER 50, THEN FROM THAT PIONT CHECKS ROW D DOWN TO SEE HOW MANY VALUES UNDER 0 THERE ARE. IF I CAN GET A TURE OR FALSE i CAN USE ANOTHER FORMLAUR TO SCROE IT FROM THE SCORE CARD SO i DON'T NEED THAT PART, i JUST NEED THE PARTS IN YELLEW. i COULD HAVE ONE FORMULAR THAT CHECK A1 IN E AND ANOTHER THAT CHECKS A2 IN F WOULD BE A GREAT SOLUTION. i HVE BEEN WORKING ON THIS FOR SOME TIME TO TRY AND CRACK IT AND COME CLOSE BUT TO BUILD ON THAT WOULD MEAN MAPPING EVERY POSSIBLE OUTCOME FROM THE LAST 12 MONTHS TO SCORE IT. i HOPE THIS EXPLAINS IT BETTER.

    EXAMPLE in sheet.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,735

    Re: index and match/ LOOKUP TO FIND the last number over 50

    I thought that I might understand until I looked at cell R39. I do not understand why it displays FALSE even though the value in P39 is less than 50 and the value in Q39 is greater than 0.
    I have the same basic question about the FALSE on cell O54.

  11. #11
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50

    because i am looking at the numbers in a time line perspective, so when the numbers in column P go under 50 in cell P30, i want to look down from that point and mark the first instance of where the numbers in column Q go over 0, i have marked how it would look on the values over 0 in column Q this should help. please let me know if you have any more questions.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,735

    Re: index and match/ LOOKUP TO FIND the last number over 50

    These return the expected results for the sample.
    For A1 in E3 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For A2 in F3 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  13. #13
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50

    hi thanks for your solution its the best one i have found so far, however there are 2 instances where it doesn't pick up on both the columns I have attached a sheet that will show you where. thank you so much for this
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,735

    Re: index and match/ LOOKUP TO FIND the last number over 50

    It seems that the logic for case A2 is 'each time the values in column C falls below 50, find the first value in column D that is greater than zero'.
    Does that sound right?
    If so then I believe the steps below will do what you want:
    1: Paste the following into cell A2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2: Place a zero in cell C2
    3: Paste the following into cell E3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    4: Paste the following into cell F3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  15. #15
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Hi, thank you so much, it works on sheet 1 ok, there are a lot of #refs but where it says true i had to offset it to line up with the data, i did however get some data and past it into sheet 2 but couldn't get it to work, i was wondering, what have i done wrong and how i get rid of the #refs and replace with something else?

    thank you so much for your help.
    Attached Files Attached Files

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,509

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Change A2 as per post #14

    =IF(AND(C4>50,C3<50),SUM(A1,1),A1)

  17. #17
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50

    It seems that the logic for case A2 is 'each time the values in column C falls below 50, find the first value in column D that is greater than zero'.
    Does that sound right?

    yes so when it fall below 50 first positive value in column d and when it goes over 50 the first negative value in d, is exactly what i need.

    when I have done it I will post the previous solution that didn't work as well ad this one complete with scoring that score card. I know there are a lot of people trying to do this so should bring some traffic.

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,735

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Here are the formulas from post #14 applied to the file.
    It works for Sheet1 with a small modification to the formula in column A: =IF(AND(C2>50,C1<50),SUM(A1,1),A1)
    As to Sheet2 the formulas seem to work down to row 60. The reason for the failure at that point is that the value in C59 is 50. We have only discussed values above and below 50. Should a value of 50 be considered as part of case A1 or case A2?
    Let us know if you have any questions.

  19. #19
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Hi was wondering if you could factor in when its 50, its over 50 that would be a great help.

  20. #20
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,735

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Update formulas for:
    Column E (C>=50,D<0): =IF(C3<50,"",IF(AND(COUNTIFS(C$3:C3,">=50",D$3:D3,"<0",A$3:A3,A3)=1,D3<0),TRUE,IF(AND(COUNTIFS(C$3:C3,">=50",D$3:D3,"<0",A$3:A3,A3)>1,D3<0),FALSE,"")))
    Column F (C<50,D>0): =IF(C3>=50,"",IF(AND(COUNTIFS(C$3:C3,"<50",D$3:D3,">0",A$3:A3,A3)=1,D3>0),TRUE,IF(AND(COUNTIFS(C$3:C3,"<50",D$3:D3,">0",A$3:A3,A3)>1,D3>0),FALSE,"")))
    Let us know if you have any questions.

  21. #21
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Hi thank you so much for the solution I will build out the rest of it and post the finished article which uses the score card for the PMI date made for the Anton Kril PTFM course and will automate the scoring method. should help a lot op people.

  22. #22
    Registered User
    Join Date
    06-10-2020
    Location
    UK
    MS-Off Ver
    2019
    Posts
    36

    Re: index and match/ LOOKUP TO FIND the last number over 50

    I have compleated the score card for the Uunited States PMI based on the Anton Kril PTFM course which will automate the scoring. when the number meets the condtions set out in the score card, its scores the minimum value when 0 to plus, and the maxium value when 0 to minus. then you add the change to that value you flipping that number when its plus but is scoring to the minus side, and the sc0re will only score to a maximum values, eg if the score is 0 to 5 but its over 50 and slowing you would get lets say -1.2 flip it to 1.2 and add it to 0, but it the value was -6 we can only flip it to 6 then score it 5. and vise verse. the complete formula across the cells will calculate all of that for you. so if you have found this i have saved you loads of work, enjoy.
    Attached Files Attached Files

  23. #23
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,735

    Re: index and match/ LOOKUP TO FIND the last number over 50

    Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Help needed! INDEX/MATCH, Ignore Blanks in an array
    By JavierEM in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2019, 10:05 PM
  2. Use Index Match or lookup to create array from array
    By kinemagichemistry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-01-2018, 02:27 PM
  3. Index / Array Genius Needed
    By ryansm05 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2018, 11:11 AM
  4. Replies: 3
    Last Post: 04-02-2016, 08:16 PM
  5. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  6. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  7. Replies: 6
    Last Post: 04-30-2014, 02:42 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