Min (IF AND) formula accounting for text string?

Thermalunit

New Member
Joined
Feb 23, 2011
Messages
8
I joined the board as I am completely stumped by an equation and have been unable to find a solution on any board or through an hour or so of head scratching. I wondered if someone more familiar with Excel may be kind enough to help?

I'm trying to find the minimum value from a table of data if two separate conditions are met. One of the conditions needs to search for a string of text.

I have tried using: =MIN(($K$3:$K$2152=A3)*($ER$3:$ER$2152="*Enable*")*($EG$3:$EG$2152)) as an array but I just get a 0 in return. I can see from the spreadsheet that 0 is not the correct answer.

Any help would be much appreciated.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Also tried: =MIN(IF(($K$3:$K$2152=A3)*(ISNUMBER(SEARCH(”*Enabled*”,$ER$3:$ER$2152))),$EG$3:$EG$2152)) but that returns a 0 also
 
Upvote 0
Welcome to MrExcel.

Are you trying to use the asterisks around Enable as wildcard characters? If so you will need to use something like:

=MIN(($K$3:$K$2152=A3)*(ISNUMBER(SEARCH("Enable",$ER$3:$ER$2152)))*($EG$3:$EG$2152))
 
Upvote 0
Thanks Andrew and Brans but neither solution worked. It still returns a 0 (I can see that the answer is 1.42.

Andrew - thanks for the welcome. Yes I had used the * as wildcard characters.

Any other ideas much appreciated.
 
Upvote 0
Thanks again Andrew - tried it but still returns a 0

I can't see any formatting issues in the Excel field. And the search works if I limit it to one field only. It looks to be having problems identifying cells that contain the word "enabled". The cells with "enabled" in either contain the single word "enable" or within a sentence of eight words.

Strange!
 
Upvote 0
Do you have any blank cells in column EG that match the criteria? Can you give some examples of the text in column ER?
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,841
Members
452,948
Latest member
UsmanAli786

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