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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,215,483
Messages
6,125,063
Members
449,206
Latest member
Healthydogs

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