Is it possible to show a total (Countif, I think) for three differnet things in one cell?

jaedmar

Board Regular
Joined
Feb 14, 2011
Messages
60
I have multiple worksheets (range created and named "sheetlist"), each with a cell B15 for data. B15 has a drop down list and can be one of three things- "F", "E", or "L".

In cell B15 of my summary page, I want to list the total of each value. For example, if within the sheetlist there were a total of 3 "F"s, 2 "E"s, and 1 "L", I want cell B15 in the summary page to display "3, 2, 1".

Is that possible or would each have to be in it's own cell?
 

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.
Hi,

You need COUNTIF in multiple worksheets what in principle is not possible.

I found this by Aladin Akyurek

--------------------

If you just want to sum B1 across Sheet1 to Sheet3...

=SUM(Sheet1:Sheet3!B1)

If you just want to count numbers B1 houses across Sheet1 to Sheet3...

=COUNT(Sheet1:Sheet3!B1)

If you want to sum B1 when B1 > 0 (exluding negative values) across Sheet1
to Sheet3...

[1] If you have the morefunc.xll add-in installed:

For Conditional Summing:

=SUMPRODUCT(--(THREED(Sheet1:Sheet3!B1)>0),THREED(Sheet1:Sheet3!B1))

For Conditional Counting:

=COUNTIF.3D(Sheet1:Sheet3!B1,">0")

[2] If you need to do it without such an add-in:

For Conditional Summing:

=SUMPRODUCT(SUMIF(INDIRECT("'"&Sheets&"'!B1"),">0"))

For Conditional Counting:

=SUMPRODUCT(COUNTIF(INDIRECT("'"&Sheets&"'!B1"),">0"))

where Sheets refers to a range housing the relevant sheet names, that is,
Sheet1, Sheet2, and Sheet3.

--------------------------

HTH

M.
 
Upvote 0
Try something like this...

Code:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&sheetlist&"'!B15"),"F")) & ", " &
 SUMPRODUCT(COUNTIF(INDIRECT("'"&sheetlist&"'!B15"),"E")) & ", " &
 SUMPRODUCT(COUNTIF(INDIRECT("'"&sheetlist&"'!B15"),"L"))
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,855
Members
452,948
Latest member
UsmanAli786

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