To find the latest date

Casey_0307

New Member
Joined
Sep 7, 2021
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
Hi Everyone

I have a excel sheet that is setup in this way and we are not allow to change. May I seek the community's help on if it is possible to build a formula not only to check the value at the latest date, but if the the most recent date results is >8 then, then the outcome should be = 1, otherwise is should be 0.

E.g. If the most recent Date of Test is is 28-Dec2021 (i.e. Date of Test 4), the outcome we expect is 0 as the results of Test 4 is less than 8.

Date of Test 1Results of Test 1Date of Test 2Results of Test 2Date of Test 3Results of Test 3Date of Test 4Results of Test 4
7-Jul-20217.88-Dec-20211019-Dec-2021728-Dec-20217

I am using Excel 2016. Thank you for looking into my post.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Book1
ABCDEFGH
1Date of Test 1Results of Test 1Date of Test 2Results of Test 2Date of Test 3Results of Test 3Date of Test 4Results of Test 4
207-Jul-217.808-Dec-211019-Dec-21728-Dec-217
3
4
50
Sheet1
Cell Formulas
RangeFormula
A5A5=--(LOOKUP(10^35,A2:H2)>8)
 
Upvote 0
Solution
Hi may I seek your assistance what if the table is not in ascending order. Like for example due to a human error the date of the latest results was entered in week 3 instead of week 4?

Date of Test 1Results of Test 1Date of Test 2Results of Test 2Date of Test 3Results of Test 3Date of Test 4Results of Test 4
07-Jul-20217.808-Dec-20211028-Dec-2021719-Dec-20217

So what we we still want to see is the Latest Date: 28-12-2021 and the Outcome is 0 since it is less than 8.

Really appreciate your guidance.
 
Upvote 0
Book1
ABCDEFGH
1Date of Test 1Results of Test 1Date of Test 2Results of Test 2Date of Test 3Results of Test 3Date of Test 4Results of Test 4
207-Jul-217.808-Dec-211028-Dec-21702-Dec-219
3
4
50
Sheet1
Cell Formulas
RangeFormula
A5A5=--(INDEX(B2:H2,MATCH(MAX(A2:G2),A2:G2,0))>8)
 
Upvote 0
Really very thankful for the help given. Thank you so much.
a. I am also asked if it is possible to change the ">8" to ">=7.1 and <=8"?
b. One more additional request : we want an Outcome "1" result if the latest Date BP is more than 140(sys) and more 90(dia). We would like to flag up this cases for review, and hence if there is a formula to let us know base on the latest BP date if the BP is 140(sys) and 90(dia)

BP#1 Date BP(Sys)BP(Dia)BP#2 DateBP(Sys)BP(Dia)
7-Jul2021140908-Dec202112080
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top