INDEX / MATCH / MAX / MIN formula required

JenTissen

New Member
Joined
Mar 21, 2014
Messages
10
I think my formula may require MAX INDEX and MATCHsomehow, but I’m stumped.

I need to look at the earliest date and the latest date against memberslisted below (dates in between should be ignored). Ineed to then compare the Total Score against the earliest and latest date andif the Total score against the latest date is greater than the Total scoreagainst the earliest date, return “Improving”. If the Total Score is less for the earliest date, return “Declining”. “No Change” for same Total Score.


  • Data is in member, then in Date order, but if ithelps with formula can go in total score order.
  • There are a varied number of entries for membersbut we only need to look at first and last dates.

  • I understand formula will need to go in everycell in D and am happy for result to display in all calls.
  • Maybe is needs formula’s in D and E to get tothe result – that will be fine too.

Any help is greatly appreciated.
A
B
C
D
E
F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<tbody> [TD="bgcolor: transparent"] Member [/TD]
[TD="bgcolor: transparent"] Date [/TD]
[TD="bgcolor: transparent"]
Total Score
[/TD]
[TD="bgcolor: transparent"] Formulated Result [/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] John G [/TD]
[TD="bgcolor: transparent"]
10/02/2017
[/TD]
[TD="bgcolor: transparent"]
46
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] John G [/TD]
[TD="bgcolor: transparent"]
23/05/2017
[/TD]
[TD="bgcolor: transparent"]
49
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] John G [/TD]
[TD="bgcolor: transparent"]
24/05/2018
[/TD]
[TD="bgcolor: transparent"]
44
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] John G [/TD]
[TD="bgcolor: transparent"]
10/08/2018
[/TD]
[TD="bgcolor: transparent"]
55
[/TD]
[TD="bgcolor: transparent"]
Improving
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Kathleen A [/TD]
[TD="bgcolor: transparent"]
5/10/2017
[/TD]
[TD="bgcolor: transparent"]
52
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Kathleen A [/TD]
[TD="bgcolor: transparent"]
2/05/2017
[/TD]
[TD="bgcolor: transparent"]
50
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Kathleen A [/TD]
[TD="bgcolor: transparent"]
20/02/2018
[/TD]
[TD="bgcolor: transparent"]
51
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Kathleen A [/TD]
[TD="bgcolor: transparent"]
16/07/2018
[/TD]
[TD="bgcolor: transparent"]
48
[/TD]
[TD="bgcolor: transparent"]
Declining
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Margaret Y [/TD]
[TD="bgcolor: transparent"]
16/11/2017
[/TD]
[TD="bgcolor: transparent"]
49
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Margaret Y [/TD]
[TD="bgcolor: transparent"]
8/02/2018
[/TD]
[TD="bgcolor: transparent"]
52
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Margaret Y [/TD]
[TD="bgcolor: transparent"]
19/07/2018
[/TD]
[TD="bgcolor: transparent"]
56
[/TD]
[TD="bgcolor: transparent"]
Improving
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Enice S [/TD]
[TD="bgcolor: transparent"]
7/02/2017
[/TD]
[TD="bgcolor: transparent"]
52
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Enice S [/TD]
[TD="bgcolor: transparent"]
5/06/2017
[/TD]
[TD="bgcolor: transparent"]
51
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Enice S [/TD]
[TD="bgcolor: transparent"]
28/08/2018
[/TD]
[TD="bgcolor: transparent"]
51
[/TD]
[TD="bgcolor: transparent"]
Declining
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Valerie S [/TD]
[TD="bgcolor: transparent"]
16/10/2017
[/TD]
[TD="bgcolor: transparent"]
46
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Valerie S [/TD]
[TD="bgcolor: transparent"]
17/08/2018
[/TD]
[TD="bgcolor: transparent"]
46
[/TD]
[TD="bgcolor: transparent"]
No change
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Joan B [/TD]
[TD="bgcolor: transparent"]
15/11/2017
[/TD]
[TD="bgcolor: transparent"]
52
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] Joan B [/TD]
[TD="bgcolor: transparent"]
6/03/2018
[/TD]
[TD="bgcolor: transparent"]
53
[/TD]
[TD="bgcolor: transparent"]
Improving
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
</tbody>

 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

If your table is sorted by Member and Date order as you described, this is one way.

I don't have the MAXIF function, so Array formula to be confirmed by CSE (Control, Shift, Enter), instructions below:


Book1
ABCD
1MemberDateTotal ScoreFormulated Result
2John G2/10/201746 
3John G5/23/201749
4John G5/24/201844
5John G8/10/201855Improving
6Kathleen A5/2/201752
7Kathleen A10/5/201750
8Kathleen A2/20/201851
9Kathleen A7/16/201848Declining
10Margaret Y11/16/201749
11Margaret Y2/8/201852
12Margaret Y7/19/201856Improving
13Enice S2/7/201752
14Enice S6/5/201751
15Enice S8/28/201851Declining
16Valerie S10/16/201746
17Valerie S8/17/201846No change
18Joan B11/15/201752
19Joan B3/6/201853Improving
Sheet559
Cell Formulas
RangeFormula
D2{=IF(A2=A3,"",IF(C2=MAX(IF(A$2:A$19=A2,C$2:C$19)),IF(COUNTIFS(A$2:A$19,A2,C$2:C$19,C2)=1,"Improving","No change"),"Declining"))}
Press CTRL+SHIFT+ENTER to enter array formulas.


Formula copied down.
 
Upvote 0
=IF(A2=A3,"",CHOOSE(2+SIGN(C2-VLOOKUP(A2,$A$2:$C$19,3,0)),"Declining","No change", "Improving"))

works too
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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