Formula to Count Sets of Multiple Items

raisedwell

New Member
Joined
Mar 4, 2010
Messages
22
I need a formula that will count and provide a total of how many total sets based on multiple cells.

SET = 1 Hat, 1 Shirt, 1 Belt, 1 Pants, 1 Pair of Socks and 1 Pair of Shoes.

In the following example, I need a formula for cell B8, that will provide how many sets. The correct result should = 1.

1659529290342.png


Thanks so much in advance.

:)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi, if your SETS are always 1 each of everything, then your formula just has to be the lowest number in that range, so: =MIN(B2:B7) would do it ?
Rgds
Rob
 
Upvote 0
Try

Book1
ABC
1
2Hat
3Shirt2
4Belt4
5Pants1
6Socks (Pair)3
7Shoes (Pair)5
8Set(s)1
9
Sheet1
Cell Formulas
RangeFormula
B8B8=MIN(B3:B7)
 
Upvote 0
and if you had SETs which contained multiple items (eg. 2 Hats, 1 Shirt, 1 Belt, 2 Pants,2 socks,1 Shoes) - and you entered those references into column C, then you could use :
Excel Formula:
=ROUNDDOWN(MIN(B2/C2,B3/C3,B4/C4,B5/C5,B6/C6,B7/C7),0)
 
Upvote 0
Thank you for the quick responses.

When I use MIN for the following scenario, it returns 1 even if one of the cells are empty.

1659533811234.png


Currently using MIN, it returns 1 but need it to return 0 if there isn't one for each set requirement.

Thoughts?
 
Upvote 0
Good Catch :) sorry, my thoughts were wrong.. need to work on it again..
 
Upvote 0
Currently using MIN, it returns 1 but need it to return 0 if there isn't one for each set requirement.

Thoughts?

Try

Book4
ABC
1
2Hat3
3Shirt
4Belt4
5Pants1
6Socks (Pair)3
7Shoes (Pair)5
8
9Set(s)0
10Set(s)0
11
12
Sheet1
Cell Formulas
RangeFormula
B9B9=IF(COUNTBLANK(B2:B7)>0,0,MIN(B2:B7))
B10B10=IF(COUNTIF(B2:B7,"")>0,0,MIN(B2:B7))
 
Last edited:
Upvote 0
Solution
ok, here goes:
Excel Formula:
=LET(x, SUM(IF(B2:B7=FALSE,0,1)),IF(x<6,0,MIN(B2:B7)))
 
Upvote 0

Forum statistics

Threads
1,214,622
Messages
6,120,585
Members
448,972
Latest member
Shantanu2024

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