In a FORMULA, count an imbedded set of text, in the VISIBLE cells only, of a column.

RogerP

New Member
Joined
Aug 20, 2011
Messages
10
I need a means (in an excel formula) to count the number of "visible" cells which have "aka" or "a/k/a" (i.e., also known as) in the address. I currently have the formula of: ="AKA records = "&COUNTIF(E5:E5004,"*aka*")+COUNTIF(E5:E5004,"*a/k/a*"). The result shows ALL records with that text, NOT just the visible ones. I need to count "aka", etc. in JUST the visible cells.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
If you don't mind s little data manipulation then I'd suggest selecting the entire range to be counted, then use the command Goto Special > Visible Cells. Once executed, copy and then paste those visible cells to a new area. Run COUNTIF on newly pasted data.
 
Upvote 0
You could add a helper column with
Excel Formula:
=SUBTOTAL(3,A2)
change the A2 to a column that will always have data & then you can use
Excel Formula:
="AKA records = "&COUNTIFS(E5:E5004,"*aka*",Z5:Z5004,1)+COUNTIF(E5:E5004,"*a/k/a*",Z5:Z5004,1)
changing the Z to the column with the subtotal formula
 
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,256
Members
449,149
Latest member
mwdbActuary

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