MINIF Function

BHomestar

Board Regular
Joined
Nov 17, 2003
Messages
88
Hey All!

In the below formula I am trying to return the minimum value in column AH that has the criteria of B37 in column G. The formula is not properly finding the values in column G that meet criteria B37. Could someone help me to fix this?

=--(INDEX(Pricer!G:G,C$4):INDEX(Pricer!G:G,D$4)=B37)--MIN(INDEX(Loans!AH:AH,C$4):INDEX(Loans!AH:AH,D$4))

Thanks!!

Bryan H.
 
Yes, that works, so in theory I would assume I could put an OFFSET statement around it to get a value from the same row as the MINIF found.

But it doesnt work. :(

=OFFSET(CELL("Address",INDEX('C3''s'!$J$1:$J$1693,MATCH(Q73,IF('C3''s'!$F$1:$F$1693=B73,'C3''s'!$J$1:$J$1693),0))),0,-6)
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Yes, that works, so in theory I would assume I could put an OFFSET statement around it to get a value from the same row as the MINIF found.

But it doesnt work. :(

=OFFSET(CELL("Address",INDEX('C3''s'!$J$1:$J$1693,MATCH(Q73,IF('C3''s'!$F$1:$F$1693=B73,'C3''s'!$J$1:$J$1693),0))),0,-6)

Try rather something like...

=INDEX('C3''s'!$D$1:$D$1693,MATCH(Q73,IF('C3''s'!$F$1:$F$1693=B73,'C3''s'!$J$1:$J$1693),0))

which needs to be confirmed with control+shift+enter.
 
Upvote 0
Hello all, I am not sure if it is appropriate to respond here to a follow up question, but here goes.

I have tried the suggestions in this thread. The CSE tip page was fantastic. One clarification I would like is as follows: I tried this in my workbook. I input the formula in sheet 2, while my data resides in sheet 1. The first formula worked fine. The rest did not, they were off by small amounts. {{at this point I had run an =Average(If( formula}}.
Then, after not getting anywhere for a while, I went to Sheet1 to enter the formulas there. Doing this made all of the formulas (after copying) work just fine.
Is this what the Local vs. Global, etc. above refers to when using CSE formulas?

Thanks for any clarification.
 
Upvote 0
Hello all, I am not sure if it is appropriate to respond here to a follow up question, but here goes.

I have tried the suggestions in this thread. The CSE tip page was fantastic. One clarification I would like is as follows: I tried this in my workbook. I input the formula in sheet 2, while my data resides in sheet 1. The first formula worked fine. The rest did not, they were off by small amounts. {{at this point I had run an =Average(If( formula}}.
Then, after not getting anywhere for a while, I went to Sheet1 to enter the formulas there. Doing this made all of the formulas (after copying) work just fine.
Is this what the Local vs. Global, etc. above refers to when using CSE formulas?

Thanks for any clarification.

In post #6, local refers to a definition that will be usable only on the sheet where the definition is constructed. Global used for the fact that the definition is usable on all of the sheets in the workbook.
 
Upvote 0
I'm having trouble with the following array formula:


=MIN(IF(A2:A5=("*"&TEXT(CONCATENATE("; ",D1,";"),)&"*"),B2:B5))


Where:


Column A Column B
Artist Year
; Johnny Cash; 1965
; Johnny Cash; 1975
; Johnny Cash; Carl Perkins; 1959
; Bob Dylan; 1962


and cell D1 = Johnny Cash


As part of another COUNTIF formula, I've placed semicolons before and after every artist in column A so that excel doesn't mistake instances of "Bonnie 'Prince' Billy" for "Prince;" then use the TEXT and CONCATENATE formulas so it recognizes the semicolons as well as instances when Johnny Cash collaborated with someone else. However though these formulas work fine separately, I just get a zero result when I pull all together. Can anyone let me know what I'm doing wrong? Thanks!
 
Upvote 0
@jeffsang

Control+shift+enter, not just enter:

=MIN(IF(ISNUMBER(SEARCH(TEXT(CONCATENATE("; ",D1,";"),),A2:A5)),B2:B5))

Even better:

=MIN(IF(ISNUMBER(SEARCH("; "&D1&";",A1:A4)),B2:B5))

You might even want to try MINIFS if you are on a 2016 system.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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