Count two values in different cells within the same row

rhettblaine

New Member
Joined
Oct 3, 2013
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I'm trying to count how many times two different values appear in the same row and return those results in the same row. My obvious go to was COUNTIFS but that only works when it's one criteria; once I add an additional Criteria it will return 0. I've tried using SUMPRODUCT but receive the same results.

I also did not create the data source (A1 to H4 in my example below) so I'm having to get creative (I1:L4) so that I can create graphs, etc.

Due to the sensitivity of the data, I cannot post an exact replica of my table.


ABCDEFGHIJKL
1CustomerOrder DateItem 1Status 1Item 2Status 2Item 3Status 3T-ShirtPendingDeliveredCanceled
2Customer 1Nov 4, 2022T-ShirtPendingHoodieDeliveredHatCanceled1100
3Customer 2Nov 5, 2022T-ShirtDeliveredT-ShirtPendingHatPending2110
4Customer 3Dec 12, 2022T-ShirtCanceledT-ShirtCanceledT-ShirtDelivered1012
 
In that case can you post some sample data that shows the problem.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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