Adding Cells with Words

gymwrecker

Active Member
Joined
Apr 24, 2002
Messages
390
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I have the following

Cell A1 "Failed"
Cell A2 "Passed"
Cell A3 "No-Show"

I have a spreadsheet with 192 entries using the above words. How could I add them up at the end, come up with a number, for how many failed, passed, and no-show? In other words, how could I add cells that have words or names?

Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
=COUNTIF(A1:A13,"Failed") & " Failed, " & COUNTIF(A1:A13,"Passed") & " Passed, " & COUNTIF(A1:A13,"No-Show") & " No-Shows, " & COUNTIF(A1:A13,"") & " Blanks"

Where A1:A13 is the range of your data.

The result will be of the form:
# Failed, # Passed, # No-Shows and # Blank
all in one cell.

And;

=COUNTIF(A1:A13,"Failed")&" Failed, "&COUNTIF(A1:A13,"Passed")&" Passed, "&COUNTIF(A1:A13,"No-Show")&" No-Shows, "&COUNTIF(A1:A13,"")&" Blanks and " & 13 - (COUNTIF(A1:A13,"Failed")+COUNTIF(A1:A13,"Passed")+COUNTIF(A1:A13,"No-Show")+COUNTIF(A1:A13,"")) & " Others"

Will give the form:

# Failed, # Passed, # No-Shows, # Blanks and # Others

Note: the "13-" in the "Others" portion of the above formula, is the number of cells (Rows) in your data table!
In place of "13-" in the above formula you can use:

Rows(A1:A13)-

This will automatically count all the rows(cells) in your range even if the length of your data table changes.

Like:
=COUNTIF(A1:A13,"Failed")&" Failed, "&COUNTIF(A1:A13,"Passed")&" Passed, "&COUNTIF(A1:A13,"No-Show")&" No-Shows, "&COUNTIF(A1:A13,"")&" Blanks and " & ROWS(A1:A13) - (COUNTIF(A1:A13,"Failed")+COUNTIF(A1:A13,"Passed")+COUNTIF(A1:A13,"No-Show")+COUNTIF(A1:A13,"")) & " Others"

And;

=(COUNTIF(A1:A13,"Failed")+COUNTIF(A1:A13,"Passed")+COUNTIF(A1:A13,"No-Show"))

Will give the total count of all cells that contain, "Failed, Passed and/or No-Show" as one number, for the total of all three of these test words, found in your range.

Hope this helps. JSW
This message was edited by Joe Was on 2002-05-03 19:36
This message was edited by Joe Was on 2002-05-03 19:36
This message was edited by Joe Was on 2002-05-03 19:50
This message was edited by Joe Was on 2002-05-03 19:53
This message was edited by Joe Was on 2002-05-03 20:03
This message was edited by Joe Was on 2002-05-03 20:10
 
Upvote 0

Forum statistics

Threads
1,213,535
Messages
6,114,192
Members
448,554
Latest member
Gleisner2

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