Help with Tricky 2 criteria COUNTIF type formula

Allan8514096

New Member
Joined
May 6, 2013
Messages
14
Hi all,
I have a spreadsheet which we use to track the consumables of aero-medical evacuation medical kits. I am trying to make a formula to count the number of times value "X" appears in column B AND value "Y" appears in column L and return a number.

To put this in an example
Sheet "KIT_LIST"
Column B details the name of the bag Eg "Bulk Fluids 1" "Red Bag 1" (non grouped and always changing so ranges are out)
Column L displays "Order Me" when such action is required (otherwise blank).

Formula in words:
cell value = number of rows where columnB ="Bulk Fluids 1" AND columnY="Order Me"

This formula would be on a different sheet named "MAIN"
I would then need to amend the column and criteria values to return each bag types value.
I will then use these values to make a reporting page to show the status of each bag.

Seems simple enough but havent got it yet...

Kind Regards

Allan
 
Thanks anyway peter :) you have already saved me hours of messing around with the first issue which will prevent having to submit manually calculated status reports :P
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hi,

Perhaps just:

=MIN(IF(B1:B10="STRAT PST 1",IF(K1:K10<>"",K1:K10)))


Regards
 
Upvote 0
Sorry was experimenting, also forgot to add the other sheet references:
FYI this formula lives sheet "MAIN" and the reference ranges on sheet "KIT_LIST"

=MIN(IF(B1:B10="STRAT PST 1",IF(K1:K10<>"",K1:K10)))

=MIN(IF(KIT_LIST!B5:B10000="STRAT PST 1",IF(KIT_LIST!K5:K10000<>"",KIT_LIST!K5:K10000)))
 
Upvote 0
So what's the result of the formula now, with "" instead of " "? Still 0?

Regards
 
Upvote 0
Still a 0 value in a 'general' formatted cell and 00-Jan-00 when the cell is formatted to 'Date'

I tried filling all EXP date cells (K) with a date value (30-Jun-15) and Peter's array returns the correct value but fails as soon as one is blank
Your formula still returns 00-Jan-00 or 0 with all K cells filled.
 
Upvote 0
I had Forgotten :) at first it was failing cos i had forgotten one of the sheet references then after that i forgot to ctrl+shift+Enter

Working very well now thanks XOR
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,194
Members
449,072
Latest member
DW Draft

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