ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   =DMIN(database,field,criteria) question about criteria (https://www.excelbanter.com/excel-discussion-misc-queries/139025-%3Ddmin-database-field-criteria-question-about-criteria.html)

Dummy

=DMIN(database,field,criteria) question about criteria
 
A B
1 Fruit Amount
2 Apple 10
3 Banana 12
4 Apple 9
5 Pineapple 8
6 Apple 11
7
8 Criteria
9 Fruit Amount
10 Apple
11
12 Result
10 Apple 9 Formula =DMIN($A$1:$A6,B1,A9:A10)
My question is insted of using Criteria geting form the sheet i want to
manual input the criteria in formulla like =DMIN($A$1:$A6,B1,"Fuite"="Apple")
since i have a long sheet and i will fix the formula in each cell. also
there are many items so i do not want to change the criteria for every items.
is there anyway? How can i do it? Can anyone help?


Harlan Grove[_2_]

=DMIN(database,field,criteria) question about criteria
 
Dummy wrote...
....
My question is insted of using Criteria geting form the sheet i
want to manual input the criteria in formulla like

=DMIN($A$1:$A6,B1,"Fuite"="Apple")

since i have a long sheet and i will fix the formula in each cell.
also there are many items so i do not want to change the criteria
for every items. is there anyway? How can i do it? Can anyone help?


Don't use DMIN. Use an array formula like

=MIN(IF($A$2:$A$6="Apple",$B$2:$B$6))

You could use DMIN as the formula for a data table, but it's still
klunky.



Dummy

=DMIN(database,field,criteria) question about criteria
 
TNANKS A LOT:o)
It did not work at first time then i realiese there must be small mistake
and it was array nesting { } by pressing Ctrl+Shift+Enter. It work grate.
Thanks once again for solving my problem i was working for it more than a
week but could not find the right solution.


"Harlan Grove" wrote:

Dummy wrote...
....
My question is insted of using Criteria geting form the sheet i
want to manual input the criteria in formulla like

=DMIN($A$1:$A6,B1,"Fuite"="Apple")

since i have a long sheet and i will fix the formula in each cell.
also there are many items so i do not want to change the criteria
for every items. is there anyway? How can i do it? Can anyone help?


Don't use DMIN. Use an array formula like

=MIN(IF($A$2:$A$6="Apple",$B$2:$B$6))

You could use DMIN as the formula for a data table, but it's still
klunky.





All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com