Index & Match & Date quandry

Greenies08

New Member
Joined
Apr 4, 2011
Messages
22
Hi there

I have some data that I want to pull out the 'max' and by 'who' within a defined month.
I've managed the max formula ok but struggling to build the month part into my index/match array.
Any help would be truly appreciated.

03/01/2019A Smith 1400
5005
Shrub
05/02/2019C David1400 5005
Shrub
08/01/2019F Carol1000
5000
Tree
14/01/2019G Williams1400 5000
Tree
18/01/2019B Smith750 5000
Tree

<colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"><colgroup><col width="189" style="width: 142pt; mso-width-source: userset; mso-width-alt: 6912;"><colgroup><col width="64" style="width: 48pt;" span="2"><colgroup><col width="153" style="width: 115pt; mso-width-source: userset; mso-width-alt: 5595;"><tbody>
</tbody>

01/01/2019Arrays
Max Shrub1400MAX(IF((MONTH($A$1:$A$5)=MONTH($A$7))*($D$1:$D$5=5005),$C$1:$C$5))
WhoA SmithIF(B$8=0,"",INDEX($B$1:$B$5,MATCH(1,(5000=$D$1:$D$5)*(B$8=$C$1:$C$5),0)))
Max Tree1400MAX(IF((MONTH($A$1:$A$5)=MONTH($A$7))*($D$1:$D$5=5000),$C$1:$C$5))
WhoG WilliamsIF(B$10=0,"",INDEX($B$1:$B$5,MATCH(1,(5000=$D$1:$D$5)*(B$10=$C$1:$C$5),0)))

<colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"><colgroup><col width="189" style="width: 142pt; mso-width-source: userset; mso-width-alt: 6912;"><colgroup><col width="635" style="width: 476pt; mso-width-source: userset; mso-width-alt: 23222;"><tbody>
</tbody>

01/02/2019
Max Shrub1400
WhoA SmithShould be C David?

<colgroup><col width="75" style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;"><colgroup><col width="189" style="width: 142pt; mso-width-source: userset; mso-width-alt: 6912;"><colgroup><col width="635" style="width: 476pt; mso-width-source: userset; mso-width-alt: 23222;"><tbody>
</tbody>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Try
=IF(B$8=0,"",INDEX($B$1:$B$5,MATCH(1,(5005=$D$1:$D$5)*(B$8=$C$1:$C$5)*(MONTH($A$13)=MONTH($A$1:$A$5)),0)))
 
Upvote 0

Forum statistics

Threads
1,215,821
Messages
6,127,053
Members
449,356
Latest member
tstapleton67

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