Maximum/Minimum poser

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
1,023
Office Version
  1. 365
Platform
  1. Windows
I have the following data in these cells and I am trying to put a formula together which will give me the 'best' outcome. This is calculated by the best number in front of the "/" coupled with the lowest number after the "/"
the expected answer in this example is: 2\10. My formula, so far is:=MAX(DO3,DR3,DU3,DX3)&"/"&MIN(DP3,DS3,DV3,DY3) but as you can see, it gives me an incorrect answer. It's giving me the best in the 'front' number and the best in the 'back' number but not with them coupled as they are in the cell (in this case cell DW3.

Any help will be most appreciated.

Mel

Book1
DNDODPDQDRDSDTDUDVDWDXDY
1
2FiguresWicketsRunsFiguresWicketsRunsFiguresWicketsRunsFiguresWicketsRuns
32\11211   1\9192\10210
4
First Class
Cell Formulas
RangeFormula
DN3DN3=IF(AY3="~~~","",AY3)
DO3DO3=IF(AY3="","",LEFT(AY3,FIND("\",AY3)-1)+0)
DP3DP3=IF(AY3="","",REPLACE(AY3,1,FIND("\",AY3),"")+0)
DQ3DQ3=IF(BK3="~~~","",BK3)
DR3DR3=IF(BK3="","",LEFT(BK3,FIND("\",BK3)-1)+0)
DS3DS3=IF(BK3="","",REPLACE(BK3,1,FIND("\",BK3),"")+0)
DT3DT3=IF(BW3="~~~","",BW3)
DU3DU3=IF(BW3="","",LEFT(BW3,FIND("\",BW3)-1)+0)
DV3DV3=IF(BW3="","",REPLACE(BW3,1,FIND("\",BW3),"")+0)
DW3DW3=IF(CI3="","",CI3)
DX3DX3=IF(CI3="","",LEFT(CI3,FIND("\",CI3)-1)+0)
DY3DY3=IF(CI3="","",REPLACE(CI3,1,FIND("\",CI3),"")+0)
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
See if this does what you need

=INDEX($DN$3:$DW$3,MATCH(AGGREGATE(14,6,DO3:DX3/DP3:DY3/($DO$2:$DX$2="Wickets")/($DP$2:$DY$2="Runs"),1),INDEX(DO3:DX3/DP3:DY3/($DO$2:$DX$2="Wickets")/($DP$2:$DY$2="Runs"),),0))
 
Upvote 0
Does this work for you?

20 04 19.xlsm
DNDODPDQDRDSDTDUDVDWDXDYDZEA
1
2FiguresWicketsRunsFiguresWicketsRunsFiguresWicketsRunsFiguresWicketsRunsBest
32\112111\9192\102102\10
Best Bowling
Cell Formulas
RangeFormula
EA3EA3=MAXIFS(DN3:DX3,DN$2:DX$2,"Wickets")&"\"&MINIFS(DO3:DY3,DO$2:DY$2,"Runs",DN3:DX3,MAXIFS(DN3:DX3,DN$2:DX$2,"Wickets"))
 
Last edited:
Upvote 0
Hello Peter,

Superb! Many thanks. I've never seen MAXIFS or MINIFS before. Time for a little bit of research...

Mel
 
Upvote 0
Many thanks, Jason. Peter’s formula worked a treat. I’ve never seen MAXIFS or MINIFS before...

Mel
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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