Sumifs for specific trade

Raweya

New Member
Joined
Jan 8, 2022
Messages
31
Office Version
  1. 2016
Platform
  1. Windows
Hello, can someone please help me out with a formula that does sumif if I have specific trade and then divide it by the total number of that specific trade?

Let's assume that I have divisions (Yellow, Blue, White, .....) and I want to get the % yellow ones during specific period of the dates and then divide it by the sum of the total number of the yellows
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
hard to write the formula without knowing what cells the data is in and how it's structured. The below might work

=sumifs(B1:B10, A1:A10, "yellow") / countifs(A1:A10, "yellow")

I assumed Column B has the data to be summed, column A has the division.
 
Upvote 0
thanks for the reply, but can you confirm please,

does the division should be at the right side of the data?
 
Upvote 0
and I want to add a range of dates, the same idea of the below formula, but including the one you mentioned

=COUNTIFS('Steel- SD'!$X$19:$X$30000,">="&'Steel-SD'!E1,'Steel- SD'!$X$19:$X$30000,"<"&'Steel-SD'!F1)
 
Upvote 0
Sorry for writing that question in another post.

so can someone help me please in this:

=SUMIFS('Steel- SD'!$BY$19:$BY$65536,'Steel- SD'!$X$19:$X$991,">="&'Steel-SD'!C1, 'Steel- SD'!$X$19:$X$991,"<"&'Steel-SD'!D1,'Steel- SD'!$A$19:$A$65536, "SD") / COUNTIFS('Steel- SD'!$A$19:$A$65536, "SD")
 
Upvote 0

Forum statistics

Threads
1,214,866
Messages
6,121,996
Members
449,060
Latest member
mtsheetz

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