Count a cell if another cell meets a criteria

Welshcharles

New Member
Joined
Aug 24, 2015
Messages
10
I have a worksheet which I record issue of work wear, the upper part of the sheet records the items issued to each person and the lower section is a record of how much is issued of each size.
How can I automated the completion of the lower section, for example, if name 1 has 2 polo shirts size M then this is automatically entered into B18 in the lower section.

Any assistance would be greatly appreciated.


Name1Name2Name3Name4Name5Name6Name7Name8Name9Name10
ITEMQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZE
Polo Shirts2XL
Shirt Short sleeve516"
Shirt Long Sleeve
Sweat Shirts2XL
Trousers236"236w 30l
Hi Viz Jacket
Coveralls246R
Woolly Hat1111111111
Bib & Brace Fabric
Safety Boots
Storm Jacket
Bib & Brace W/P1M
Hard HatN/A
ITEMQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZEQTYSIZE
Polo ShirtsMLXLXXLXXXL
Shirt Short sleeve1616.51717.518
Shirt Long Sleeve1616.51717.518
Sweat ShirtsMLXLXXLXXXL
Trousers28W30W32W34W36W
Hi Viz JacketMLXLXXLXXXL
Coveralls3840424446
Woolly Hat10N/A
Bib & Brace FabricMLXLXXLXXXL
Safety Boots89101112
Storm JacketMLXLXXLXXXL
Bib & Brace W/PMLXLXXLXXXL
Hard Hat

<tbody>
</tbody>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
i used an array formula
=SUM(IF($C4:$U4=C20, $B4:$T4, 0))
and used control +shift +enter to change to an array, then you get {}
{=SUM(IF($C4:$U4=C20, $B4:$T4, 0))}
seems to work OK
 
Upvote 0

Forum statistics

Threads
1,196,048
Messages
6,013,095
Members
441,747
Latest member
darkman77

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