Need Help with Countif Index Match formula

needhelpwithexcel1

New Member
Joined
Feb 18, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I need your help! It's been awhile since I wrote advanced formulas. I believe I need to do a countif index match array formula?!?!
I am trying to count anything within the range that has "add" or "x" and also style "65617" and "Group A". Please see photo!
 

Attachments

  • Need Formula Help.JPG
    Need Formula Help.JPG
    105.6 KB · Views: 8

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi. Photos wont get you much help generally as its impossible for us to paste it into a workbook and work on supplying an answer. That said yours is relatively simple:

=SUMPRODUCT((A1:A10=J1)*(A1:H1=J2)*((A1:H10="Add")+(A1:H10="x")))

where J1 holds your 65617 and J2 your Group A. Obviously change these ranges to suit your example.
 
Upvote 0
Hi NeedHelpWithExcel,

SUMPRODUCT will do this for you:

NeedHelpWithExcel.xlsx
ABCDEFGHIJKL
1StyleGroup AGroup BGroup AGroup CGroup AGroup BGroup CGroup A
2663344XDrop
3663347AddAddXStyle663351
4663351AddXXXAddAddGroupGroup A
5663356XXXXResult3
6663362XAdd
7663369Drop
8663377AddAdd
9660380DropAddAddDropDrop
10657050
11653387Add
12649391AddAddXXX
13645062Add
14640400AddDropAddAdd
15635405Drop
Sheet1
Cell Formulas
RangeFormula
L5L5=SUMPRODUCT(--($B$2:$I$9999={"Add"})*($B$1:$I$1=$L$4)*($A$2:$A$9999=$L$3))+SUMPRODUCT(--($B$2:$I$9999={"X"})*($B$1:$I$1=$L$4)*($A$2:$A$9999=$L$3))
 
Upvote 0
Hi Toadstool. If you check out my solution you can see how you can do an 'or' test with addition.
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,922
Members
449,094
Latest member
teemeren

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