count from table a value with multiple criteria

komhs

New Member
Joined
Jun 12, 2016
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
Hi to all and thanks in advance for reading my post

For some reason I am struggling to count how many times a number exists in the same row, if it exists along with a master number and another criteria from a different column.

I used xl2bb but It is missing some points, so I am sending you and a picture of the sheet as well, which is more detailed.



TZOKER.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1TABLE 9TABLE 10
2Νο 1Νο 2Νο 3Νο 4Νο 5no 6Secondary1
3191112131920Column1Column2Column3Column4Column5Column6Column7Column8Column9
4129161783023456789
5159131812333
6121214161153101112131415161718
71121314151063
818141517766
9324681167From the table 9 and especially from (Table9[[Νο 1]:[Νο 5]]) I want to count in cell J5, how many times I have the number 2 when in the same row I have also the number 1 (master number)
1012469975and in the Secondary column's number is equal or less (<=) than 90
1132357780
12179111318137So as a Logic I want to count how many times the master number exists in the same row of the table (only the first five columns) with each number of the table 10
133121314159122if the number in the same row of Secondary column is equal or less than 90
Sheet6
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J5:Q5,I7:Q7Cell Valuetop 5 bottom valuestextNO
J5:Q5,I7:Q7Cell Valuetop 5 valuestextNO
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    62.2 KB · Views: 4

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQ
1TABLE 9TABLE 10
2Νο 1Νο 2Νο 3Νο 4Νο 5no 6Secondary1
3191112131920Column1Column2Column3Column4Column5Column6Column7Column8Column9
4129161783023456789
51591318123330111125
6121214161153101112131415161718
71121314151063124332221
818141517766
9324681167
1012469975
1132357780
12179111318137
133121314159122
Main
Cell Formulas
RangeFormula
J5:Q5,I7:Q7J5=SUMPRODUCT(($A$3:$A$13=$I$2)*($G$3:$G$13<=90)*($B$3:$F$13=J4))
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMNOPQ
1TABLE 9TABLE 10
2Νο 1Νο 2Νο 3Νο 4Νο 5no 6Secondary1
3191112131920Column1Column2Column3Column4Column5Column6Column7Column8Column9
4129161783023456789
51591318123330111125
6121214161153101112131415161718
71121314151063124332221
818141517766
9324681167
1012469975
1132357780
12179111318137
133121314159122
Main
Cell Formulas
RangeFormula
J5:Q5,I7:Q7J5=SUMPRODUCT(($A$3:$A$13=$I$2)*($G$3:$G$13<=90)*($B$3:$F$13=J4))

Fluff thank you for your answer, but there are two issues that need two be corrected in this solution in order to match my criteria.
Firstly, I need the ranges to be in Table(column), because every day I am adding new values in the top and secondly, the F column is useless for the time being.
So with this solution, when I am replacing the ranges with Table(Columnn) and am changing the $B$3:$F$13 with $B$3:$E$13 it doesn't work

Thank you in advance
 
Upvote 0
If you don't want to include the F col just change the ranges.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,517
Messages
6,125,288
Members
449,218
Latest member
Excel Master

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