How to count numbers based on a set of numbers.

Dwyane

New Member
Joined
Nov 7, 2022
Messages
12
Office Version
  1. 2021
Platform
  1. Windows
Hello,
I was wondering if it would be possible to count numbers in a column based on two conditions. I have my set of numbers, (2,4,0) and (5,17,10). I would like to count the numbers in column G if the numbers in column A are in the same set of numbers and the cell next to column A that is the cells in F are true.
The purpose of this is to help me calculate the percentage of the numbers in G separately based on the set of numbers. What I have is the overall percentage. So column Q count the numbers in G divide each by the total count and multiply by 100.
=IF(Q4=0,"",(Q4/$Q$10)*1)
And for the set of numbers the expected output would the values in S and T. If I can get the count, then i can calculate the percentage. Thanks
mrexec_2.png


Cross-posted at: How to count numbers in a column based on a set of numbers
 
Last edited by a moderator:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,215,160
Messages
6,123,355
Members
449,097
Latest member
thnirmitha

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